Cross-site Scripting (XSS) - Reflected on https://api.mtn.sd/carbon/admin/login.jsp via `msgId` parameter - CVE-2020-17453
A reflected cross-site scripting flaw existed in the msgId parameter of a WSO2 Carbon admin login page. An attacker could run JavaScript in a victim's browser and rewrite the page content.
- Triaged in 3 days
- Fixed in 7 months
- Disclosed after 3.4 years
Hello,
I found a Reflected Cross site Scripting (XSS) on https://api.mtn.sd/carbon/admin/login.jsp, CVE-2020-17453 . With this security flaw is possible rewrite the content of page, executing JS codes...
##Steps To Reproduce: How we can reproduce the issue:
1.Go to https://api.mtn.sd/carbon/admin/login.jsp?msgId=%27%3Balert(%27Renzi%27)%2F%2F 2.And we can see alert with Renzi message...

Supporting Material/References:
- https://docs.wso2.com/display/Security/Security+Advisory+WSO2-2020-1132
- https://owasp.org/www-community/attacks/xss/
Impact
- The attacker can execute JS code.
- Rewrite the content of Page
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the msgId request parameter was reflected into the login page without proper output encoding.
Impact
The attacker can execute JavaScript in the page and rewrite its content.
What the attacker needed
Victim opens a crafted link
The fix
The parameter should be output-encoded before being placed in the page; the report links a vendor advisory but does not state that this instance was fixed.
How it was found
- Open the Carbon admin login page with a crafted msgId value in the query string.
- Observe that the script in the parameter runs and an alert appears.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website puts something an attacker supplied into a page without cleaning it, so the browser runs it as code. Here the msgId value in the web address ended up in the page, letting a script run. A victim would need to open a crafted link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.