{"id":"GHSA-8692-g6g9-gm5p","summary":"xwiki contains Exposed Dangerous Method or Function","details":"### Impact\n`org.xwiki.store.script.TemporaryAttachmentsScriptService#uploadTemporaryAttachment` is returning an instance of `com.xpn.xwiki.doc.XWikiAttachment`. This class is not supported to be exposed to users without the `programing` right.\n`com.xpn.xwiki.api.Attachment` should be used instead and takes case of checking the user's rights before performing dangerous operations.\n\n### Patches\nThis has been patched in the version 14.9-rc-1 and 14.4.6.\n\n### Workarounds\nThere's no workaround for this issue.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-20180\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [JIRA](https://jira.xwiki.org/)\n* Email us at [security ML](mailto:security@xwiki.org)\n","aliases":["CVE-2023-26478"],"modified":"2023-11-01T05:01:32.337119Z","published":"2023-03-03T22:52:47Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-03-03T22:52:47Z","nvd_published_at":"2023-03-02T18:15:00Z","cwe_ids":["CWE-749"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-8692-g6g9-gm5p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26478"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/3c73c59e39b6436b1074d8834cf276916010014d"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20180"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-store-filesystem-oldcore","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-store-filesystem-oldcore"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.3-rc-1"},{"fixed":"14.4.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-8692-g6g9-gm5p/GHSA-8692-g6g9-gm5p.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-store-filesystem-oldcore","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-store-filesystem-oldcore"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.5"},{"fixed":"14.9-rc-1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-8692-g6g9-gm5p/GHSA-8692-g6g9-gm5p.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L"}]}