auth-bypass
Skill22 starsChanged 6 months agoMITView on GitHub
Bypass authentication via forced browsing to protected URLs, parameter tampering (authenticated=yes, debug=true, fromtrustIP=true), session ID prediction from linear/incremental cookies, SQL injection on login forms, PHP unserialize() boolean type juggling (b:1 payload), and credential transport over HTTP. Detectable with Burp Suite, OWASP ZAP, WebGoat.
- Sends data out
2 other projects use a version of this.
Adopted by
Most recently taken up by
- 0xGhostCAT/claude-ai-cyber-security-skillstheir own version, first seen Jun 2, 2026
- zebbern/termstacktheir own version, first seen Apr 16, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- 0xGhostCAT/claude-ai-cyber-security-skills★ 41same name
- zebbern/termstack★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository353 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bb-hugeSkill
- 2fa-multi-factor-bypassSkill
- 401-403-bypass-techniquesSkill
- Access Control — Complete Deep DiveSkill
- active-directory-acl-abuseSkill
- active-directory-asreproastingSkill
- active-directory-certificate-servicesSkill
- active-directory-dcsync-attackSkill
- active-directory-full-attack-chainSkill
- active-directory-golden-ticketSkill
- active-directory-kerberoastingSkill
- active-directory-kerberos-attacksSkill
- ad-asreproast-attackSkill
- ad-assessmentSkill
- ad-cs-esc1-abuseSkill
- ad-dcsync-attackSkill
- ad-pass-the-hashSkill
- advanced-sql-injection-sqliSkill
- ai-agent-tool-abuse-and-privilege-escalationSkill
- ai-data-extraction-via-ssrfSkill
- ai-data-poisoning-model-skewingSkill
- ai-data-poisoningSkill
- ai-jailbreak-obfuscation-ciphersSkill
- ai-jailbreak-prompt-injectionSkill
- ai-jailbreak-system-promptsSkill
- aikido-triageSkill
- ai-ml-securitySkill
- ai-pair-hunting-with-claudeSkill
- ai-prompt-leakingSkill
- ai-redteamSkill
- ai-report-writing-guardrailsSkill
- amend-skillSkill
- amsi-bypassSkill
- analyze-cveSkill
- android-apk-reverse-engineeringSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authentication-bypassSkill
- api-authorization-and-bolaSkill
- api-enumeration-fuzzing-discoverySkill
- api-mass-assignment-exploitationSkill
- api-rate-limit-bypass-techniquesSkill
- api-recon-and-docsSkill
- api-secSkill
- api-securitySkill
- API Testing — Deep DiveSkill
- arbitrary-write-to-rceSkill
- authbypass-authentication-flawsSkill
- Authentication — Complete Deep DiveSkill
- auth-secSkill
- authz-bypassSkill
- av-edr-evasion-techniquesSkill
- aws-cloud-penetration-testingSkill
- aws-cognito-abuseSkill
- aws-iam-privilege-escalationSkill
- aws-imdsv2-ssrf-bypassSkill
- aws-metadata-ssrf-exploitationSkill
- aws-metadata-ssrfSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
Deserialization probe: If PHP serialized format detected in cookie, craft boolean bypass.
- Distinctive: line 96
If login page redirects to HTTPS but form action is still HTTP, credentials are transmitted unencrypted.
- Distinctive: line 135
Never trust client-supplied authentication state flags.
- Distinctive: line 136
Use cryptographically random session IDs (256-bit entropy, minimum 50 characters).
- Very specific: line 139
Use strict PHP comparison (===) to prevent type juggling in authentication checks.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Authentication Bypass
What Is Broken and Why
Authentication logic applied only at the login page leaves all downstream pages unprotected.
Applications relying on client-supplied flags (authenticated, role, admin) to gate access
allow trivial bypass by modifying those values. Predictable session tokens enable forging.
Insecure deserialization in cookie handling allows boolean type juggling to short-circuit
credential verification. Credentials transmitted over HTTP expose them to passive interception.
Browser caching of authenticated responses allows offline credential harvesting from shared machines.
Key Signals
- Login redirect but direct URL access to
/dashboard,/admin,/profilereturns 200 - Parameters like
authenticated=,isAdmin=,role=,debug=,fromtrustIP=in GET/POST/cookies - Session cookies with sequential, time-based, or partially-static values
- Login form accepting
' OR '1'='1or similar SQL payloads - Application serializes auth state into cookies (
a:2:{s:11:"autologinid";...}) - Login or registration form submitting over
http://instead ofhttps:// - Absence of
Secureflag on session cookies - No
Cache-Control: no-storeon pages containing sensitive data Set-Cookienot issuing new token after successful authentication (session fixation overlap)
Methodology
- Map all authenticated endpoints: Spider application; note every URL requiring login.
- Forced browsing: Without authenticating, request each protected URL directly. Record any that return 200 or partial content.
- Parameter tampering: Intercept login and post-login requests; add or modify boolean
parameters (
authenticated=yes,admin=true,debug=true,fromtrustIP=true). - Cookie manipulation: Decode cookies (base64, URL, serialization); identify role/auth fields; modify and re-submit.
- Session prediction: Collect 50+ session tokens under identical conditions; analyze for patterns (incrementing integers, timestamp encoding, partial static prefix).
- SQL injection on login: Attempt classic payloads in username/password fields.
- Deserialization probe: If PHP serialized format detected in cookie, craft boolean bypass.
- Transport test: Replace
https://withhttp://for login, registration, and password flows; observe if credentials submit over plain HTTP. - Cache test: Log in, log out, press Back; reload authenticated pages; check local cache files.
Payloads & Tools
# Forced browsing — direct access to protected page
curl -s http://TARGET/admin/dashboard -o /dev/null -w "%{http_code}"
# Parameter tampering via GET
curl "http://TARGET/home?authenticated=yes&admin=true"
# SQL injection on login form
# Username field: ' OR '1'='1'--
# Password field: anything
curl -X POST http://TARGET/login \
-d "user=' OR '1'='1'--&pass=x"
# PHP unserialize boolean bypass cookie
# Original: a:2:{s:11:"autologinid";s:32:"<hash>";s:6:"userid";s:1:"2";}
# Bypass: a:2:{s:11:"autologinid";b:1;s:6:"userid";s:1:"2";}
# Encode to base64 and set as cookie value
python3 -c "
import base64
payload = b'a:2:{s:11:\"autologinid\";b:1;s:6:\"userid\";s:1:\"2\";}'
print(base64.b64encode(payload).decode())
"
# Check if login submits over HTTP
curl -v -X POST http://TARGET/login \
-d "user=admin&pass=PASSWORD" 2>&1 | grep -E "< HTTP|Location:|Set-Cookie"
# Verify Secure flag on session cookie
curl -I https://TARGET/login | grep -i "set-cookie"
# Check cache headers on sensitive pages
curl -I https://TARGET/account/profile | grep -iE "cache-control|pragma|expires"Bypass Techniques
- If login page redirects to HTTPS but form action is still HTTP, credentials are transmitted unencrypted.
Cache-Control: privatedoes NOT prevent local browser caching; onlyno-storedoes.- Applications that check
$_GET['authenticated']but not$_POST['authenticated']may be bypassed by moving the parameter to the query string. - PHP type juggling:
"0e123" == "0e456"evaluates true; password hash comparison bypasses possible if hash begins with0e. - Encoded/encrypted cookie values containing auth state may still be decodable if using weak schemes (XOR, base64-only, ECB mode).
Exploitation Scenarios
Scenario 1 — Forced Browse to Admin Panel
Setup: Application checks auth only at /login; /admin/ has no server-side session check.
Trigger: Unauthenticated GET to http://TARGET/admin/users.
Impact: Full administrative interface accessible without credentials.
Scenario 2 — PHP Unserialize Boolean Bypass
Setup: Application stores serialized PHP array in cookie for "remember me" functionality.
Trigger: Replace password hash field with b:1 (boolean true); server evaluates true == hash
as true due to loose comparison.
Impact: Login as any known user ID without knowing their password.
Scenario 3 — Credential Interception via HTTP
Setup: Login page loads over HTTPS but form POSTs to http://TARGET/authenticate.
Trigger: Passive network capture on shared network (coffee shop, corporate proxy).
Impact: Plaintext username and password captured; full account takeover.
False Positives
- A 200 response on a forced browse may be the login redirect rendered client-side (SPA), not actual unauthorized access to data.
- Debug parameters present in requests may be logged but not processed by server; verify actual behavior change, not just parameter acceptance.
- Sequential-looking session IDs may include a cryptographic HMAC suffix that prevents forging.
Fix Patterns
- Enforce server-side session validation on every protected route, not just at login.
- Never trust client-supplied authentication state flags; derive auth state from server session.
- Use cryptographically random session IDs (256-bit entropy, minimum 50 characters).
- Set
SecureandHttpOnlyflags on all session cookies. - Redirect all HTTP traffic to HTTPS; deploy HSTS.
- Use strict PHP comparison (
===) to prevent type juggling in authentication checks. - Set
Cache-Control: no-cache, no-storeandPragma: no-cacheon all authenticated responses.
Related Skills
[[default-credentials]] is the first thing to try once a login form is found — auth bypass and default creds are two paths to the same goal. [[password-reset-flaws]] represents another common bypass vector: a weak reset flow can grant access without ever attacking the login form directly. If a SQL injectable login is found, [[sql-injection]] contains the full methodology for exploiting it. When a session cookie is obtained, validate its security posture using [[cookie-attacks]].
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

