Skip to content
CSRF Write-up Intermediate

Think Fast: How Auto-Complete Suggested Me Passwords That Weren’t Mine ᾒf

The login page had a form that could be embedded on an attacker's page, and the browser's autofill would fill in saved credentials and auto-submit them to the target site. An attacker could trick a victim into visiting a malicious page and capture their login token or session.

infosecwriteups.com

Published on infosecwriteups.com

Free link 🎈

Iski, on infosecwriteups.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

Root cause

Likely the login form lacked CSRF protection and allowed cross-origin autofill submission, so a malicious page could trigger autofill and auto-submit to the real login endpoint.

Impact

An attacker could steal a victim's session token or credentials if the victim had saved credentials and visited the malicious page, though the report does not confirm actual exploitation.

What the attacker needed

Victim has saved credentials; victim visits attacker's page; attacker can host a page

How it was found

  1. Create a malicious HTML page with an invisible login form that mimics the target's login form.
  2. Set the form action to the target's login endpoint and include fields with autocomplete attributes.
  3. Add JavaScript to automatically submit the form when the page loads.
  4. Send the page to a victim who has saved credentials for the target site.
  5. When the victim visits, the browser autofills the form and auto-submits it, sending the credentials to the target and potentially leaking the session token.

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 save a password in your browser, it can automatically fill in login forms. If a bad website shows a fake login form that looks like the real one, your browser might fill in your saved password and even submit it without you noticing. This report shows how that could let an attacker steal your account.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.