Came looking for SSRF and found XSS
A bookmark-import feature fetched an external URL and rendered its title and link text into the page without proper sanitisation, allowing injected HTML in the title to execute script. The author then found a payload that survived the add function's event-handler stripping and was stored, though the report was closed as informative under the programme's policy.
Published on ibraradi.gitbook.io
📌 The function only shows the content of the "a" and "title" tags from that external URL
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 import feature inserted the external page's title into the page without sanitising it, and the add function's event-handler filter could be bypassed with a malformed tag.
Impact
An attacker could run script in a victim's browser via a stored bookmark, potentially reading cookies, though the programme did not treat this as in scope.
What the attacker needed
Attacker hosts a page; victim imports or views the bookmark
The fix
The import and add functions should sanitise or encode all imported title and link content rather than relying on stripping event handlers.
How it was found
- Create a page whose title contains an image tag with an error handler
- Submit that page's URL to the bookmark import function
- Observe the script running from the title, while the link text is filtered
- Add the bookmark so it is stored, noting event handlers are stripped
- Fuzz to find a payload that survives the filter and executes when stored
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 site had a feature that pulled in a page's title and links so you could save them as bookmarks. It put that text straight onto the page without cleaning it, so text containing a small script could run in a visitor's browser. That kind of injected script is called 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.