CVE-2023-45144: Remote code execution from login screen through unescaped URL parameter in OAuth Identity XWiki App
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
Other sources
com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on OAuth authorizations. When a user logs in via the OAuth method, the identityOAuth parameters sent in the GET request is vulnerable to cross site scripting (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 issue has been fixed in Identity OAuth version 1.6. There are no known workarounds for this vulnerability and users are advised to upgrade.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the impact of CVE-2023-45144?
The vulnerability allows remote code execution via the groovy macro, affecting the confidentiality, integrity, and availability of the XWiki installation.
How does CVE-2023-45144 affect the XWiki installation?
CVE-2023-45144 allows an attacker to execute remote code through the groovy macro, compromising the confidentiality, integrity, and availability of the XWiki installation.
How can CVE-2023-45144 be exploited?
The vulnerability can be exploited by sending malicious identityOAuth parameters in a GET request when logging in via the OAuth method.
Which software versions are affected by CVE-2023-45144?
The vulnerability affects versions 1.0 to 1.6 of the com.xwiki.identity-oauth:identity-oauth-ui package in XWiki.
Is there a fix available for CVE-2023-45144?
Yes, updating the com.xwiki.identity-oauth:identity-oauth-ui package to version 1.6 or higher will fix the vulnerability.