Live data from Hacker News

Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

blog.kotowicz.net

51–60 of 61 posts

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#51
post #9
post #3

Can anyone fathom a potentially benign reason Amazon might do this?

Read the article. The configuration from amazon is only set up to gather https data on amazon sites. Because the configuration was sent over http, he used a man in the middle attack to change it to a wildcard, and gather all https data. Amazon wasn't being evil, just incompetent. Never attribute to malice what can adequately be explained by stupidity...

I don't see even that intended purpose as benign in any way, though.

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#52
post #9
post #3

Can anyone fathom a potentially benign reason Amazon might do this?

Read the article. The configuration from amazon is only set up to gather https data on amazon sites. Because the configuration was sent over http, he used a man in the middle attack to change it to a wildcard, and gather all https data. Amazon wasn't being evil, just incompetent. Never attribute to malice what can adequately be explained by stupidity...

What about the script that they inject to every page you ever visit? Its completely useless - it contains an empty script and does nothing at all. What reason would they have to add this?

That simple empty script allows them, at any point in the future, to remotely inject scripts that'll have full permissions over any website you visit, without having to push an extension update or have it as part of their core extension code.

They can also choose to send it to specific individuals, or only for specific websites (their script URL gets the visited page as an query string argument), making something like this extremely difficult to detect.

And of course, this could also be abused by someone who hacks their servers. He could, for example, inject a script that sends the user/password whenever you login to a bank or paypal.

Having remote code execute on every page you ever visit is either extremely stupid or an extremely smart way to spy on people without being detected. When the code is part of the extension itself and not remote it: 1) has to be signed (making abuse harder for a malicious hacker) and 2) can be more easily audited, as all users of the extension would get the "spying code" (making abuse harder for a malicious company)

edit: wording

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#53
I'd like to snoop on my (self initiated) https traffic so I can write a monitor for a third party web app that is only available over https. In a similar situation but with clear text, I've made use of a perl proxy that generates code mimicking the browser initiated transaction, which can then be lightly modified into a Nagios managed monitor for that kind of transaction.

The described technique looks like it might get me some of the way there, but it's kind of a square peg to my round hole. My google/stackoverflow searches aren't getting me very far; I found a reference to jmeter acting as an https client proxying http, but that looks like a similarly deep hole. Maybe it's easier than it looks; I don't know.

I'm no browser expert, but I'm not particularly afraid of javascript.

Advice?

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#54
post #23

So if the user has Javascript disabled, what happens then? It seems so many exploits rely on Javascript. Would a user ever be willing to sacrafice a little "user experience" (accomplished with Javascript) for protection against easy exploits? Is that question ever left to the user? Not if a website provides Javascript-free means of interacting with it; and demands that the user enable Javascript (=you "must" enable J…

In this case it doesn't matter too much if you disable javascript because extensions are still working. The disable javascript option disables only the script in website contents not in extensions. So it will disabled scripts injected into the pages but scripts in extensions are still working.

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#58

My paranoia in installing extensions is finally justified. If Amazon is pulling these kind of stunts, then imagine the kind of mischief the smaller apps are pulling off. This whole "scorched earth"-style permissions model that users can't make educated decisions about is what annoys me about current platforms like Chrome, Android and iOS. JavaME had an interesting model where the app asks permissions after it is inst…

> where the app asks permissions after it is installed (e.g. internet access, local file system access) for each thing it wants to do iOS does the same for the permissions it supports (access to photo library, contacts, GPS/location, twitter accounts, etc etc), but a lot of things are always allowed (such as internet access). Facebook also lets you deny specific permissions to apps on their platform. I've always wond…

There's a tradeoff here - apps become harder to write because you know have to deal with a larger set of possible configurations.

App authors also might shut off the app in less you give it all the permissions, which will cause users to just say yes every time.

Re: Use "Amazon 1 Button" Chrome extension to sniff all HTTPS websites

#60
post #40

Earlier quoted context omitted.

I'm one of the Disconnect devs and these definitely aren't stupid questions: 1. Unlike that other "privacy" cough extension, Disconnect doesn't send any data (user or otherwise) to Disconnect servers. In other words, Disconnect doesn't output user data that can be intercepted by a MITM attack. Disconnect does grab a config file on startup ( https://disconnect.me/help#syncing ), but unlike in the Amazon case, the file…

> encrypted (with the Stanford Javascript Crypto Library) TLS already encrypts. What threat model prompted your decision to use JavaScript cryptography?

This: http://www.thoughtcrime.org/blog/ssl-and-the-future-of-authe....
Post reply on HN