WSO2 API Manager stored XSS in Publisher SVG uploads
WSO2 API Manager · WSO2 Carbon API Manager Publisher REST API
WSO2 API Manager · WSO2 Carbon API Manager Publisher REST API
| Product | Affected | Fixed in |
|---|---|---|
| WSO2 WSO2 API Manager |
| No fix yet |
| WSO2 WSO2 Carbon API Manager Publisher REST API |
| No fix yet |
The Publisher portal fails to enforce proper validation on uploaded SVG files, allowing users with the Publisher role to inject malicious scripts. This weakness can be exploited by uploading a crafted SVG file, which is then stored and rendered by the application.
The security consequences include the ability for a malicious actor to redirect the victim's browser to an arbitrary website, modify the web page's UI, or retrieve information from the browser. However, the impact is mitigated as session-related sensitive cookies are protected with the httpOnly flag, preventing session hijacking.
From the CVE record · WSO2
The Publisher portal does not properly validate uploaded SVG files. A user with the Publisher role can upload a crafted SVG that the application stores and renders, potentially redirecting a viewer’s browser, changing the page’s UI, or retrieving browser information. Exploitation requires Publisher-role access and a victim to view the rendered file; httpOnly cookies prevent session hijacking through this issue.
Teams running WSO2 API Manager or the WSO2 Carbon API Manager Publisher REST API should check their deployments; affected versions were not provided.