stored XSS in blog title field
The blog title field stored HTML-encoded input that the server decoded and returned without sanitisation, allowing script execution. However, the blog could only be saved as a draft visible to the author and staff, and cookies were HTTPOnly, so the report was closed as informative with no impact.
Published on medium.com
Hello , I need to share this stored xss vulnerability i found in large program on HackerOne.
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
Impact
Script execution was limited to a draft blog visible only to the author, team members and staff, and HTTPOnly cookies prevented cookie theft, so the report was considered informative with no impact.
What the attacker needed
An account on the blog platform; ability to create a draft blog; victim must view the draft
How it was found
- Enter a plain HTML tag in the blog title field and observe the tag is stripped.
- Try a script tag and an image error handler; the WAF blocks them with a 403.
- Try URL-encoded script; it does not work.
- Submit an HTML-entity-encoded script tag; the server decodes and stores it, and the alert fires.
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.
A stored cross-site scripting (XSS) flaw lets an attacker save code in a website field so that it runs in other people's browsers later. Here the title field accepted encoded script text, decoded it, and showed it back as live code. But because the blog could not be published publicly and login cookies were hidden from JavaScript, the bug could not be used to steal anything.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.