Skip to content
XSS Write-up Intermediate

Complete Account Takeover using browser Autofill feature due to D

A courier website's tracking page reflected an unsanitised parcel reference parameter into the page, allowing script injection. An attacker could craft a link that, when opened, used the browser's autofill feature to capture the victim's saved username and password and send them to an attacker-controlled server.

Muhammad ilyas Follow

Published on medium.com

They Story begins when I was invited to one of the Private invite at hackerone. I have wasted lot of time hunting programs which gives quite low rewards.

Muhammad ilyas, on medium.com

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

Impact

An attacker could steal a victim's autofilled credentials and take over their account, though the report notes the program initially considered the domain out of scope and later rated it medium severity.

What the attacker needed

Victim uses browser autofill; victim clicks a crafted link

How it was found

  1. Craft a URL with a malicious payload in the parcel parameter.
  2. Send the URL to a victim; when opened, the injected script runs.
  3. The script creates a fake login form and uses the browser's autofill to populate it.
  4. The script automatically submits the form to an attacker-controlled server, capturing credentials.

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.

The website took a value from the web address and put it directly into the page without cleaning it. This let an attacker insert their own code, which could trick the browser into revealing saved passwords. The attacker only needed the victim to click a link.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.