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.
com.xpn.xwiki.api.Attachment
should be used instead and takes case of checking the user's rights before performing dangerous operations.
This has been patched in the version 14.9-rc-1 and 14.4.6.
There's no workaround for this issue.
https://jira.xwiki.org/browse/XWIKI-20180
If you have any questions or comments about this advisory:
{ "nvd_published_at": "2023-03-02T18:15:00Z", "github_reviewed_at": "2023-03-03T22:52:47Z", "severity": "MODERATE", "github_reviewed": true, "cwe_ids": [ "CWE-749" ] }