GitHub Advisoryadvisory · Maven
GHSA-h2rm-29ch-wfmh XWiki Identity Oauth Privilege escalation (PR)/remote code execution from login screen through unescaped URL parameter
CRITICAL
Official page ↗
- Aliases
- CVE-2023-45144
- Ecosystem
- Maven
- Packages
- com.xwiki.identity-oauth:identity-oauth-ui
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-79
- Reviewed
- 2023-10-17
Affected packages
• Maven com.xwiki.identity-oauth:identity-oauth-ui: >= 1.0, < 1.6 → fixed in 1.6
Description
Impact
When login via the OAuth method, the identityOAuth parameters, sent in a GET request is vulnerable to XSS and XWiki syntax injection. This allows remote code execution via the groovy macro and thus affects the confidentiality, integrity and availability of the whole XWiki installation.
The vulnerability is in this part of the code.
Patches
The issue has been fixed in Identity OAuth version 1.6 by https://github.com/xwikisas/identity-oauth/commit/d805d3154b17c6bf455ddf5deb0a3461a3833bc6 . The fix is in the content of the IdentityOAuth/LoginUIExtension file
Workarounds
There are no known workarounds besides upgrading.
References
_Are there any links users can visit to find out more?_
• Original report: https://jira.xwiki.org/browse/XWIKI-20719
Related
Alias · CVE (1)
- CVE-2023-45144 com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on OAuth authorizations. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/xwikisas/identity-oauth/security/advisories/GHSA-h2rm-29ch-wfmh web
- https://nvd.nist.gov/vuln/detail/CVE-2023-45144 advisory
- https://github.com/xwikisas/identity-oauth/commit/d805d3154b17c6bf455ddf5deb0a3461a3833bc6 web
- https://github.com/xwikisas/identity-oauth/commit/d805d3154b17c6bf455ddf5deb0a3461a3833bc6#diff-2ab2e0716443d790d7d798320e4a45151661f4eca5440331f4a227b29c87c188 web
- https://github.com/xwikisas/identity-oauth package
- https://github.com/xwikisas/identity-oauth/blob/master/ui/src/main/resources/IdentityOAuth/LoginUIExtension.vm#L58 web
- https://jira.xwiki.org/browse/XWIKI-20719 web