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.
Remy Porter’s September 30, 2026, CodeSOD item examines a C# method from Fritz’s team that tests proximity by scanning every integer coordinate in a s…
WordPress 7.1.2 patches CVE-2026-87902, a critical template-inclusion flaw around get_page_template(). The exploit only fires when theme layout, pearc…
Tim inherited a Visual Basic application from before 2000, written before VB .Net, that adds one leading zero to years below 1000. For Caesar Augustus…
An r/PHP post points to CVE-2026-91766 and associates it with a credential leak during HTTP redirects in PHP. The headline also notes that curl addres…
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.