[Paper Review] Automated Password Extraction Attack on Modern Password Managers
This paper presents Lupin, a network-based attack that automatically extracts passwords saved by modern web browsers' password managers by abusing HTTP-to-HTTPS redirects and iframe-based form injection. The attack bypasses HTTPS encryption and retrieves credentials from 28% of the top 45,000 websites in under 35 seconds, demonstrating a critical vulnerability in browser password manager heuristics and advocating for HSTS-like protections and improved browser-level defenses.
To encourage users to use stronger and more secure passwords, modern web browsers offer users password management services, allowing users to save previously entered passwords locally onto their hard drives. We present Lupin, a tool that automatically extracts these saved passwords without the user's knowledge. Lupin allows a network adversary to obtain passwords as long as the login form appears on a non-HTTPS page. Unlike existing password sniffing tools, Lupin can obtain passwords for websites users are not visiting. Furthermore, Lupin can extract passwords embedded in login forms with a destination address served in HTTPS. To determine the number of websites vulnerable to our attack, we crawled the top 45,000 most popular websites from Alexa's top website list and discovered that at least 28% of these sites are vulnerable. To further demonstrate the feasibility of our attack, we tested Lupin under controlled conditions using one of the authors' computers. Lupin was able to extract passwords from 1,000 websites in less than 35 seconds. We suggest techniques for web developers to protect their web applications from attack, and we propose alternative designs for a secure password manager.
Motivation & Objective
- To identify and exploit a critical vulnerability in how modern password managers handle credentials across HTTP and HTTPS web pages.
- To demonstrate that network adversaries can automatically extract saved passwords without user interaction or direct access to the target site.
- To evaluate the real-world impact of the attack by measuring its scalability and success rate across the top 45,000 websites.
- To propose practical defenses for both web developers and browser vendors that balance usability and security.
Proposed method
- Lupin performs ARP spoofing to position itself as the victim’s network gateway.
- It injects malicious iframes into unencrypted HTTP responses, each pointing to a different website’s login form.
- When the victim visits an HTTP page, Lupin serves a fake login form with embedded JavaScript to capture auto-filled passwords.
- The JavaScript code extracts the password from the browser’s auto-fill mechanism and exfiltrates it to the attacker.
- The attack leverages the common practice of redirecting from HTTP to HTTPS login pages, allowing it to steal passwords even for HTTPS-protected sites.
- The tool was tested in controlled conditions, measuring performance on 1,000 websites to validate its speed and reliability.
Experimental results
Research questions
- RQ1Can a network adversary automatically extract passwords stored by browser password managers without direct access to the target website?
- RQ2Why are HTTPS-protected login forms vulnerable to password extraction when embedded in HTTP pages?
- RQ3What percentage of popular websites are vulnerable to this automated password extraction technique?
- RQ4How fast can such an attack be executed at scale across multiple websites?
- RQ5What defenses can be implemented by web developers and browser vendors to mitigate this threat without sacrificing usability?
Key findings
- Lupin successfully extracted passwords from 1,000 websites in less than 35 seconds during controlled testing.
- 28% of the top 45,000 websites surveyed are vulnerable to the attack due to HTTP pages that redirect to HTTPS login forms.
- The attack works even when the final login form is served over HTTPS, bypassing the security of encrypted connections.
- The vulnerability stems from password managers auto-filling forms based on URL origin and lack of destination protocol validation.
- Existing defenses like disabling autocomplete or using HSTS alone are insufficient to fully mitigate the attack.
- A hybrid defense combining HSTS-like enforcement with stricter origin and destination checks is proposed as a secure-by-default solution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.