Stored XSS That Survives Filters: How One Bypass Turns a Comment Field Into a Trap for Every Visitor
A stored cross-site scripting vulnerability existed on PayPal's sign-in flow, and a later bypass of the fix restored the same impact. An attacker could store malicious script that would execute in the browsers of users visiting the sign-in page.
Published on masimshahzad.medium.com
Cross site scripting comes in flavours, and only one of them keeps working while the attacker sleeps. Stored cross site scripting saves the attacker input on the server, inside a profile field, a comment, a message or a settings page.
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 failed to properly encode user input when rendering it on the sign-in page, and the initial fix was incomplete, allowing a bypass.
Impact
An attacker could execute script in the context of the sign-in page, potentially stealing session data or performing actions on behalf of users.
What the attacker needed
Victim visits the sign-in page
The fix
The vulnerability was fixed, but the fix was bypassed; a proper fix should encode output for the correct context on every view.
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.
Stored cross-site scripting (XSS) is when a website saves text you type (like a comment) and later shows it to other people without cleaning it. If that text contains code, the browser runs it as if the website itself wrote it. This can let an attacker do things in your account without your permission.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.