self XSS to stored XSS [ think out the box]
A wiki page on TIBCO's community site allowed a user to inject JavaScript that executed only in edit mode, which the author initially considered self-XSS. Because any user could edit another user's wiki page, the injected script would run when a victim opened the source view, turning it into stored XSS.
Published on medium.com
when create page in wiki ,the javascript code executed only when edit this page . [the edit mode have some permission to use some html tags with filter ]
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 wiki's source editor allowed HTML tags with an insufficient filter, and the page was editable by any user, so the injected script persisted and ran for other users.
Impact
An attacker could run JavaScript in another user's session when that user edited the wiki page and viewed its source, potentially stealing cookies or displaying a phishing message.
What the attacker needed
A free account on the community site; victim edits the attacker's wiki page; victim opens the source view
How it was found
- Log in to the community site.
- Create a new wiki page.
- Open the source code view of the editor.
- Insert an SVG payload with an onload handler and add a lure message.
- Switch to simple view and back to source to trigger the script.
- Have another user edit the page and open the source view to execute the 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 when a website runs JavaScript that an attacker supplied, usually because it failed to clean user input. Here the script only ran for the person editing the page, which is called self-XSS and is normally not a real risk. But since other users could edit the same page, the script would run for them too, making it a stored XSS that could steal cookies or show fake messages.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.