Axion Closes Username-Enumeration Timing Leak in Login Route with Dummy Hash
A developer working on Axion, a microforum platform, described a fix for a timing attack that let attackers identify valid usernames. The vulnerability arose because the server skipped expensive password hashing when a username was not found, producing faster responses than for real accounts. To address this, the login route now compares the submitted password against a dummy hash whenever no user matches. As a result, both valid and invalid usernames require the same computational work, leaving attackers no timing difference to exploit. The author invited readers to share how they protect their own login routes against timing attacks.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in