Blind stored XSS due to insecure contact form at https://█████.mil leads to leakage of session token and
The contact form did not sanitise user input, allowing a blind stored XSS payload to be submitted. When an admin viewed the submission in the backend panel, the payload executed and could leak the admin's session cookies and other information.
Originally disclosed on HackerOne
- Triaged in 19 hours
- Fixed in 2 months
- Disclosed after 2 months
##Summary: I have discovered a blind stored cross site scripting vulnerability due to an insecure Contact form available here https://███████.mil/ This form does not properly sanitize user input allowing for the insertion and submission of dangerous characters such as angle brackets. I was able to submit a blind xss payload through the form which was triggered in backend /admin panel. ##Steps To Reproduce: 1-Browse to the page at https://██████.mil/and fill out the contact form submitting your blind XSS payload in First name , Last name, Company and description field. 2-Submit the form and have and admin access the information. 3-This will trigger XSS in the admin panel and a notification to the XSS hunter service with details of the event.
##Supporting Material/References: (the screenshot )[██████████]
The IP address that triggered the XSS payload is ████████
Xss hunter Report █████████
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 customer and internal subscription emails, admin session cookies. An attacker can exploit the above cookies to access the admin panel.
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
Impact
An attacker could access critical information from the admin panel, including the administrator's IP address, backend service details, mail chimp customer titles, internal subscription emails and admin session cookies, and could use those cookies to access the admin panel.
What the attacker needed
Victim (admin) views the submission; attacker can submit the contact form
How it was found
- Open the contact form page.
- Fill in the first name, last name, company and description fields with a blind XSS payload.
- Submit the form and wait for an administrator to view the entry.
- The payload executes in the admin panel and sends a notification to the XSS hunter service.
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 contact form on a website accepted text that included special characters used to write web code. When an administrator later opened the submitted message in a private admin area, that code ran in the admin's browser. This is called stored cross-site scripting because the harmful input is saved and then runs later for someone else.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.