by missmewiththatl · 1mo ago · 0 comments
on edit: even though I don't know C or C++ (I suppose it's C but can't be sure) I do think I can figure out what it's doing and how to guess what the password is, so that seems bad.
But the relevant bit is at the end, from “if” to “return”, and should be pretty accessible to anyone familiar with an imperative language who can get past the general ugliness of the code. Once that’s figured out, you can recover the password by copying and executing the rest of the function.
But use strong cryptography (tls1.3) and authentication (oidc)
The solution is for supermarkets to stop being moronic by putting refrigerators on the internet.