by meithecatte · 3y ago · 0 comments
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...
I often remember my PHP days in horror, but mysqli_query manpage does warn you about SQL-injections now.