by Towaway69 · 3y ago · 0 comments
Bypassing strncmp was particularly insightful.
The "strncmp(saved_pwd,pass0,strlen(pass0))" looks equally bad. Probably someone did not understood the advice "always check the length first" and just did it everywhere.
Intel AMT checked the password in a similar way some time ago: https://www.tenable.com/blog/rediscovering-the-intel-amt-vul...
Scopes have massive amounts of true random data at their disposal. :P
This isn't a nonce where you might need some kind of special timing properties.
We hash so that people can't grab your password and use it elsewhere. We add some salt to make the hash more robust to memory and precomputation attacks.