More Last Pass security vulnerabilities
LastPass's browser extension used flawed URL parsing and insecure postMessage communication, allowing malicious websites to steal passwords, read browsing history, and ultimately execute arbitrary JavaScript in the extension context. The vulnerabilities were fixed in version 4.1.26.
palant.de
Published on palant.de
2016-09-16 Security/Lastpass/Password-Managers 7 mins
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 extension relied on its own URL parsing and on postMessage without proper origin checks, and allowed websites to load extension pages that had unsafe message handlers.
What the attacker needed
Victim uses LastPass extension; victim visits malicious website
The fix
The issues were fixed in LastPass 4.1.26 by restricting the communication channel to lastpass.com and lastpass.eu domains and presumably addressing the frame injection and message handler flaws.
How it was found
- Create a frame with an lpsrc attribute pointing to a crafted URL.
- The extension code loads an arbitrary extension page based on the attribute value.
- The loaded page (tabDialog.html) receives a postMessage with a 'call' command.
- The command invokes eval() with attacker-supplied parameters, executing JavaScript in the extension context.
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.
LastPass is a password manager that fills in your passwords on websites. The extension had bugs that let a malicious website trick it into giving away passwords or even run harmful code inside the extension, which could compromise all your saved data. The problems were fixed in an update.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.