HTTPS is not a magic bullet for Web security

Status
Not open for further replies.

lewax00

Ars Legatus Legionis
17,402
Https breaks caching. I don't think you need to 'secure' every single bit of information. Private information, yes. Public information, why?
HTTPS does not break caching. Most caching is done at the browser level, which works fine with HTTPS because it knows what data you're requesting. Intermediate caching doesn't work, sure, but that doesn't really gain you much at this point, because most sites big enough to benefit from it use CDNs anyways (which mostly eliminates the benefit for intermediate caches...they're already in your ISP's network, so no point for your ISP to cache it, for example).

And for public information...well read the article. It explains why. Hint: it's about more than the content.
 
Upvote
10 (10 / 0)

sep332

Ars Praefectus
4,188
Subscriptor++
[url=http:/civis/viewtopic.php?p=31520487#p31520487:76rngdeo said:
agrouf[/url]":76rngdeo]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:76rngdeo said:
chickensevil[/url]":76rngdeo]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:76rngdeo said:
jeff234[/url]":76rngdeo]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in fact accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf
 
Upvote
3 (4 / -1)

vnicolici

Ars Scholae Palatinae
754
[url=http:/civis/viewtopic.php?p=31521095#p31521095:2tnk71mv said:
sep332[/url]":2tnk71mv]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:2tnk71mv said:
agrouf[/url]":2tnk71mv]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:2tnk71mv said:
chickensevil[/url]":2tnk71mv]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:2tnk71mv said:
jeff234[/url]":2tnk71mv]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in face accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of
high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf

While generally this is a valid concern, this particular discussion was about Wikipedia. The huge number of articles, over 40 million, makes this unfeasible because there are too many articles with the same size.
 
Upvote
14 (14 / 0)

sep332

Ars Praefectus
4,188
Subscriptor++
[url=http:/civis/viewtopic.php?p=31521143#p31521143:2qqsj9sp said:
vnicolici[/url]":2qqsj9sp]
[url=http:/civis/viewtopic.php?p=31521095#p31521095:2qqsj9sp said:
sep332[/url]":2qqsj9sp]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:2qqsj9sp said:
agrouf[/url]":2qqsj9sp]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:2qqsj9sp said:
chickensevil[/url]":2qqsj9sp]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:2qqsj9sp said:
jeff234[/url]":2qqsj9sp]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in face accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of
high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf

While generally this is a valid concern, this particular discussion was about Wikipedia. The huge number of articles, over 40 million, makes this unfeasible because there are too many articles with the same size.
I'm not convinced of that but I can't find any good data. But Wikipedia is just an example. You can monitor a few thousand sensitive pages and focus your attention on page loads that are exactly one of those sizes. If someone loads a few pages in a row, you can be fairly sure which ones they are.
 
Upvote
0 (2 / -2)

D-Coder

Ars Praetorian
435
Subscriptor
[url=http:/civis/viewtopic.php?p=31520319#p31520319:2s83hd1u said:
LarryMocono[/url]":2s83hd1u]From HTTPS Anywhere's FAQ:

When does HTTPS Everywhere protect me? When does it not protect me?

HTTPS Everywhere protects you only when you are using encrypted portions of supported web sites. On a supported site, it will automatically activate HTTPS encryption for all known supported parts of the site (for some sites, this might be only a portion of the entire site). For example, if your web mail provider does not support HTTPS at all, HTTPS Everywhere can't make your access to your web mail secure. Similarly, if a site allows HTTPS for text but not images, someone might be able to see which images your browser loads and guess what you're accessing.
<<snip>>
To quote the most relevant part:

On supported parts of supported sites, HTTPS Everywhere enables the sites' HTTPS protection which can protect you against eavesdropping and tampering with the contents of the site or with the information you send to the site.

Notice no mentions of it magically protecting POS systems that have nothing to do with the website or any other strawman claims the author was beating up. What a silly article...
Yes but. How many people other than programmers have read this? Check your non-programmer friends, I'll guess the number is a very small integer. Many people assume "secure connection" is the same as "secure."
 
Upvote
3 (3 / 0)

numbers_good

Smack-Fu Master, in training
59
While surveillance and censorship are both important problems, I'd argue that the flashing red DANGER WILL ROBINSON sign belongs to the third problem the article mentions: Man-in-the-middle Javascript injection (like Great Cannon).

A modest proposal: Browsers should disable all Javascript served over HTTP by default. By doing otherwise, your browser is simply volunteering to execute whatever arbitrary code an attacker might feel like injecting into your otherwise innocuous web-viewing fare.

Conveniently, most of the "old web," the bits that would break in an HTTPS-only world, depends much less on Javascript for basic putting-the-content-on-the-page functionality than the "modern (grrr) web," so much of it can be read just fine without Javascript enabled.

A fair (though imperfect) analogy: Javascript served via HTTP is ActiveX all over again. Let's fix that.
 
Upvote
6 (6 / 0)

J.King

Ars Praefectus
4,596
Subscriptor
[url=http:/civis/viewtopic.php?p=31521095#p31521095:18lujq5l said:
sep332[/url]":18lujq5l]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:18lujq5l said:
agrouf[/url]":18lujq5l]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:18lujq5l said:
chickensevil[/url]":18lujq5l]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:18lujq5l said:
jeff234[/url]":18lujq5l]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in fact accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf
The first study is probably worthless. It used methods from over 15 years ago which are becoming less applicable every day. The second is more recent, it seems. I'll have to read it in more detail.
 
Upvote
0 (0 / 0)
With this discussion of discovering what page on Wikipedia someone is visiting based on traffic size, I have to wonder, don't most ciphers use blocks of certain lengths (say 128 bits).... That would mean that many pages with somewhat different sizes would all return the same amount of data, even if the headers and everything else were 100% predictable.
 
Upvote
0 (0 / 0)

vnicolici

Ars Scholae Palatinae
754
[url=http:/civis/viewtopic.php?p=31521195#p31521195:3e59wulj said:
sep332[/url]":3e59wulj]
[url=http:/civis/viewtopic.php?p=31521143#p31521143:3e59wulj said:
vnicolici[/url]":3e59wulj]
[url=http:/civis/viewtopic.php?p=31521095#p31521095:3e59wulj said:
sep332[/url]":3e59wulj]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:3e59wulj said:
agrouf[/url]":3e59wulj]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:3e59wulj said:
chickensevil[/url]":3e59wulj]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:3e59wulj said:
jeff234[/url]":3e59wulj]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in face accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of
high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf

While generally this is a valid concern, this particular discussion was about Wikipedia. The huge number of articles, over 40 million, makes this unfeasible because there are too many articles with the same size.
I'm not convinced of that but I can't find any good data. But Wikipedia is just an example. You can monitor a few thousand sensitive pages and focus your attention on page loads that are exactly one of those sizes. If someone loads a few pages in a row, you can be fairly sure which ones they are.

Total number of Wikipedia articles:

https://stats.wikimedia.org/EN/TablesArticlesTotal.htm

Average Wikipedia article size:

https://stats.wikimedia.org/EN/TablesAr ... rticle.htm

And yes, it's just an example, but it's a particularly bad example. That and the claim that it's trivial is the reason for down voting.

Furthermore, the claim was not only they can know what pages you visited, the claim was that they can also block those pages based on that size.

That's bullshit. To know the page size, they need to measure the transfer. If they measure the transfer, the page already reached the user and can't be blocked anymore.

This means to implement a block you would have to buffer the data sent to the user, measure the size, then send it to the user if the size is allowed.

The complexity and hardware resources needed for doing that that is crazy. Nobody would do that just to keep users from accessing some pages on Wikipedia.
 
Upvote
8 (8 / 0)

sep332

Ars Praefectus
4,188
Subscriptor++
[url=http:/civis/viewtopic.php?p=31521361#p31521361:2l8c5m28 said:
J.King[/url]":2l8c5m28]
[url=http:/civis/viewtopic.php?p=31521095#p31521095:2l8c5m28 said:
sep332[/url]":2l8c5m28]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:2l8c5m28 said:
agrouf[/url]":2l8c5m28]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:2l8c5m28 said:
chickensevil[/url]":2l8c5m28]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:2l8c5m28 said:
jeff234[/url]":2l8c5m28]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in fact accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf
The first study is probably worthless. It used methods from over 15 years ago which are becoming less applicable every day. The second is more recent, it seems. I'll have to read it in more detail.
Well here's a more recent one (2012) which includes testing against some defenses. https://www3.cs.stonybrook.edu/~xcai/fp.pdf The defenses help a lot, but they're still not great. As vnicolici pointed out, they do make it pretty useless to try blocking.
 
Upvote
0 (0 / 0)

jhodge

Ars Tribunus Angusticlavius
8,851
Subscriptor++
[url=http:/civis/viewtopic.php?p=31520911#p31520911:366p0cv4 said:
LieutenantLefse[/url]":366p0cv4]
This article should include a bit about how HTTPS does note even really secure your connection unless you personally vet the list of trusted CAs. Otherwise, your company, ISP, govt., etc. can still perform a MITM attack. Given the extensive list of CAs trusted by default in Chrome and Firefox, some of them explicitly governmental, a 'secure' indication by your browser does not actually mean 'secure'.

For the "company" case, I understand how a corporate-controlled browser or PC can be configured with certificates and proxy settings to use some MITM appliance. For the "ISP, govt, etc" case, can someone point me to a good technical explanation of how a nefarious CA would go about decrypting an SSL session? I'm honestly curious.

Really, all that is necessary is that a trusted CA cert from the ISP/govt be installed in you browser or system credential store. For example, out of the box, Deutsch Telecom, Japanese Government, and China Internet Network Information Center, along with several other telecom/govt entities have trusted certs installed. With those in place, 'all' they need to do is route your traffic through a proxy, and they can MITM you without either end knowing. If you have a smartphone from a carrier, that carrier likely has a trusted cert installed on your phone they can user to decrypt traffic for analysis.

The rerouting-through-a-proxy bit is not trivial unless its YOUR ISP doing it, but having a trusted CA cert installed takes encryption out of the picture unless the site in question has implemented certificate pinning (https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning), which is not the common case.
 
Upvote
3 (3 / 0)

scottwsx96

Ars Tribunus Militum
1,627
[url=http:/civis/viewtopic.php?p=31520537#p31520537:1qyg4l6s said:
CraigJ[/url]":1qyg4l6s]
[url=http:/civis/viewtopic.php?p=31520349#p31520349:1qyg4l6s said:
LarryMocono[/url]":1qyg4l6s]
[url=http:/civis/viewtopic.php?p=31520327#p31520327:1qyg4l6s said:
CraigJ[/url]":1qyg4l6s]
[url=http:/civis/viewtopic.php?p=31520171#p31520171:1qyg4l6s said:
LarryMocono[/url]":1qyg4l6s]What exactly do the Target and Home Depot breaches have to do with their websites using HTTPS? The breaches were of their POS systems, not their webserver. Non sequitur much?
It's an example of securing the connection but not the data, thus no security.

Kind of like putting a deadbolt on a cardboard door.

Not really since using HTTPS on their website means that people couldn't have been MITMed and thus an attacker could have stolen their credit card info without it ever reaching Target to begin with.

So you're saying that they could NOT have been MITM'd so an attacker could have stolen the card info before reaching Target?

/confused.

Are you suggesting that Target's HTTPS was also somehow compromised?

Setting that aside the point is that if a website uses TLS 1.3 with 4096-bit keys, but leaves the data unprotected once it gets there, that's almost like having no security at all. Yes, HTTPS minimizes the attack surface, but to extend my metaphor, what's the point of a triple bolted steel front door if you're going to leave your valuables out in plain sight viewable from the back door "secured" with a spring latch?

Your line of thinking is dangerous in InfoSec. Your argument here seems to boil down to: since you aren't doing thing A, you shouldn't do thing B because why do thing B if you aren't doing thing A?

You have to start somewhere and you have to implement security in stages. No one has the resources to build Fort Knox overnight.

Doing InfoSec properly starts with identifying your resources and classifying them. How important are they to your organization? How much risk are you willing to tolerate for each one and how are you going to mitigate the risk? Then you build from there.

Obviously, you should start with your greatest risks and work your way down. At the simplest level though, just because you aren't doing one thing over there doesn't mean you shouldn't do this thing over here.
 
Upvote
4 (4 / 0)
"Anyone who has put in the effort to get HTTPS working on even one site knows that it can be a tremendous hassle."

Ahem,

1. Point domain to ip of server

2. Wait till dns change has propagated --> https://dnschecker.org

3. disable web server for time of install and install letsencrypt

4. run letsencrypt certonly -d DOMAIN.COM -m MAIL@DOMAIN.COM --agree-tos

5. if nginx, add to either server block of site in

/etc/nginx/sites-available/DOMAIN.COM or wherever you put your nginx.conf snippets,

e.g.

/var/www/DOMAIN.COM/conf/nginx/ssl.conf

the following lines

listen 443 ssl http2;
ssl on;
ssl_certificate /etc/letsencrypt/live/DOMAIN.COM/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/DOMAIN.COM/privkey.pem;

6. reload webserver

7. if all works, redirect all http traffic to SSL

server {
listen 80 default_server;
server_name _;
return 301 https://$domain_name$request_uri;
}

Eh, voilà!

And while you are at it:

ssh-keygen -t ed25519 on host and client

cat ~/.ssh/id_ed25519.pub, copy that clipboard and paste into ~/.ssh/authorized_keys

and check/change/add values in /etc/sshd_config
..
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key --> shouldn't even think about that one
#HostKey /etc/ssh/ssh_host_ecdsa_key --> NIST based,not good
..
HostKey /etc/ssh/ssh_host_ed25519_key
..
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
..
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
..
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com
..
PermitRootLogin without-password
StrictModes yes
..
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
..
ChallengeResponseAuthentication no


AND AVOID UseRoaming exploit

echo "UseRoaming no" >> /etc/ssh/ssh_config

CAVEAT: MAKE DOUBLE SURE YOU CAN LOG IN WITH ED25519 pubkey before commenting out HostKey /etc/ssh/ssh_host_rsa_key AND removing the rsa-pubkey you - hopefully - have been using.

ED25519 VS ECDSA VS RSA: http://security.stackexchange.com/a/46781

hth

edit1: corrected double use of certonly

edit2: Get a SSL certificate for ALL your servers! Yes! Really! All of them!

edit3: Use that CPU power and generate a 4096 dhparam to get an A rating at ssl labs:

openssl dhparam -out /etc/ssl/certs/dhparam.pem

And yeah, that will take quite long

and make sure your /etc/nginx/nginx.conf has:

ssl_session_cache shared:SSL:20m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam /etc/ssl/certs/dhparam.pem;

NOTE that ss_ciphers is restricted to modern - aka last couple years - ciphers.
 
Upvote
5 (5 / 0)

J.King

Ars Praefectus
4,596
Subscriptor
[url=http:/civis/viewtopic.php?p=31521541#p31521541:1j6dacha said:
sep332[/url]":1j6dacha]
[url=http:/civis/viewtopic.php?p=31521361#p31521361:1j6dacha said:
J.King[/url]":1j6dacha]
[url=http:/civis/viewtopic.php?p=31521095#p31521095:1j6dacha said:
sep332[/url]":1j6dacha]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:1j6dacha said:
agrouf[/url]":1j6dacha]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:1j6dacha said:
chickensevil[/url]":1j6dacha]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:1j6dacha said:
jeff234[/url]":1j6dacha]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
This is absolutely true and you should not be downvoted so much. "We found that without extremely aggressive length padding, a relatively straightforward identification algorithm could in fact accurately identify many Web pages within the study with very low false positive rates based on number and sizes of objects alone." http://infolab.stanford.edu/~qsun/resea ... cation.pdf

"Our research shows that surprisingly detailed sensitive user data can be reliably inferred from the web traffic of a number of high-profile, top-of-the-line web applications such as [health, tax, investing] and Google/Yahoo/Bing search engines: an eavesdropper can infer the medications/surgeries/illnesses of the user, her annual family income and investment choices and money allocations, even though the web traffic is protected by HTTPS" http://www.informatics.indiana.edu/xw7/ ... -final.pdf
The first study is probably worthless. It used methods from over 15 years ago which are becoming less applicable every day. The second is more recent, it seems. I'll have to read it in more detail.
Well here's a more recent one (2012) which includes testing against some defenses. https://www3.cs.stonybrook.edu/~xcai/fp.pdf The defenses help a lot, but they're still not great. As vnicolici pointed out, they do make it pretty useless to try blocking.
That study is far more relevant than the other two (the first being ancient, the second being questionably applicable to the problem under the discussion here, and far from trivial). Thanks. HTTP/2 would seem to make the methods even in this more recent method less reliable, though it seems perhaps not by much. Very interesting.

Regardless the original assertion is bunk, as vnicolici admirably demonstrated.
 
Upvote
1 (1 / 0)

scottwsx96

Ars Tribunus Militum
1,627
[url=http:/civis/viewtopic.php?p=31520543#p31520543:15xz9nuj said:
till213[/url]":15xz9nuj]
Could you have noticed? Of course! You could have checked the server (aka "Proxy") certificate presented to you ("Do you know how?") and realised that it actually "does not belong to foo.com". Even though your browser TRUSTS that certificate and did not complain about anything! (*)

Update: I have to take back that part! Apparently it is not that easy to just "check the server certificate that was presented to you"! I just checked with e.g. https://www.google.ch and the server certificate presented in Firefox is from Google! That is:

Common Name (CN): google.com
Organisation (O): Google Inc.
etc.

and:

Certificate Hierarchy: GeoTrust Global CA -> Google Internet Authority G2 -> google.com

Basically everything that I'd expect. Now I haven't checked the fingerprints of said certificate against the one I'd pretty sure find somewhere on Google's website. But for sure there's no sign of our "proxy server certificate"! At least not an obvious one...

End update

If you were checking this from a network that uses a SSL/TLS forward proxy, you should be aware of a few things:

  • Such proxies provide granular control. Generally, most SSL/TLS forward proxy administrators configure them to exclude some things, such as URLs in specific URL categories, specific domains, specific source IP address ranges, etc. For example, we don't decrypt the following URL categories on our network: health-and-medicine, financial, web-based-email, and shopping. It's possible that your connection to Google was excluded from decryption in the proxy configuration policies.
  • If you are using Google Chrome, be aware that it uses the QUIC protocol and not HTTPS to connect to Google services. I haven't seen a SSL/TLS forward proxy that decrypts the QUIC protocol yet. The way that SSL/TLS forward proxy administrators typically handle this is by either blocking the QUIC protocol, in which case Chrome falls back to HTTPS which can be decrypted, or they use Active Directory Domain Services Group Policy to disable the QUIC protocol in Chrome.

If you are seeing Google's actual certificate* in the browser, it means that your connection with Google is not decrypted.

* The only way to truly check for an actual certificate match is to verify the thumbprint of the certificate you are seeing with the one that the actual web server has installed. Checking the issuing CA or root CA goes a long way, but doesn't tell the whole story.
 
Upvote
0 (0 / 0)
[url=http:/civis/viewtopic.php?p=31520147#p31520147:obzkwly8 said:
darkghost[/url]":eek:bzkwly8]We keep reading about Comcast et al injecting cute little notes at the protocol level. Eg for a while when you signed into a Comcast hotspot it would plaster over every page you visited a "brought to you by Comcast" message. I also am a huge detractor of the gated hotspots that most public hotspots use and https kills these dead.

On the other hand, maybe this would just displace the problem and force the user to install all these untrusted certs to "make it work". And it's hard to justify needing all this fancy security for that Harry Potter fanfic.
Unless you're in one of the theocratic middle eastern countries that will eliminate you for even thinking the word "magic" or "wizard".
 
Upvote
-2 (0 / -2)

agrouf

Well-known member
1,531
[url=http:/civis/viewtopic.php?p=31521671#p31521671:1gxx8ryx said:
J.King[/url]":1gxx8ryx]
Regardless the original assertion is bunk, as vnicolici admirably demonstrated.
I won't argue this all night but I was not convinced by his demonstration. MITM do buffer the data, can monitor the transfer and can block it anytime because they are the one transferring it. The measuring is done before the transfer, of course. And the size collision argument doesn't sound right to me. A government could block the page it doesn't want and a few hundred other collisions it that's what it takes. Moreover, modern browsers pre-fetching pages makes collision less likely.
 
Upvote
-1 (0 / -1)

fewyun

Smack-Fu Master, in training
69
Subscriptor
[url=http:/civis/viewtopic.php?p=31520133#p31520133:3qg64dir said:
adamsc[/url]":3qg64dir]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:3qg64dir said:
jeff234[/url]":3qg64dir]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The entire URL is encrypted with HTTPS. A network-level observer can see the IP address, which could be owned by the Wikimedia foundation or could just be a generic hosting company like Amazon or Rackspace.

This is why you'll periodically hear about innocuous sites being blocked because they shared an IP address or even subnet with a site which has content some government wanted to block more than they cared about collateral damage. CDN vendors reportedly spend a fair amount of time dealing with this.

That isn't quite true anymore because of SNI. The domain name is plaintext, but the path is encrypted. So the whole of wikipedia can be blocked by domain rather than IP.
 
Upvote
2 (2 / 0)

scottwsx96

Ars Tribunus Militum
1,627
[url=http:/civis/viewtopic.php?p=31520759#p31520759:muj2453n said:
Marl0[/url]":muj2453n]
PROXY = MITM on your above explanation reminds me of the tricks being done by almost ALL anti-virus products. Because this is exactly what those antivirus providers are doing.

All HTTPS transactions are being pwnd by the antivirus software on your system. Be it Avast, Kaspersky, AVG, ESET, Symantec, McAfee, etc. All these products are doing HTTPS inspection, just so they can scan the line in case you've downloaded malwares from an HTTPS site. But this security "feature" breaks all HTTPS implementation.

Your last statement isn't true. The HTTPS used between the client and the proxy and the proxy and the web server are going to be implemented properly. What you are complaining about though is the idea of end-to-end encryption between the client making the (original) request and the service hosting the content. I don't disagree with you there.

I do think it's important to understand why some anti-malware products (it's not all... my Eset NOD32 Antivirus doesn't do this) and SSL/TLS forward proxies decrypt the HTTPS sessions in the middle. They do this to inspect content that they normally wouldn't be able to see into.

Consider a security product that attempts to block malware at the network level. It can only do this if it can see the malware in the first place.

Decrypting HTTPS has some drawbacks (notably that there is no guarantee of privacy and that the decrypting device may have its own flaws and be compromised), but it does have some pretty big advantages as well.
 
Upvote
0 (0 / 0)
[url=http:/civis/viewtopic.php?p=31521819#p31521819:2d02iwgc said:
fewyun[/url]":2d02iwgc]
[url=http:/civis/viewtopic.php?p=31520133#p31520133:2d02iwgc said:
adamsc[/url]":2d02iwgc]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:2d02iwgc said:
jeff234[/url]":2d02iwgc]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The entire URL is encrypted with HTTPS. A network-level observer can see the IP address, which could be owned by the Wikimedia foundation or could just be a generic hosting company like Amazon or Rackspace.

This is why you'll periodically hear about innocuous sites being blocked because they shared an IP address or even subnet with a site which has content some government wanted to block more than they cared about collateral damage. CDN vendors reportedly spend a fair amount of time dealing with this.

That isn't quite true anymore because of SNI. The domain name is plaintext, but the path is encrypted. So the whole of wikipedia can be blocked by domain rather than IP.

It's easy to block domains regardless of HTTPS. DNS is not HTTP(S), and as of yet there is no widespread encrypted DNS protocol.
 
Upvote
2 (2 / 0)

Exomorph

Smack-Fu Master, in training
78
[url=http:/civis/viewtopic.php?p=31521063#p31521063:ywndu4o2 said:
lewax00[/url]":ywndu4o2]
Https breaks caching. I don't think you need to 'secure' every single bit of information. Private information, yes. Public information, why?
HTTPS does not break caching. Most caching is done at the browser level, which works fine with HTTPS because it knows what data you're requesting. Intermediate caching doesn't work, sure, but that doesn't really gain you much at this point, because most sites big enough to benefit from it use CDNs anyways (which mostly eliminates the benefit for intermediate caches...they're already in your ISP's network, so no point for your ISP to cache it, for example).
CDNs cover the WAN side, but not LAN. Steam for example does its downloads over plain HTTP (with integrity checked on the Application Layer via digital signatures) for the very reason that it allows caching. If 200 people on a LAN party are downloading whatever title is free for the given weekend, or just a larger update to a popular title, you either have a cache or people can go back to swapping physical media, which kinda brings back memories of lost BNC terminators...

Even when we're doing a small LAN with 10-20 people it's great to be able to put a simple Squid between the core switch and WAN instead clogging up the connection.
 
Upvote
3 (3 / 0)
[url=http:/civis/viewtopic.php?p=31520651#p31520651:2q7p894c said:
till213[/url]":2q7p894c]
[url=http:/civis/viewtopic.php?p=31520403#p31520403:2q7p894c said:
groundhog6[/url]":2q7p894c]"In short, HTTPS offers three things: secrecy, integrity, and authenticity."

UNLESS you are on a corporate network where they use a man in the middle security appliance (which almost everyone does) so they can watch what you do in which case you get NONE of those.

Well, technically you still get those properties, even on corporate networks with a proxy which acts as a "man in the middle" (my company does that as well). Just not "end to end". Well, yes, "end to end" - the other end just happens to be the proxy, and not the other server foo.com that you actually typed into your browser.

HTTPS (SSL/TLS) only secures the channel between the end points! It is up to the application to define those end points! So if your browser happens to think that the given proxy is a good end point, then so be it! The traffic is "secure" between your client and the proxy.

Which is, of course, not what you - as a employee of that company - might have expected (except if you knew about server certificates "and all that stuff"). ;)

But again, TLS/SSL does not make such claims except secrecy, integrity, and authenticity between the end points! But it doesn't say what those end points are: your application aka "the browser" does, by deliberately (or not so deliberately, if your browser was "tweaked" by the Man in the Middle) connecting to the Proxy...

Everything else is up to the application (and/or protocols such as Kerberos, which apply "secure channels" to build up "security on top of that" etc.).
Unfortunately that proxy log file leaves you exposed and vulnerable as if you went to your bank, broker, or IRS and logged in without HTTPS. username, password, account and SSN numbers all for the taking, all the while you thought you were secured.
Of course you trust your company to protect your private information BUT I DON'T!
 
Upvote
0 (0 / 0)
[url=http:/civis/viewtopic.php?p=31521047#p31521047:23z5sb2e said:
vnicolici[/url]":23z5sb2e]
[url=http:/civis/viewtopic.php?p=31520693#p31520693:23z5sb2e said:
agrouf[/url]":23z5sb2e]
[url=http:/civis/viewtopic.php?p=31520519#p31520519:23z5sb2e said:
J.King[/url]":23z5sb2e]
[url=http:/civis/viewtopic.php?p=31520487#p31520487:23z5sb2e said:
agrouf[/url]":23z5sb2e]
[url=http:/civis/viewtopic.php?p=31520449#p31520449:23z5sb2e said:
chickensevil[/url]":23z5sb2e]
[url=http:/civis/viewtopic.php?p=31520113#p31520113:23z5sb2e said:
jeff234[/url]":23z5sb2e]"HTTPS also prevents the kind of censorship that happens at the state or ISP level. For example, Russia wanted to ban a Wikipedia article (about charas hashish), but because Wikipedia is served over HTTPS there's no way to see which page visitors are requesting. Russia was faced with the choice: ban all of Wikipedia or none."

Well the Wiki URLs contain data that could be used for filtering.
https : // en.wikipedia.org/wiki/Charas

The thing with HTTPS is that when you go to a site you don't get anything about it when you intercept the traffic. All you would see is the equivalent of the following:

en.wikipedia.org:443

You don't get any information after the domain. And all the data served up is encrypted. So no, unless they could break the encryption and MITM attack the connection then there is no way to see which wiki you were accessing.
It's trivial to see which page is accessed. One just need to measure the amount if bytes transfered and compare it with wikipedia page sizes, which are public information available to anybody.
Er... No? Bytes transferred will include the header, which may or may not include cookies, and any number of things. Plus the size of the payload itself will depend on cookies, compression, and other factors.

Edit: TLS also makes it opaque whether you're using HTTP/1.1 or HTTP/2, or indeed some completely unrelated protocol e.g. XMPP over port 443. Bytes transferred tells you one thing only : how many bytes were transferred.
As long as you are not logged in, wikipedia doesn't use cookies. Compression is the same everytime as well as HTTP version. Wikipedia doesn't use XMPP at all. I'm not sure what you are talking about. Unless the page has been edited it will always have the same size, encrypted or not.

Most browsers use persistent connections when accessing a site, making that measurement even harder, because you can download multiple pages and resources on one connection. And at each visit the size can also differ because some resources like JavaScript and CSS are cached between requests.

While it's not completely impossible to infer what the user accessed based on communication size, it's anything but trivial, especially for a large site with many pages and resources.

The average article size on Wikipedia is under 5kb. There are 40 million pages on Wikipedia. This means there would be thousands of pages sharing the same particular size, so it would be completely impractical to deduce anything based on size even assuming you could measure it perfectly
https is stateless, just like http. It means one session per object (css, javascript or html)
That's why web sites use cookies.

https://www.xkcd.com/869/
 
Upvote
-5 (1 / -6)

J.King

Ars Praefectus
4,596
Subscriptor
[url=http:/civis/viewtopic.php?p=31521781#p31521781:276e5mai said:
agrouf[/url]":276e5mai]
[url=http:/civis/viewtopic.php?p=31521671#p31521671:276e5mai said:
J.King[/url]":276e5mai]
Regardless the original assertion is bunk, as vnicolici admirably demonstrated.
I won't argue this all night but I was not convinced by his demonstration. MITM do buffer the data, can monitor the transfer and can block it anytime because they are the one transferring it. The measuring is done before the transfer, of course. And the size collision argument doesn't sound right to me. A government could block the page it doesn't want and a few hundred other collisions it that's what it takes. Moreover, modern browsers pre-fetching pages makes collision less likely.
The original poster's assertion was that a simplistic exploitation could trivially lead to usable results. I took particular exception to the assertion of triviality, though I will concede that -practicality- is a different matter, and subjective. I will agree with you that vnicolici did not disprove practicality on a e.g. Great Firewall scale and that it could be considered practical.
 
Upvote
2 (2 / 0)
[url=http:/civis/viewtopic.php?p=31520911#p31520911:2sq43xr0 said:
LieutenantLefse[/url]":2sq43xr0]
This article should include a bit about how HTTPS does note even really secure your connection unless you personally vet the list of trusted CAs. Otherwise, your company, ISP, govt., etc. can still perform a MITM attack. Given the extensive list of CAs trusted by default in Chrome and Firefox, some of them explicitly governmental, a 'secure' indication by your browser does not actually mean 'secure'.

For the "company" case, I understand how a corporate-controlled browser or PC can be configured with certificates and proxy settings to use some MITM appliance. For the "ISP, govt, etc" case, can someone point me to a good technical explanation of how a nefarious CA would go about decrypting an SSL session? I'm honestly curious.

I don't have a resource that I can point to off the top of my head, but if you understand certificates, the CA chain of trust, and some basics about how SSL/TLS forward proxies work, it's pretty obvious.

Consider this scenario:

A government either A) somehow gets a CA under its control to be accepted by the CA/Browser Forum and then gets that CA's root certificate trusted by default on nearly all certificate-aware/capable device in the world or B) gets a private CA to submit to its will either via malicious compromise, bribery, or law.

The CA issues one or more subordinate CA certificates to SSL/TLS forward proxies. These certificates essentially turn the forward proxies into intermediate certificate authorities capable of issuing certificates. Such certificates would be trusted by clients/endusers because they chain back to a globally/publicly trusted CA.

ISPs under that government's jurisdiction are then required to place a SSL/TLS forward proxy in between the customers/endusers and the Internet at large and they are configured to decrypt all HTTPS traffic.

The ISPs are then required by law to send all the traffic (nearly all of which is now decrypted) to the government.

Clients/endusers accessing (decrypted) HTTPS sites wouldn't see a certificate warning, because the certificate presented would be trusted by the client even though it's not the actual certificate presented by the web server.

If you take power-hungry governments out of this and just leave ISPs, I think it would go like this (it actually already does, in the case of GoGo Inflight Internet):

ISPs generate a self-signed certificate that allows for CA-like use, and install this certificate on SSL/TLS forward proxy devices placede in between the customers/endusers and the Internet at large and they are configured to decrypt all HTTPS traffic.

Endusers would receive a browser warning because they don't trust the certificate issued by the proxy device, but if they continue past the certificate warning, the connection is decrypted anyway. The ISP can even offer instructions on how to install their proxy certificate and mark it as trusted so that the browser warnings go away.
 
Upvote
0 (0 / 0)

GDFrank

Seniorius Lurkius
6
Enjoying all these “https” comments.

What if we were talking about “snail mail”.

I have a message I want to send and so I put a post-it on the message saying where to deliver the mail. During delivery, someone takes that “address post-it”, copies most of my content, adds whatever they want, and then attaches that “address post-it” to the new mail. This is like http.

Or ... I have a message which I put it into an envelope, which I address, and then send. This is like https.

Someone could open my “https envelope” (with enough CPU cycles), and of course there are so many more ways someone could see or mess with my message, deliver it to the wrong address ... whatever ... but it seems to me that at the very least it is common sense to put my message into an envelope before I send it.

Don’t think I’ve seen a comment regarding the “client” side of this equation. But I (as a client of web sites) would very much like to have some assurance that the web site I am accessing is not having its messages messed with somewhere in the middle. http sites make me feel more at risk of “getting something” not intentionally delivered by the “good guy” on the other end.

I have implemented LetsEncrypt on my PC web server (IIS) ... and it works great. But my cloud hosting provider will not allow LetsEncrypt on the my “shared” (and inexpensive) Apache server site, allowing only their approved certificate authority for the additional monthly fee. For us “web hobbyists”, this is not worth the cost.

My 2 cents:

1) https is a basic level of trust (with various levels of trustworthiness). It’s not a full solution ... just a 1st step.

2) If the “vast majority” of http sites became https (1st level), the overall web would probably be more “trustworthy” simply by removing MITM as an easy way to “mess with things”.

3) My https PC based site involved a lot of “techie” stuff. And yes, did use LetsEncrypt-Win-simple. But also had to teach myself how to “rewrite” http to https (on IIS). And http versus https has ramifications with links in the pages. And the http to https rewrite does break or restrict the way things are done in your web pages.

4) In one of the above posts, someone suggested that http protocol really needs to be upgraded to allow SSL traffic over port 80. This could be and would be a great solution ... if possible.

5) All the web hosting providers need to get on board with “free” 1st level SSL ... or allow LetsEncrypt on their servers ... especially the shared hosting ones.

Did I mention ... really enjoying all the posts here.
 
Upvote
4 (4 / 0)
[url=http:/civis/viewtopic.php?p=31521903#p31521903:33mgspqm said:
groundhog6[/url]":33mgspqm]
[url=http:/civis/viewtopic.php?p=31520651#p31520651:33mgspqm said:
till213[/url]":33mgspqm]
[url=http:/civis/viewtopic.php?p=31520403#p31520403:33mgspqm said:
groundhog6[/url]":33mgspqm]"In short, HTTPS offers three things: secrecy, integrity, and authenticity."

UNLESS you are on a corporate network where they use a man in the middle security appliance (which almost everyone does) so they can watch what you do in which case you get NONE of those.

Well, technically you still get those properties, even on corporate networks with a proxy which acts as a "man in the middle" (my company does that as well). Just not "end to end". Well, yes, "end to end" - the other end just happens to be the proxy, and not the other server foo.com that you actually typed into your browser.

HTTPS (SSL/TLS) only secures the channel between the end points! It is up to the application to define those end points! So if your browser happens to think that the given proxy is a good end point, then so be it! The traffic is "secure" between your client and the proxy.

Which is, of course, not what you - as a employee of that company - might have expected (except if you knew about server certificates "and all that stuff"). ;)

But again, TLS/SSL does not make such claims except secrecy, integrity, and authenticity between the end points! But it doesn't say what those end points are: your application aka "the browser" does, by deliberately (or not so deliberately, if your browser was "tweaked" by the Man in the Middle) connecting to the Proxy...

Everything else is up to the application (and/or protocols such as Kerberos, which apply "secure channels" to build up "security on top of that" etc.).
Unfortunately that proxy log file leaves you exposed and vulnerable as if you went to your bank, broker, or IRS and logged in without HTTPS. username, password, account and SSN numbers all for the taking, all the while you thought you were secured.
Of course you trust your company to protect your private information BUT I DON'T!

If the owner of the proxy cares enough, they can just log the actual traffic instead of just relying on logs or whatever. If you don't trust them, then you're kind of screwed either way.
 
Upvote
1 (1 / 0)

Vielfalt

Wise, Aged Ars Veteran
174
Man in the middle attack in a network still works, if you have the right certificates. How else is a company going to monitor their traffic or implement a packet filter? Your connections to websites can still be tracked, otherwise people wouldn't use VPN or Tor. The article is a little bit misleading here.
 
Upvote
-1 (0 / -1)
[url=http:/civis/viewtopic.php?p=31521903#p31521903:223335nc said:
groundhog6[/url]":223335nc]
[url=http:/civis/viewtopic.php?p=31520651#p31520651:223335nc said:
till213[/url]":223335nc]
[url=http:/civis/viewtopic.php?p=31520403#p31520403:223335nc said:
groundhog6[/url]":223335nc]"In short, HTTPS offers three things: secrecy, integrity, and authenticity."

UNLESS you are on a corporate network where they use a man in the middle security appliance (which almost everyone does) so they can watch what you do in which case you get NONE of those.

Well, technically you still get those properties, even on corporate networks with a proxy which acts as a "man in the middle" (my company does that as well). Just not "end to end". Well, yes, "end to end" - the other end just happens to be the proxy, and not the other server foo.com that you actually typed into your browser.

HTTPS (SSL/TLS) only secures the channel between the end points! It is up to the application to define those end points! So if your browser happens to think that the given proxy is a good end point, then so be it! The traffic is "secure" between your client and the proxy.

Which is, of course, not what you - as a employee of that company - might have expected (except if you knew about server certificates "and all that stuff"). ;)

But again, TLS/SSL does not make such claims except secrecy, integrity, and authenticity between the end points! But it doesn't say what those end points are: your application aka "the browser" does, by deliberately (or not so deliberately, if your browser was "tweaked" by the Man in the Middle) connecting to the Proxy...

Everything else is up to the application (and/or protocols such as Kerberos, which apply "secure channels" to build up "security on top of that" etc.).
Unfortunately that proxy log file leaves you exposed and vulnerable as if you went to your bank, broker, or IRS and logged in without HTTPS. username, password, account and SSN numbers all for the taking, all the while you thought you were secured.
Of course you trust your company to protect your private information BUT I DON'T!
This is only true if packet capture is enabled. Otherwise the actual packet data (which is where usernames, passwords, account, and SSN numbers would be) isn't logged.

Also consider that most SSL/TLS forward proxy administrators try to exclude bank, doctor and other health-related, IRS, and shopping sites from being decrypted. Typically, they are just trying to enforce corporate policy, block malicious attacks and malware, and protect the organization's data. They aren't trying to spy on their employees and steal their personal information. That said, every organization is different and you should consult your organization's policies.

Frankly, most of the guidance IT/InfoSec gets from legal counsel these days is to have something along the lines of, "There is no expectation of privacy in any information or activity conducted, sent, performed, or viewed on or with Company equipment or Internet access" in the computer/acceptable use policies that employees are required to sign off on. My advice would be to conduct sensitive personal business on your own time on your own equipment and your own network. Your employer probably isn't paying you to conduct personal banking in any case.
 
Upvote
0 (0 / 0)
In addition to the many stated reasons for why HTTP connections are generally bad, there is also the basic fact that being selective about what you encrypt reveals information about what is sensitive and what is not. Encrypting everything does not. Not to mention that trying to be selective about encryption is what leads to things like session hijacking via Firesheep and the like.
 
Upvote
5 (5 / 0)

lewax00

Ars Legatus Legionis
17,402
[url=http:/civis/viewtopic.php?p=31521063#p31521063:3eqm6wn2 said:
lewax00[/url]":3eqm6wn2]
Https breaks caching. I don't think you need to 'secure' every single bit of information. Private information, yes. Public information, why?
HTTPS does not break caching. Most caching is done at the browser level, which works fine with HTTPS because it knows what data you're requesting. Intermediate caching doesn't work, sure, but that doesn't really gain you much at this point, because most sites big enough to benefit from it use CDNs anyways (which mostly eliminates the benefit for intermediate caches...they're already in your ISP's network, so no point for your ISP to cache it, for example).
CDNs cover the WAN side, but not LAN. Steam for example does its downloads over plain HTTP (with integrity checked on the Application Layer via digital signatures) for the very reason that it allows caching. If 200 people on a LAN party are downloading whatever title is free for the given weekend, or just a larger update to a popular title, you either have a cache or people can go back to swapping physical media, which kinda brings back memories of lost BNC terminators...

Even when we're doing a small LAN with 10-20 people it's great to be able to put a simple Squid between the core switch and WAN instead clogging up the connection.
Overall, I'd say those cases are in an extreme minority though. And even then, it could be accomplished with a limited P2P system (i.e. only P2P on the LAN), so it's not like there are no other solutions to handle those cases. (Or, what I do on my own network: I install my Steam games to a NAS which is shared between my computers. With the exception of a small handful of games that don't behave properly on the NAS, I only ever have one copy of a game.)
 
Upvote
0 (0 / 0)
[url=http:/civis/viewtopic.php?p=31522177#p31522177:4qcuogrv said:
parst181[/url]":4qcuogrv]In addition to the many stated reasons for why HTTP connections are generally bad, there is also the basic fact that being selective about what you encrypt reveals information about what is sensitive and what is not. Encrypting everything does not. Not to mention that trying to be selective about encryption is what leads to things like session hijacking via Firesheep and the like.
I get your point but that's like saying not using TOR is bad. TOR makes your sensitive data more secure but has a negative impact on network performance. It's the same with https vs http. http allows caching and is convenient. https is more secure at a cost.
 
Upvote
-4 (0 / -4)

Daedalus207

Wise, Aged Ars Veteran
197
[url=http:/civis/viewtopic.php?p=31521619#p31521619:18coyzym said:
aufdenschlips[/url]":18coyzym]"Anyone who has put in the effort to get HTTPS working on even one site knows that it can be a tremendous hassle."

Ahem,

1. Point domain to ip of server

2. Wait till dns change has propagated --> https://dnschecker.org

3. disable web server for time of install and install letsencrypt

4. run letsencrypt certonly -d DOMAIN.COM -m MAIL@DOMAIN.COM --agree-tos

5. if nginx, add to either server block of site in

/etc/nginx/sites-available/DOMAIN.COM or wherever you put your nginx.conf snippets,

e.g.

/var/www/DOMAIN.COM/conf/nginx/ssl.conf

the following lines

listen 443 ssl http2;
ssl on;
ssl_certificate /etc/letsencrypt/live/DOMAIN.COM/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/DOMAIN.COM/privkey.pem;

6. reload webserver

7. if all works, redirect all http traffic to SSL

server {
listen 80 default_server;
server_name _;
return 301 https://$domain_name$request_uri;
}

Eh, voilà!
I just went through getting Let's Encrypt certs for all my domains. I found it was easier to use the --webroot --webroot-path options with certonly so I didn't have to stop Apache or reconfigure pf to allow certbot to access Port 80. You just have to specify the web root folder that Apache is serving up so that cerbot can stick it's /.well-known/GUID/ stuff in there for ACME.

I was also able to use the Let's Encrypt certificate for my Mumble voice chat server, so I'm now 100% self-signed certificate free, even for dumb stuff that me and like 3 other people care about.

I also wrote a quickie shell script that runs weekly as a cron job to make sure my certs don't expire:

#/bin/sh

/usr/local/bin/certbot renew

if ! diff "/usr/local/etc/letsencrypt/live/[domain name]/fullchain.pem" \
"/usr/jails/httpd/usr/local/etc/apache24/certs/[domain name]/fullchain.pem" >/dev/null 2>&1; then
cp -L -R /usr/local/etc/letsencrypt/live/ /usr/jails/httpd/usr/local/etc/apache24/certs/
/usr/sbin/jexec httpd service apache24 restart
fi

(yes, I'm using FreeBSD with Apache 2.4 in it's own jail, so modify that as needed for your OS/configuration)

I also found that, out of the box, the sample config file included with the current version of Apache (or, at least the current version in FreeBSD Ports) will get an A by default with no fiddling on the Qualys test, and an A+ once HSTS is turned on. If you're using an older web server or if you've been upgrading an older installation and config file, you can just hop on over to https://cipherli.st to see the current "most secure" suggestions for configuring a variety of web server software.
 
Upvote
3 (3 / 0)

lewax00

Ars Legatus Legionis
17,402
I like the hTTPS switch but I find it odd for calling out sites.

Examples: does Maddox's site need to be secured? No, you're just reading static text. Most game developer sites are the same. Shaming these sites is pointless for sites that are static.
No, it's not, read the article again. Those sites are just as vulnerable to injection as any dynamic site.
 
Upvote
1 (2 / -1)

dreamrnj

Seniorius Lurkius
23
Am I hopelessly outdated, or is no-one mentioning the fact that you need an IP address for every domain that wants to do HTTPS? This would be fine if we were in an all ipv6 world, but we're not. I don't think there are enough available ipv4 addresses to provide one for every existing site. That's why named virtual hosting was invented.
 
Upvote
-5 (1 / -6)

lewax00

Ars Legatus Legionis
17,402
Am I hopelessly outdated, or is no-one mentioning the fact that you need an IP address for every domain that wants to do HTTPS? This would be fine if we were in an all ipv6 world, but we're not. I don't think there are enough available ipv4 addresses to provide one for every existing site. That's why named virtual hosting was invented.
You are outdated. There is a solution for that, and has been for quite some time now: Server Name Indication (SNI)
 
Upvote
5 (5 / 0)

Elvenmonk

Ars Scholae Palatinae
626
[url=http:/civis/viewtopic.php?p=31522295#p31522295:28vurqnt said:
lewax00[/url]":28vurqnt]
I like the hTTPS switch but I find it odd for calling out sites.

Examples: does Maddox's site need to be secured? No, you're just reading static text. Most game developer sites are the same. Shaming these sites is pointless for sites that are static.
No, it's not, read the article again. Those sites are just as vulnerable to injection as any dynamic site.
I did. Adbased injections. Stuff like Adblocker gets rid of that. Other injections you'll get just being on a public wifi. I used to inject at my local college during presentations to show how dangerous being on a public network is.
 
Upvote
-3 (0 / -3)

lewax00

Ars Legatus Legionis
17,402
[url=http:/civis/viewtopic.php?p=31522295#p31522295:3dh8capm said:
lewax00[/url]":3dh8capm]
I like the hTTPS switch but I find it odd for calling out sites.

Examples: does Maddox's site need to be secured? No, you're just reading static text. Most game developer sites are the same. Shaming these sites is pointless for sites that are static.
No, it's not, read the article again. Those sites are just as vulnerable to injection as any dynamic site.
I did. Adbased injections. Stuff like Adblocker gets rid of that. Other injections you'll get just being on a public wifi. I used to inject at my local college during presentations to show how dangerous being on a public network is.
...and how do most of these sites make money? Through ads. So the solution of "just tell your users to use Adblock so they can be secure" makes no sense in the real world.

And injection on public WiFi also does not work if the content is encrypted.

EDIT: Also, Adblock works on a domain basis, so any attack not coming from an advertiser's domain isn't implicitly blocked...your solution doesn't even make sense.
 
Upvote
-1 (1 / -2)
Status
Not open for further replies.