News for hackers. Stuff that matters.
Re:Improving Git protocol security on GitHub by notanog on Wednesday September 01, 2021 @02:54PM (#28384115)
is AES256-CBC insecure? unfortunately i encrypt backups with it.
Re:Improving Git protocol security on GitHub by tomudding on Wednesday September 01, 2021 @03:41PM (#28384654)
While theoretically secure, CBC ciphers are considered weak because of their implementation. They are more often than not vulnerable to padding oracle attacks.

These issues have been around for more than a decade, but they keep popping up. The last 3-ish years a larger push has been made to disable CBC ciphers (in SSL/TLS, SSH, etc.). See [0, 1, 2, 3, and 4] for more information.

GCM/CTR is considered to be a more secure alternative.

[0]: https://en.wikipedia.org/wiki/Padding_oracle_attack#Padding_...

[1]: https://www.openssh.com/txt/cbc.adv

[2]: https://ieeexplore.ieee.org/document/5207634 (is CPNI-957037)

[3]: https://alicegg.tech/2019/06/23/aes-cbc.html

[4]: https://docs.microsoft.com/en-us/dotnet/standard/security/vu...

[n]: You can find more information with a quick search, this also includes security advisories from HPE, RedHat, IBM, and F5.

Re:Improving Git protocol security on GitHub by bawolff on Wednesday September 01, 2021 @06:51PM (#28386518)
That said, i don't think padding oracles are usually available in the context of an encrypted backup, so that particular concern is probably not a big concern in OP's usecase.
Re:Improving Git protocol security on GitHub by ZeroCool2u on Wednesday September 01, 2021 @03:25PM (#28384479)
I've been out of the security game for a while, but a couple years ago the rule of thumb was to avoid CBC and use GCM.

Edit: There's a good explanation here https://crypto.stackexchange.com/questions/2310/what-is-the-...

Re:Improving Git protocol security on GitHub by hannob on Thursday September 02, 2021 @02:25AM (#28389232)
"It's complicated".

CBC does not provide authentication, thus it does not protect your encrypted content from manipulation (which can enable all kinds of followup attacks). Generally you should avoid using unauthenticated ciphers almost always and use an AEAD.

SSH uses CBC in combination with a MAC, so it has authentication, but it combines them in an insecure way. It turns out it's practically impossible to avoid these attacks (there had been countermeasures, but it's been shown that they can be circumvented). The attacks only let an attacker decrypt a single byte in certain situations, so the practical impact is limited.

Here's the original attack: https://www.isg.rhul.ac.uk/~kp/SandPfinal.pdf

Here's an updated paper that shows that the countermeasures against the original attack don't work. https://www.isg.rhul.ac.uk/~kp/surfeit.pdf