Published: 2nd September 2021
CVSS Score: 4.8 (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N)
WSO2 API Manager : 2.2.0 , 2.5.0 , 2.6.0
A Stored Cross Site Scripting (XSS) vulnerability in the API Store.
Due to an improper output encoding, a Stored Cross Site Scripting (XSS) attack can be carried out by an attacker injecting a malicious payload into API Publisher which will get reflected and malform the output in the API Store.
In order to exploit this vulnerability, the malicious actor should have a valid user account of the API Publisher. If such access could be obtained, they could make a change that impacts other users viewing the affected APIs using the API Store. The possible impacts include, getting the browser redirected to a malicious website, making changes in the UI of the web page, retrieving information from the browser or harm otherwise. However, since all the session related sensitive cookies are set with "httpOnly" flag and protected, session hijacking or similar attacks would not be possible.
If the latest version of the affected WSO2 product is not mentioned under the affected product list, you may migrate to the latest version to receive security fixes. Otherwise you may apply the relevant fixes to the product based on the public fix: https://github.com/wso2/carbon-apimgt/pull/10475
Note: If you are a WSO2 customer with Support Subscription, please use WSO2 Updates in order to apply the fix.