Stored XSS at ██████userprofile.aspx
A stored cross-site scripting flaw existed in the 'about yourself' profile field, allowing an attacker to inject a script that runs in the browser of anyone viewing the profile. This could let the attacker steal cookies or passwords and run arbitrary code in the victim's browser.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 12 days
- Disclosed after 21 days
Summary: Stored XSS vulnerability exists at ██████████userprofile.aspx under "say something about yourself...". XSS can be used for a variety of attacks.
Impact
XSS can be used to steal cookies, password or to run arbitrary code in the victim's browser.
Step-by-step Reproduction Instructions
- Create an account at ███████
- Go to your profile at ████userprofile.aspx
- Go to "Say something about yourself..." and enter the XSS payload xxx<svg/onload=alert(document.cookie);>xxx
- Observe that XSS triggers and reload the page to observe that it is stored XSS.
Product, Version, and Configuration (If applicable)
███userprofile.aspx#
Suggested Mitigation/Remediation Actions
Use secure coding techniques such as sanitizing input into form fields so attackers cannot inject scripts to perform XSS attacks. XSS vulnerabilities come from a lack of data escaping.
##References https://hackerone.com/reports/858255 https://dzone.com/articles/reflected-xss-explained-how-to-prevent-reflected-x https://www.imperva.com/learn/application-security/reflected-xss-attacks/ https://www.hacksplaining.com/prevention/xss-reflected
Impact
XSS can be used to steal cookies, password or to run arbitrary code in the victim's browser.
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 profile field accepted and stored user input without sanitising or escaping it before rendering it back to other users.
Impact
An attacker could steal cookies or passwords and run arbitrary code in the victim's browser.
What the attacker needed
An account; victim views the profile
The fix
The profile field should be sanitised and its output escaped so injected scripts cannot run.
How it was found
- Create an account on the site.
- Open your profile page.
- Enter a script payload in the 'Say something about yourself...' field.
- Reload the page to confirm the script runs and is 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 report has not been written yet. The Original tab links to the source.
A stored XSS bug means a site saves user input, like a profile description, and later shows it without cleaning it. If someone enters code instead of text, the site runs that code in the browser of anyone who views the profile. This can let an attacker steal cookies or passwords.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.