I Thought It Was Just an Email Field… It Became Full Stored XS
A website builder accepted raw HTML in its business email field and rendered it without sanitisation, so a script-capable payload persisted and executed in both the live preview and the hosted subdomain. An attacker could run script in visitors' browsers and redirect them to malicious sites.
When your website asked me for my business email, I gave it stored XSS instead. Why?
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 business email field was rendered as HTML without output encoding or sanitisation, and the only filtering was a weak blocklist that missed event-handler attributes.
Impact
The stored script could run for anyone viewing the preview or hosted site and could be used to redirect users, including admins, to malicious sites.
What the attacker needed
Ability to create or edit a site; victim views the preview or hosted site
The fix
The business email field should be validated as an email address and its output HTML-encoded or sanitised before rendering.
How it was found
- Open the site builder and fill in the website name, description and footer fields.
- Enter HTML into the business email field and observe it render in the live preview.
- Try a script tag payload and note it does not execute.
- Use an image tag with an error handler instead and see the alert fire.
- Confirm the payload persists on the hosted subdomain site as well as the preview.
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 website builder lets people create small sites by filling in fields such as name and email. This site showed whatever was typed into the email field as real web page code instead of plain text. That let an attacker put code in the field that runs in the browser of anyone who views the page, which is called stored cross-site scripting because the malicious code is saved on the server.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.