Reflected Self-XSS Vulnerability in the Comment section of Files (Different-payloads)
A reflected self-XSS vulnerability exists in the comment section of files, where a user-supplied payload is executed when the comment is edited. An attacker could execute arbitrary JavaScript in the victim's browser, but only if the victim is tricked into pasting and submitting the payload themselves.
Originally disclosed on HackerOne
- Disclosed after 18 hours
Note::steps mentioned in report#164027
In the Comments Box,the payload to execute XSS is passed.
Test Payloads:
</textarea><script>alert(1)</script>
Also the above payload is still working..
Also try this payload
</textarea>"><img src=x onerror=prompt('XSS');>
</textarea><IMG SRC=/ onerror="alert(String.fromCharCode(88,83,83))"></img>
</textarea><svg/onload=alert('XSS')>
</textarea>foo<script>alert(1)</script>
Click edit comment after posted.
XSS Triggers.
Attachments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application fails to properly sanitise or encode user input in the comment editing feature, allowing script execution when the comment is edited.
Impact
An attacker could execute arbitrary JavaScript in the context of the victim's session, but only if the victim is tricked into pasting and submitting the payload and then editing the comment; this is a self-XSS with limited real-world impact.
What the attacker needed
Victim pastes payload into comment; victim posts and edits comment
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 report has not been written yet. The Original tab links to the source.
This is a self-XSS, meaning the victim must paste a malicious code into a comment box and then edit the comment for the code to run. It is not a typical XSS where an attacker can directly inject code; the user has to be tricked into doing it. The impact is limited because the attacker cannot force the code to run without the victim's action.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.