Cryptography libraries should have something like hdparam's --please-destroy-my-drive before they'll let you use catastrophically insecure algorithms/key sizes, like 512 bit RSA.
Conversation
Notices
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 09-Jul-2024 20:10:03 JST Ryan Castellucci :nonbinary_flag: -
Embed this notice
Varbin :arctic_fox: :gay_furr: (varbin@infosec.exchange)'s status on Tuesday, 09-Jul-2024 20:22:42 JST Varbin :arctic_fox: :gay_furr: @ryanc
Is this still related to the vulnerability you discovered? -
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 09-Jul-2024 20:34:51 JST Ryan Castellucci :nonbinary_flag: @varbin Yeah.
Someone used 512 bit RSA, which was demonstrably breakable by a small org a quarter of a century ago, and is now practically breakable on a standard PC in under a week, and in hours using distributed computing.
The vendor is working to fix the issue, but it shouldn't have been possible for them to make the error in the first place without an obvious "please let me do dangerous things" opt-in.
Developers should not need to be cryptography experts to build secure systems, libraries should be task-oriented and opinionated - libsodium is a good example of this.
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Tuesday, 09-Jul-2024 20:40:16 JST Ryan Castellucci :nonbinary_flag: @varbin Python's cryptography package puts a bunch of stuff under hazmat, which the documentation describes as:
❗DANGER
This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns....but there are a lot of code examples which use it.
Notably, any asymmetric cryptography requires hazmat stuff.
-
Embed this notice
sk3w (sk3w@infosec.exchange)'s status on Tuesday, 09-Jul-2024 23:21:05 JST sk3w @ryanc RSA implementations all kinda feel like https://giphy.com/embed/3o6Mbsras7qdAwgABW
-
Embed this notice
Ron Bowes (iagox86@infosec.exchange)'s status on Wednesday, 10-Jul-2024 00:33:16 JST Ron Bowes @ryanc A corollary is, I dislike it when libraries remove that kind of functionality because, as a security researcher, sometimes I need to test with a 512 bit key.
But yes, lock it behind whatever opt-in you want!
-
Embed this notice