Skip to content
XSS Disclosed report Beginner

XSS on username when register to proffesional account

The username field on a professional sign-up page did not sanitise input, allowing an attacker to inject a script that executed in the victim's browser. The researcher demonstrated this by entering a payload that triggered an alert showing the document domain.

bogdantc Follow

Originally disclosed on HackerOne

  • Triaged in 45 hours
  • Fixed in 3 months
  • Disclosed after 4 months

Summary by the program

A XSS vulnerability was found in the username field of one of our sign-up pages (https://www.formassembly.com/partners/salesforce/sign-up.php?plan=PROFESSIONAL). The researcher was able to prompt an alert by posting this code in the field: "><img src=x onerror=alert(document.domain)>

This issue was corrected and we thank the researcher, @bogdantcaciuc for his contributions to our site's security.

The original report as published on HackerOne, by bogdantc. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 username input was reflected into the page without proper HTML encoding, allowing an attacker to break out of an attribute and inject an image tag with an event handler.

Impact

An attacker could execute JavaScript in the context of the sign-up page, as demonstrated by an alert showing the document domain.

What the attacker needed

Victim visits the sign-up page; attacker can supply a crafted username

The fix

The issue was fixed by the program.

How it was found

  1. Go to the professional sign-up page.
  2. Enter a crafted payload containing an image tag with an onerror handler into the username field.
  3. Submit the form and observe the JavaScript alert executing.

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.

An XSS bug lets an attacker put JavaScript into a web page. Here, the username box on a sign-up form accepted special characters that broke out of the HTML and ran a script, which triggered an alert.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by bogdantc

View all

9 more disclosed reports, best first.

More from FormAssembly

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.