Stored XSS To Cookie Exfiltration
A stored cross-site scripting vulnerability was found in a private bug bounty program, allowing an attacker to exfiltrate victim cookies and steal sensitive user data.
Published on medium.com
Today I will be explaining an XSS (“Cross Site Scripting”) vulnerability I found in a private bug bounty program that allowed me to exfiltrate victim’s cookies and steal sensitive user data.
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 sanitise or encode user input before reflecting it into web pages.
Impact
An attacker could exfiltrate victim cookies and steal sensitive user data.
What the attacker needed
Victim visits a page with stored script
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.
Cross-site scripting (XSS) is a flaw where a website displays user-supplied text as code, so an attacker can run their own script in a victim's browser. Stored XSS means the malicious script is saved on the server and shown to other users. This can let an attacker steal cookies, which are small pieces of data that keep you logged in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.