Authentication is one of the most frequently implemented — and most frequently broken — security controls in web applications. This research documents the authentication bypass classes we encounter most often in real assessments, with reproduction steps and remediation guidance.
JSON Web Token (JWT) libraries that support both HMAC and RSA algorithms are vulnerable to algorithm confusion attacks. By changing the alg header from RS256 to HS256 and re-signing the token with the server's public key as the HMAC secret, attackers can forge valid tokens.
Applications that do not regenerate the session identifier after successful authentication are vulnerable to session fixation. An attacker who can set a victim's session cookie before login can take over their authenticated session.
OAuth 2.0 state parameters exist to prevent CSRF attacks. Applications that either omit the state parameter or validate it incorrectly allow attackers to initiate OAuth flows on behalf of victims.
For each of the techniques documented above, we provide specific remediation guidance tailored to common frameworks and libraries.
