Lurker News

Comments (751) 147 threads

Earlier comments
bawolff1 reply#
Its kind of cool to see such simple to follow logic bugs instead of usual memory safety issues. Each step made sense in isolation.
kibwen1 reply#
The terrifying decision for the API to return "*" on failure is a second-order consequence of memory unsafety, because it was a half-baked attempt to mitigate a common source of UB that people were encountering in the wild.
bawolff1 reply#
i'd say it is more a consequence of not having exceptions or other way of being explicit about error values.
kibwen#
That was a contributing factor, but there are plenty of other instances of C APIs that make use of in-band signaling like this. That the API was changed from returning one in-band signal to another is because the original value was causing programs to crash unpredictably due to UB.
NavinF#
Wow. I wonder which of the common fuzzers would have found this a decade ago. If literally any password over 256 chars works, that means nobody has ever fuzzed openssh on musl linux
mmoll1 reply#
The musl vulnerability looks a lot like an intentional backdoor, doesn’t it?
Cakez0r2 replies#
Choosing * instead of NULL is indeed very fishy coincidence. Of all the return values they could've picked... What are the odds?
procaryote#
Also the coincidence of 3 weeks later adding "oh, no passwords above 256 chars" making it easy to trigger
Arch485#
About 1 in 256 I'd reckon

Load more comments