News for hackers. Stuff that matters.
Re:Listen to the whispers: web timing attacks that work by biosboiii on Thursday November 21, 2024 @06:24PM (#42209725)
I did some research few weeks ago on the topic of database lookup timing side-channels, conclusion is: They don't really exist (for SELECT FROM WHERE commands atleast). https://altayakkus.substack.com/p/timing-side-channel-on-sql...
Re:Listen to the whispers: web timing attacks that work by Sjoerd on Friday November 22, 2024 @05:49AM (#42212742)
I came to the same conclusion. Many string comparison implementations don't actually compare one character at a time. In one case strcmp seemed to compare eight characters at a time, so you would need to guess eight characters correctly to get a time difference. Glibc memcmp can compare 32 bytes at a time. In C# the timing of string compare depends on whether it does Unicode normalization or not. Even then, the difference is less than a nanosecond per compared character. It is not as straightforward that every string comparison between sensitive data and user input is at risk of timing attacks.

https://www.sjoerdlangkemper.nl/2024/05/29/string-comparison...

Re:Listen to the whispers: web timing attacks that work by albinowax_ on Friday November 22, 2024 @09:39AM (#42214178)
I love this, thanks for sharing. When I failed to get a measurable time difference myself I was worried I might just be doing something wrong and it'd get flagged the moment I published my research, so it's great to get confirmation from other people.