Blind Stored XSS on ███████ leads to takeover admin account
Several profile fields did not strip HTML and JavaScript, so an attacker could store a blind XSS payload that fired when an administrator viewed the profile. The payload sent the administrator's session cookies, IP address and other data to an external service, allowing the attacker to access the admin panel.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 13 days
- Disclosed after 15 days
##Hello Team, I am Hemant Patidar working as a security researcher and I found a bug in your site. Report of bug is as follows:-
##Vulnerable URL: https://████████/
##Description: I have found that various field of the profile page is not properly configured to wipe out HTML tags and Javascript code which leads to store the blind XSS payload in the first name, last name, title etc. and whenever the admin will check the profile the code will fire and we will get response in the XSS Hunter along with the screenshot of the admin side, IP and cookies and other sensitive information.
POC: XSS Hunter report attached.
Impact
An attacker is able to access critical information from the admin panel. The XSS reveals the administrator’s IP address, backend application service, titles of mail chimp customers and internal subscription emails, admin session cookies. An attacker can exploit the above cookies to access the admin panel.
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Go to the URL by opening your account: https://█████/█████████
- Now enter the below payload in the First name, last name, company name and title: data: ">
- Now wait for some time you will get an XSS fire email via XSS hunter along with the screenshot and other sensitive info.
Suggested Mitigation/Remediation Actions
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 application stored user-supplied profile fields without sanitising or encoding HTML and JavaScript, and later rendered them unsafely in the admin interface.
Impact
An attacker could obtain the administrator's session cookies and other sensitive information, and use the cookies to access the admin panel.
What the attacker needed
A user account; admin views the profile
How it was found
- Log in and open the profile page.
- Enter the payload in the first name, last name, company name and title fields.
- Wait for the XSS Hunter notification with the screenshot and sensitive information.
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.
Some profile fields on the website accepted HTML and JavaScript code instead of just plain text. When an administrator later looked at the profile, that hidden code ran in the administrator's browser and secretly sent the administrator's login cookies to the attacker. With those cookies the attacker could log in as the administrator.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.