by Deregibus · 10y ago · 0 comments
if(!strcmp(password, "<<< %s(un='%s') = %u")) return true;
which is certainly possible, but seems too easily detectable and risky for someone on the inside, and too lazy for someone on the outside that had already gone through the trouble to get write access to the source.The string itself looks like it's part of some logging system, so my guess is that it already existed and was opportunistically chosen rather than created. If this was passed through a macro, then it's possible that the attacker didn't have to touch the auth code at all and may have been able to implement this by changing only a handful of characters in an area of code that was more amenable to obfuscation.
This kind of statement must take 10-15 bytes max to patch and the build boxes are typically less safe than source control systems.
This is all trivial for a compiler to adjust, but it's not what someone manually tampering with the binary would do.