6 ms·
We need MITM detection in the browser. Yes, it's possible. The crypto bits the host is sending are different from the crypto bits the client is receiving. Ther
by Animats 10y ago
We need MITM detection in the browser.
Yes, it's possible. The crypto bits the host is sending are different from the crypto bits the client is receiving. There are several ways to compare those, despite what the MITM box is doing. Out of band channels, timing, and order of data can be used.
I sometimes refer to HTTPS Everywhere as "Security Theater Everywhere". Before the mania for HTTPS, many sites only used HTTPS only for crucial transactions such as logins and credit cards. Those were infrequent enough that they didn't have to go through a CDN. Now, with HTTPS Everywhere, there's no distinction between the stuff that has to be hidden from observers, and the stuff which only needs something like Subresource Integrity to make sure it hasn't been messed with. So now the secure channel over which credit card numbers and logins are passed is exposed at the CDN.
- deleted 10y ago[deleted]
- averagewall 10y agoThen those organizations using MITM boxes will install a patch or special modified browser on their members' computers instead of installing a certificate. What's the difference? They still control the computer and can bypass whatever security it has.
- ancarda 10y agoIt's not safe to do only logins over HTTPS because if the initial site is served over HTTP, an attacker could rewrite the URL or inject JavaScript to leak your password. Also, once you're signed in, every request sends a cookie which is also valuable to steal as it's an active session. Every request needs to be encrypted. We haven't made TLS worse by deploying it everywhere.
- 4ad 10y agoLogins? 99% of the websites I visit don't have user accounts.
- icebraining 10y agoNot even for the person managing them?
- aussie_dev 10y ago/wp-admin
- j_s 10y agoYou can request a second opinion attempting to detect MitM via JavaScript using snuck.me: https://jlospinoso.github.io/node/javascript/security/cryptography/privacy/2017/02/20/snuckme-cert-query.html https://jlospinoso.github.io/node/javascript/security/crypto... Most of the usual client-side JavaScript crypto caveats apply: Of course, all bets are off if the man in the middle is also a man in your device. You should give up any expectations of privacy in this case.
- bgidley 10y agoYou can prevent MITM from the browser - you 'simply' use Whitebox Crypto to create a secured channel - (shameless plug Irdeto who I work for sell this as solution https://irdeto.com/payments-and-banking/cloakedjs-code-protection-technology.html https://irdeto.com/payments-and-banking/cloakedjs-code-prote...) In that case even if you MITM it - all the bad guy gets is encrypted (AES) data. Whitebox does sound a bit like black magic, but it's widely deployed (over 5 billion devices for Irdeto's) and add a nice layer to ensure that you're actually talking to the end users browser, and it's your code that's running on it.
- icebraining 10y agoSnake-oil. If I MITM, I'll just add my own code that copies the plain-text to my server, I don't need to break any encryption. It's nothing more than an obfuscation layer.
- bgidley 10y agoWe did think of that :) - we can detect your tampering with the forms we protect. But that said it doesn't stop everything if you can install a keylogger, or get the user to enter data somewhere else we can't stop it and it does depend on where in the user journey you try and protect things, as someone else here has pointed out if any of the journey is HTTP (or HTTPS being MITM) then they can send the user somewhere else. However I'd also argue you don't actually need to stop people grabbing the data. Noticing achieves a large chunk of that, as (for example) I can notify the credit card system it's happened. If you want to see exactly what it does and doesn't do see https://resources.irdeto.com/payments-banking/solution-overview-cloaked-js-security-target https://resources.irdeto.com/payments-banking/solution-overv...
- dfc 10y agoI am confused, initially you said "you can prevent MITM" now you say "doesnt stop everything...(HTTPS being MITM)". So your claim is that your product can or can not prevent MITM?
- deleted 10y ago[deleted]
- icebraining 10y agoYou can still do the exact same thing: have a specific (sub)domain for those crucial transactions, while the main domain gets served by the CDN. Alternatively, and in my opinion better, is to have a (sub)domain for static assets, served from the CDN, and keep the main one free from man-in-the-middle.
- nickik 10y agoThere is a larger number of threads we are opposing. I want everything over HTTPS because that how I know its actually the site that I wanted. How many more cases do we need where some stupid ISP or middleware puts ads into other peoples webpage. Not to mention that those ads might also be a security problem. Privacy is another issue that HTTPS Everywhere at least helps considerably. The NSA literally tcpdumps the internet and uses sophisticated tools to analyse it. I prefer to have a internet that makes it hard for the NSA and company.
- paulddraper 10y ago> I want everything over HTTPS because that how I know its actually the site that I wanted. That's why the poster said "the stuff which only needs something like Subresource Integrity to make sure it hasn't been messed with".
- tptacek 10y agoWe have MITM detection in the browser. It's called certificate validation. Browser certificate validation hasn't been as simple as "check CA signature" for close to a decade, and even a decade ago you could configure your browser to trust only certain CAs, or, through the certificate exception manager, only certain specific certificates. All of this functionality breaks MITM proxies.
- mholt 10y agoServers are better poised to detect it. Caddy can serve sites that warn browsers of HTTPS interception: https://github.com/mholt/caddy/pull/1430 https://github.com/mholt/caddy/pull/1430