Reflected XSS at https://getpocket.com/changeuser.php via [msg] parameter
A reflected cross-site scripting flaw existed in the msg parameter of a GetPocket endpoint, allowing script execution in a victim's browser. An attacker could send a crafted link to hijack a user's account.
Originally disclosed on Mozilla
- Fixed in 7 months
- Paid in 7 months
- Disclosed after 7 months
There is a reflected XSS at https://getpocket.com/changeuser.php?msg=xss
The vulnerable parameter is [msg]
Proof of Concept:
Simply visit the following link on Firefox or any other modern browser and the XSS will trigger automatically:
https://getpocket.com/changeuser.php?msg=foo%3Csvg/onload=alert(document.domain)%3E
Attack scenario:
An attacker could hijack a GetPocket account easily by simply sending a malicious crafted URL to a victim.
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 msg parameter was reflected into the HTML response without proper output encoding or sanitisation.
What the attacker needed
Victim clicks a crafted link; victim is logged in to GetPocket
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 takes text from a link and puts it into the page without cleaning it, so an attacker can sneak in code that runs in your browser. Here, the msg value in the URL was placed into the page, and a crafted link made the browser run a script. That script could act as the logged-in user, which is why the report says an account could be hijacked.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.