{"id":"GHSA-2jhm-qp48-hv5j","summary":"Missing authorization in xwiki-platform","details":"### Impact\n\nAny user with SCRIPT right (EDIT right before XWiki 7.4) can read any file located in the XWiki WAR (for example xwiki.cfg and xwiki.properties) through XWiki#invokeServletAndReturnAsString:\n\n```\n$xwiki.invokeServletAndReturnAsString(\"/WEB-INF/xwiki.cfg\")\n```\n\n### Patches\n\nIt has been patched in XWiki versions 12.10.9, 13.4.3 and 13.7-rc-1.\n\n### Workarounds\n\nThe only workaround is to give SCRIPT right only to trusted users.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-18870\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [our security mailing list](mailto:security@xwiki.org)","aliases":["CVE-2022-23621"],"modified":"2023-11-01T04:57:58.397074Z","published":"2022-02-09T21:56:05Z","database_specific":{"nvd_published_at":"2022-02-09T22:15:00Z","cwe_ids":["CWE-552","CWE-862"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-02-09T21:56:05Z"},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2jhm-qp48-hv5j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23621"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/df8bd49b5a4d87a427002c6535fb5b1746ff117a"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-18870"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-oldcore","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.6-rc-1"},{"fixed":"13.7-rc-1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 13.6","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-2jhm-qp48-hv5j/GHSA-2jhm-qp48-hv5j.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-oldcore","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0.0"},{"fixed":"13.4.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-2jhm-qp48-hv5j/GHSA-2jhm-qp48-hv5j.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-oldcore","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-2jhm-qp48-hv5j/GHSA-2jhm-qp48-hv5j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H"}]}