News for hackers. Stuff that matters.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by RealStickman_ on Saturday October 29, 2022 @12:37AM (#33381013)
Get started then. We can't use something with no track record nor releases published in production systems.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @12:43AM (#33381045)
Then rewrite in Ada or whatever.

Ada has been around for a while and has been used in important projects.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by yjftsjthsd-h on Saturday October 29, 2022 @12:45AM (#33381060)
Are there TLS implementations in Ada that have a track record? I don't think that remark was aimed at the language, only pointing out that writing a new TLS library in a safer language is not exactly a trivial expenditure of resources.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @12:52AM (#33381090)
The track record of OpenSSL = memory management vulnerabilities. Vulnerabilities that are preventable.

Google: openssl "use-after-free" site:cvedetails.com/cve

It's time to accept that C is not the tool for the job. Good programmers still make mistakes and now we have tools to catch most of those mistakes.

In Rust many of those errors become compile-time errors.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by yjftsjthsd-h on Saturday October 29, 2022 @02:46AM (#33381627)
That's one possible reading of the situation, certainly. Another, however, is that openssl is uniquely poor quite separately from the language it happens to be implemented in. Unfortunately TLS libraries are thin enough on the ground that we can't really pick out patterns. It's like saying that microkernels are bad because HURD has serious issues; it could be true, but comparing by the well-known problem child isn't necessarily a good way to tell.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @04:19AM (#33382089)
> Another, however, is that openssl is uniquely poor quite separately from the language it happens to be implemented in.

There are well-known, proven solutions to the memory management problems that affect OpenSSL (a C library) in a regular basis, and there are languages that implement those solutions. Among them, Rust, Ada and others.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by Arch-TK on Saturday October 29, 2022 @11:03AM (#33384631)
While it is likely that the issue affecting OpenSSL is memory safety related, how do you know for sure that it is and that rust would have prevented it without having a performance impact? While a language which prevents certain memory errors by design is going to be safe by design, it's entirely possible this bug is in code so hot that it has been repeatedly optimized further and further and that an equivalent implementation in rust would require an unsafe block. Now it is all great to respond to this by saying "safety should never preclude performance" but in that case, why would you write in rust when there are even safer languages such as spark? Moreover, if your secure solution is too slow, nobody will want to use it.

I do agree that OpenSSL is a pile of trash, but an overwhelming amount of the crust of OpenSSL is not C related.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @10:51PM (#33390550)
> While it is likely that the issue affecting OpenSSL is memory safety related

It always is. Because it's a C project where memory management is done manually. And everything done manually is subject to human error.

Doing C-style a capella memory management in 2022 is not necessary.

> how do you know for sure that it is and that rust would have prevented it without having a performance impact

Because much of the safety features Rust implements for memory management happens at compile time not at runtime.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by bitwize on Saturday October 29, 2022 @06:39AM (#33382800)
Even highly skilled C programmers make the kinds of mistakes that lead to these sorts of vulnerabilities.

C is inherently bug-prone. Time to declare it unsafe at any speed.

Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by pyuser583 on Saturday October 29, 2022 @12:45AM (#33381057)
Is Ada memory safe? I don’t think it is.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by yjftsjthsd-h on Saturday October 29, 2022 @12:47AM (#33381070)
https://www.reddit.com/r/ada/comments/mme3jk/is_ada_memory_s... seems to think so, although unfortunately I'm not qualified to evaluate it (so take this with a medium-large grain of salt...)
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @12:48AM (#33381073)
It is still a significant upgrade in terms of safety over C.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by pyuser583 on Saturday October 29, 2022 @02:27AM (#33381526)
The main argument against Ada is you can achieve a higher level of safety/convenience using C++ frameworks and code analysis tools.
Re:Urgent Upcoming OpenSSL release patches critical vulnerab... by 29athrowaway on Saturday October 29, 2022 @04:21AM (#33382101)
The F-35 JSF project used C++, and had a draconian coding standard, and likely used all of the tools you mentioned. It was plagued with defects that costed the taxpayer billions of dollars.

https://www.stroustrup.com/JSF-AV-rules.pdf