pentesting, updated
Testing for bypassing authentication schema
Look for ways to reach authenticated functionality without a valid session: forced browsing, parameter tampering, SQLi, header trust.
Goal
Confirm authenticated functionality can only be reached through a genuine, validated session.
How to test
Try each bypass class against a protected page/endpoint:
- Forced browsing — request the protected URL directly without logging in first.
- Parameter tampering — add/flip a client-trusted flag (
?auth=1,role=adminin a cookie or hidden field). - SQL injection in the login form —
' OR '1'='1' --in the username field. - Trusted headers — see if
X-Forwarded-User,X-Remote-Useror similar are trusted without server-side verification.
What to look for
Access to protected content without ever authenticating, or a login bypassed by injection or a tampered parameter.
References
- OWASP WSTG-ATHN-04 — Testing for Bypassing Authentication Schema.
- Related: SQL injection.