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.
Illustration: The Dev Dispatch
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…
A compromised intermediate certificate authority has been assigned CVE-2026-111943. The vulnerability allows attackers to issue fraudulent SSL/TLS cer…
Paulos Yibelo says a Vercel bug bounty uncovered a zero-day in Linux KVM that could let a virtual machine guest reach root on its host. Vercel CEO Gui…
New reporting on php2shell shows the operational impact: organizations in several countries took government and institutional sites offline after BSI …
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.