Live data from Hacker News

LastPass autofill exploit

labs.detectify.com

101–110 of 443 posts

Re: LastPass autofill exploit

#101

I don't quite follow. The author says that by entering the URL " http://avlidienbrunn.se/@twitter.com/@hehe.php" , the extension is fooled into autofilling as if the browser was on twitter.com. What's the difference with simply going to " http://twitter.com" ? This looks more like a bug than a vulnerability, what am I missing?

An attacker could fool the extension to autofill a form on a domain they control with credentials from another domain and send the credentials to their server.

Re: LastPass autofill exploit

#102

I don't quite follow. The author says that by entering the URL " http://avlidienbrunn.se/@twitter.com/@hehe.php" , the extension is fooled into autofilling as if the browser was on twitter.com. What's the difference with simply going to " http://twitter.com" ? This looks more like a bug than a vulnerability, what am I missing?

A bug that tricks the secure password management tool into revealing your Twitter password to a website that is not Twitter! That's a pretty major security vulnerability due to a bug in URL parsing.

Re: LastPass autofill exploit

#103
post #84
post #62

Earlier quoted context omitted.

They sold their future. The next bug will be sold to the highest bidder.

People find and disclose bugs regularly even where there isn't a bounty. Most (at least 99.99%) developers don't want to see a useful, successful product fail even if they can personally gain from it. The likelihood that an exploit for Lastpass will be discovered by an attacker and sold to a nefarious actor is very small. Further to that though, we now know that this problem is fixed in LastPass. We don't know about…

To that end, LastPass is now a better option than it's rivals.

Only when you believe that all password managers are equally secure from the start.

There are many reasons to believe that this is not the case. Storing passwords in a cloud service is quite a red flag. Then there is a former employee stating on Twitter that part of the codebase is very neglected:

https://twitter.com/ejcx_/status/758081553712820225

Re: LastPass autofill exploit

#104

Earlier quoted context omitted.

I want an alternative, got a good one?

If you're using a *nix system: https://www.passwordstore.org/ I switched over from LastPass a few months ago. It uses gpg for encryption and supports git for password syncing between systems. Pretty simple to set up and use. There are quite a few third party apps for it already (both desktop and mobile)

That's brilliant, thanks a lot!

I never trusted "cloud" (read: not yours) password stores. I have been using KeePass and manual syncing, but I had my doubts about it too.

This looks perfect and simple!

Re: LastPass autofill exploit

#106
post #5

I'm generally very sympathetic to regex bugs (especially in a language like JavaScript where you don't get nice expanded multiline regexes with comments), but I am wondering why they went with a regex in the first place. Did they decide `document.location.host` was too brittle for some reason?

I'm not sympathetic to regex bugs where they're being used to parse untrusted user input which is then later used to do something important (like, say, pick which URL to submit credentials to). They're way too easy to cock up for anything security-related.

Re: LastPass autofill exploit

#107

Earlier quoted context omitted.

I'd say some of the points could be easily covered by something like KeePass which, unlike cloud, doesn't have to depend on questionable security of third-party services. For example. I use KeePass to store all my password. I keep my KeePass database in Google Drive, so any change to the file will be updated. because of that I can use KeePass on any machine that has access to Google Drive (I also keep executables for…

It's not really very much more effort. I use KeeFox (Firefox) and Keepass2Android (you can guess). I love both tools, they've made password management trivial, and I used to be a die-hard "one password for everything is just so much more convenient" fan.

How do you sync the two?

Re: LastPass autofill exploit

#109
post #79

Earlier quoted context omitted.

Let's do a little calculation to see if the payout is worthwhile. Using something illegally means you run the risk of going to prison. Let's say there's a 1% chance you get caught, the prison sentence is 10 years, and the evil hackers will pay you $20,000 for your bug. Let's also say that you're a mid-career software engineer in the US, and over the next 10 years you expect to make $2M (after taxes). This means your…

Is it still illegal when Lastpass actually stimulates you financially to pry into their systems?

They authorize you to pry into their systems if, and only if, you report security bugs back to them. If you don't, they don't authorize you to pry into their systems, and it's illegal.

Re: LastPass autofill exploit

#110
post #78

Could someone explain me better the posted code that was vulnerable? I don't understand it. What's the returned value?, what is URL and url?, why the extension is expecting there must be a @ inside the url? Thanks! :-)

Very simply, I have a password stored for "login.example.com". LastPass knows that companies like to change URLs - so next week it might be "userlogin.example.com" or "secure.example.com/login" or "www2.uk.vpn1.example.com" etc.

Essentially, LastPass made the mistake of writing code which said "If you see `example.com` anywhere in the URL - assume that you're on the right site.

LastPass will allow you to automatically fill in the username and password as soon as you visit a site (I think this is an optional feature).

An attacker convinces you to visit "badsite.wtf/@example.com/". LastPass sees the "example.com" and autofills the password field. The site has some JavaScript to detect the filled in details - and steals them.

Post reply on HN