My first bounty (stored-xss)
A user with import/export permission could upload an XML file containing an encoded XSS payload that executed on a separate print page, allowing an attacker to run script in the context of other users including the admin.
Published on karansh491.medium.com
Hi i’m Karan sharma. My first bounty was based on stored-xss, let’s talk about it.
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 stored user-supplied XML content and later rendered it on the print page without properly encoding or sanitising it, allowing the encoded payload to execute.
Impact
An attacker with import/export permission could execute script in the browser of other users, including the admin, potentially leading to account compromise.
What the attacker needed
Import/export permission; victim opens print page link
How it was found
- Create steps in the application and export them as an XML file.
- Modify the XML file to include an encoded XSS payload.
- Import the modified XML file back into the application.
- Send the link to the print page to other users, including the admin, where the payload executes.
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.
The application let users save steps as XML files. The author put a script-like payload inside the XML, encoding special characters so the file stayed valid. When another user opened a print page, the payload ran as code in their browser, which is called stored cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.