From a Tiny Parameter to XSS — Hunting CVE-2020–17453 in
A login page reflected the msgId parameter into the HTML response without sanitisation, allowing script execution. An attacker could craft a link that runs code in a victim's browser session.
Published on cybertamarin.medium.com
During a recent session on a public Vulnerability Disclosure Program (VDP), I came across something that felt… ordinary.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application embedded the msgId parameter into the HTML response without output encoding or sanitisation.
Impact
An attacker could run code in a victim's browser session after the victim clicks a crafted link, though the text gives no proof beyond the author's own browser.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the admin login page and note the msgId parameter in the request.
- Send a simple test value in msgId to see how the page reacts.
- Observe that the value is reflected and executed by the browser.
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 write-up has not been written yet. The Original tab links to the source.
The login page took a value from the web address and pasted it straight into the page without cleaning it. Because of that, a crafted link can make the victim's browser run code the attacker chose, as if it came from the trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.