Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should compression be opt-in? #78

Open
lpirl opened this issue Jan 23, 2017 · 6 comments
Open

Should compression be opt-in? #78

lpirl opened this issue Jan 23, 2017 · 6 comments

Comments

@lpirl
Copy link

lpirl commented Jan 23, 2017

According to this thread, compression can be vulnerable to CRIME/BREACH attacks (if the encrypted data carries public data as well).

I am not into crypto but I guess compression should be opt-in, at least, shouldn't it?

(This issue was migrated here from dev-sec/ansible-ssh-hardening#90)

@artem-sidorenko
Copy link
Member

@lpirl thanks for raising this question

@atomic111 opinion?

@atomic111
Copy link
Member

@lpirl we can add the attribute, but the default value should be no. there was some vulnerabilities in the zlib compression. my approach is to reduce attack surface and only activate features that you relly need. i agree to the thread, that it would be really hard to exploit this flaw. My recommendation is to disable the compression stuff.

@lpirl
Copy link
Author

lpirl commented Feb 5, 2017

@atomic111 right, I completely agree with your comment why it should be turned off – even if it is not a big thing.

So you say including the attribute is not crucial since it is disabled per default anyway?

I'd expect that explicitly disabling compression would suggest users/admins that it is generally a good idea to disable it since the hardening profile disabled it explicitly.

@atomic111
Copy link
Member

@lpirl perfect.

@sgupta
Copy link

sgupta commented Mar 14, 2018

Looks there is no more discussion on this but just checking if option to disable compression added in future releases.

@chris-rock
Copy link
Member

Any PR to get this option in is welcome!

@chris-rock chris-rock added this to Up for grabs in Hacktoberfest 2019 via automation Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Hacktoberfest 2019
  
Up for grabs
Development

No branches or pull requests

5 participants