Account takeover leading to PII chained with stored XSS
The site signed users in using only an email address, with no password or other proof of ownership, so anyone who knew a registered email could enter that account. Once inside, the attacker could read personal data such as phone numbers and store script in the profile's first-name field.
- Disclosed after 58 days
I have found a vulnerability on https://vehiclestdb.fas.gsa.gov/ for account takeovers The website is not using proper authentication to claim the user signing in is actually the account owner due to only requiring an email address to sign in and no password. This leads to an attacker being able to place a stored XSS payload within the victims profile and reveals PII including phone numbers of the victim.
Steps To Reproduce:
[add details for how we can reproduce the issue]
- Visit https://vehiclestdb.fas.gsa.gov/
- Enter email address in the signing form [email protected] (or for official account use [email protected])
- You have now signed in as a users account you do not own and if you browse to the profile you can see PII in the form of phone numbers.
- We can do this with any registered user
- You can place an XSS stored payload on the users profile in the first name field using ant" autofocus onfocus=prompt(1) x="
Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)]
- [attachment / reference]
Please re create these steps to see the impact
Impact
An attacker can takeover any users account from just knowing the email address, from here on in they can find PII in the form of phone numbers and place stored XSS on the users profile to execute JavaScript code on the users profile.
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 sign-in flow treated a submitted email address as proof of identity instead of verifying it with a password, one-time code or similar secret.
Impact
An attacker could take over any account by knowing its email address, view personal data such as phone numbers, and store script that runs when the profile is viewed.
What the attacker needed
Knowing a registered email address; no password or code required
How it was found
- Open the site's sign-in page.
- Enter a registered email address in the sign-in form.
- You are now signed in as that user without any further check.
- Open the profile page to view personal data such as phone numbers.
- Save script content in the first-name field of the profile.
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.
Normally a website asks for a password or a code sent to your phone before letting you into an account. Here it only asked for the email address, which is easy to guess or find, so anyone could open someone else's account. The report also says the attacker could save a small script in the profile, which would then run in the browser of anyone viewing that profile.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.