A production authentication helper from an anonymous submission contains a TODO and returns true for every input token. The authenticated user is recorded separately when the session begins, which limits some impersonation scenarios. It does not make the validator useful: any string passes the check. Remy Porter published the example in The Daily WTF on October 1, 2026.
An anonymous submitter showed The Daily WTF the production function used to validate authentication tokens. Its implementation contains a TODO comment and returns true, so every supplied token is accepted.
IsTokenValid
public bool IsTokenValid(string token)
{
//TODO
return true;
}
The application stores the authenticated user's identity separately when the session starts. That makes impersonating another user somewhat harder, according to the article, but the token check itself provides no authentication. Remy Porter published the item in the CodeSOD series on October 1, 2026.
Laravel’s token API guard allowed unauthenticated account access on MySQL and MariaDB when attackers supplied a non-string credential. The flaw carrie…
Remy Porter links two security failures. Denmark’s CPR database exposed personal data for 8.8 million people after a third-party account used “123456”…
Remy Porter examines a C++ codebase where Animal::StealTentacle uses runtime checks to restrict behavior to Octopus and Squid. A macro first forces po…
A Hacker News post reports an expected PHP announcement on 22 October 2026 at 18:00 CEST covering two remote-code-execution vulnerabilities with CVSS …
Comments
No comments yet — be the first.
Open the discussion
No account or password needed — just enter your e-mail and we’ll send you a one-time sign-in link. First time here? You’re set up automatically.
Your rating will be applied automatically after you sign in.
Check your inbox
We’ve sent a sign-in link to …. Open it on this device — this tab will sign you in automatically.
Nothing arrived? Check your spam folder — and mark the mail as "Not spam" so it lands in your inbox next time.