Exploiting Self XSS
A stored XSS and an IDOR were chained; the XSS alone was self-XSS, and the IDOR let an attacker act on other users' suppliers.
Published on footstep.ninja
In this post, I’ll be talking about an interesting bug chain I discovered a few months ago; Stored XSS + IDOR (Cross Site Scripting and Insecure Direct Object Reference respectively).
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 stored XSS was not sanitised and the IDOR lacked ownership checks, allowing cross-user actions.
Impact
An attacker could run JavaScript in another user's session via the stored XSS and IDOR chain.
How it was found
- Find an IDOR that allows viewing, editing and deleting other users' suppliers.
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.
XSS lets an attacker run JavaScript in another browser. Here the stored XSS was self-XSS, not useful alone. A separate IDOR let the attacker act on other users' suppliers, enabling the chain.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.