The Bouncer Who Frisked Everyone and Forgot to Lock the Door
The platform's HTML sanitizer stripped all inline event handlers and dangerous URI schemes but allowed iframes with arbitrary https src and layout styles. An attacker could store a full-viewport iframe pointing to a phishing page, which would render on the public post page, embedded widgets on customer sites, and the admin dashboard, all under the vendor's trusted domain.
medium.com
Published on medium.com
There is a particular kind of security control I have come to love the way you love a golden retriever: earnest, thorough, tireless, and operating on a model of the world that is one crucial step behind reality.
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 sanitizer's allow-list permitted iframe elements with arbitrary https src attributes and style attributes, without enforcing a sandbox or restricting the src to trusted origins.
Impact
An attacker could host a convincing phishing page under the vendor's trusted domain, potentially harvesting credentials from users of the public page, customers' sites, and the admin dashboard; the text also flags an unconfirmed possibility of admin account takeover via end-user feedback.
What the attacker needed
A free account; victim clicks a link; attacker hosts a phishing page
How it was found
- Host a phishing page that mimics the platform's login screen on an attacker-controlled server.
- Send a POST request to the create/edit endpoint with a content field containing a full-viewport iframe pointing to the phishing page, bypassing the client-side editor.
- Share the public post URL with the victim; the victim's browser loads the vendor's domain and renders the attacker's page inside the iframe.
- The same stored payload also appears in the embedded widget on customer sites and in the admin dashboard.
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 sanitizer is a filter that removes dangerous parts from user content before showing it to others. Here, the filter removed script code but allowed an iframe, which is a window that can load another website inside the page. Because the iframe was allowed and could be made full-screen, an attacker could show a fake login page on the real site's address, tricking users into giving away passwords.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.