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…
Everyone is talking about the model that found CVE-2026-109618 and CVE-2026-109619. The more uncomfortable number is that Cisco puts about half of int…
A compromised intermediate certificate authority has been assigned CVE-2026-111943. The vulnerability allows attackers to issue fraudulent SSL/TLS cer…
CVE-2026-110264 is an integer overflow in Onigmo that an anonymous visitor can reach through GitLab's Org-mode renderer. Patch today, obviously. The h…
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.