Uncovering a Reflected XSS Vulnerability in an Insurance Company’s Website
A search parameter on an insurance company's admin subdomain reflected user input without encoding, allowing script execution. An attacker could run arbitrary scripts in a victim's browser to steal session cookies or redirect to phishing sites.
Published on medium.com
In my ongoing journey to enhance web security and protect sensitive user data, I recently discovered a reflected Cross-Site Scripting (XSS) vulnerability in the website of a prominent insurance company. This blog post will walk you through the discovery process, the technical details of the vulnerability, and the…
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 search parameter was reflected into the HTML response without output encoding or input validation.
Impact
Attackers could execute arbitrary scripts in a user's session, potentially leading to session hijacking, phishing redirects, or data theft.
What the attacker needed
Victim clicks a crafted link; access to the admin subdomain
The fix
The vulnerability was fixed after the company acknowledged the report and took immediate action.
How it was found
- Enumerate subdomains and find the admin subdomain returning status 200.
- Go to the admin subdomain and test input fields.
- Enter a script payload in the search bar and submit.
- Observe that the search results page displays the input without encoding.
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.
When you type something into a search box, the website usually shows it back to you. Here, the site showed it back without cleaning it first, so if someone typed code instead of words, the browser would run that code. That lets an attacker make a link that runs their code when a victim clicks it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.