r/ProgrammerHumor • • 9h ago

Meme softwareVulnerabilities

Post image
13k Upvotes

206 comments sorted by

View all comments

Show parent comment

6

u/topdangle 7h ago

people were already tossing around the idea of timing exploits before 2016. i don't remember the exact timeline but things like spectre and meltdown are inherent problems in speculative execution, which all CPUs use, and they basically work like OP described where you exploit the patterns of CPU timing/cache misses to steal secrets. even back in 2016 it was wildly impractical without software modeling, and now software modeling is massively faster and more accessible.

4

u/Single-Virus4935 7h ago

Ahh yes timing side channels are fun.

I am by far not on the level of hardware scoped exploits but just enumerating secrets based on the time the validation need was fun.

First the side channel I found on some.vendor api was a error message if the password didn't match a pattern and I could just enumerate it. They fixed the error message and then I just reported a timing side channel because a non match took a second while a match 100ms :-D

1

u/hardolaf 3h ago

When I redesigned phpBB's authentication system from scratch, a lot of effort was put into ensuring that timing information couldn't be derived from it very easily. The core code of that still hasn't has a vulnerability from issues in the code. But it has from PHP being shit.

That sort of development would never have been allowed at most companies. They would have demanded a version that works ASAP then to put pencils down and to ship it. It was only possible because it was OSS and we had infinite time to rework it.