agentleFS
silonxxsilonxx/hackbot/skills/hunt-ato/SKILL.md

hunt-ato

Skill0 starsChanged 3 months agoMITView on GitHub

Account Takeover (ATO) hunting methodology — password reset flaws, OAuth misconfig, email-change abuse, 2FA/OTP bypass, JWT/session flaws, and IDOR-to-ATO chains. TRIGGER: user is testing login/registration/password-reset/email-change/2FA/OAuth/SSO flows, session handling, JWTs, or hunting account takeover.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No rate limit on OTP -> brute force (test on YOUR account).

    line 50
  2. Distinctive:

    When a primitive works, prove takeover of YOUR account B from account A — never a real user.

    line 74
  3. Distinctive:

    Run it through triage-finding (confirm severity, dedupe) before writing up.

    line 76
  4. Distinctive:

    NEVER take over, access, or alter a REAL user's account to prove ATO.

    line 86
  5. Distinctive:

    No credential stuffing or password brute-force against real/other users' accounts (harms users and is out of scope on most programs).

    line 91
  6. Distinctive:

    Don't exfiltrate a victim's data.

    line 94

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hunt-ato — Account Takeover Hunting

You are assisting an authorized bug bounty hunter under a program's published policy. ATO is a top-severity, high-bounty class and a natural escalation of their IDOR strength (IDOR on an email/password field = ATO). Teach them to audit every auth flow for the takeover primitive, and to PROVE it only on their own test accounts. (Depth: cloned hackerone-reports/tops_by_bug_type/TOPACCOUNTTAKEOVER.md.)

Core philosophy

ATO = you end up controlling an account that isn't yours. Every account has a few flows that, if broken, hand it over: reset the password, change the email, bypass the second factor, forge the session/token, or reference the victim's object directly. Audit each flow as its own attack surface. Full ATO is almost always High/Critical — but you must demonstrate it WITHOUT hijacking a real user.

The takeover primitives (audit each flow)

1. Password reset (the #1 ATO source)

  • Host header poisoning: change Host/X-Forwarded-Host on the reset request so the emailed reset link points to your domain -> victim clicks -> token leaks.
  • Token leak in response: reset token/link returned in the HTTP response or redirect.
  • Weak/predictable/non-expiring token; token not invalidated after use or after email change.
  • IDOR / param manipulation in reset: user_id/email field controls WHOSE password resets (your IDOR pattern -> ATO).
  • Referer leak: reset page loads third-party resources that leak the token in the Referer header.

2. Email change abuse

  • Change victim's email with no current-password/verification, or via IDOR on the change-email endpoint -> then reset password to the new email. (Top reports: Automattic Atavist, DoD mass ATO via email change.)
  • Response/status manipulation to skip the verification step.

3. OAuth / SSO misconfiguration

  • redirect_uri manipulation: loosely-validated redirect_uri (or open redirect chain) leaks the auth code/token to your host.
  • Missing/!checked state: login CSRF / account linking abuse.
  • Pre-account-takeover: register the victim's email via one provider before they sign up, so their later SSO login lands in your account (or vice versa).
  • Token/audience confusion: access token from one client accepted by another.

4. 2FA / OTP bypass

  • No rate limit on OTP -> brute force (test on YOUR account).
  • Response manipulation ("verified":false -> true, 4xx -> 200).
  • 2FA disabled without re-auth; backup-code/recovery flaws; OTP reuse; OTP leaked in response.

5. JWT / token flaws

  • alg:none, weak/guessable HMAC secret, kid injection/path traversal, signature not verified, algorithm confusion (RS256->HS256).

6. Session flaws

  • Session fixation; session not invalidated on password change/logout; long-lived tokens; cookies stealable via XSS (chain with hunt-xss); token-swap on session cookies (relevant to mobile session-cookie IDOR).

7. Response/auth-logic bypass

  • Intercept and modify login/reset responses; SQLi/NoSQL in login; default/weak creds; logic flaws letting you skip a step.

Discovery methodology

  1. Map EVERY auth flow: register, login, logout, password reset, email/phone change, 2FA enroll/disable, OAuth/SSO, session lifecycle, API auth.
  2. Set up TWO of your own test accounts (attacker A, victim B).
  3. Walk each flow proxied through Burp; for each, test the matching primitives above. Watch responses for tokens, watch for Host/redirect_uri influence.
  4. When a primitive works, prove takeover of YOUR account B from account A — never a real user.
  5. Run it through triage-finding (confirm severity, dedupe) before writing up.

Impact demonstration

  • Show the concrete takeover step: the leaked/poisoned token, the email change taking effect, the 2FA skip, the forged JWT accepted — done against your OWN account B.
  • State it clearly: "attacker with [precondition] can fully take over any account by [steps]." Note whether it needs user interaction (0-click is more severe).

Scope & ethics guardrails (do NOT cross)

  • NEVER take over, access, or alter a REAL user's account to prove ATO. Use two of your own test accounts. If a real victim is somehow required, stop and report the flaw with your own-account proof + explanation instead.
  • Password-reset poisoning: prove the poisoned link/token is generated and reaches you; do not use it against a real account.
  • No credential stuffing or password brute-force against real/other users' accounts (harms users and is out of scope on most programs). OTP/rate-limit tests run only on your own account.
  • Don't exfiltrate a victim's data. Confirm scope first; if unsure, ask the user.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.