Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Account recovery testing

Tests password reset, backup code and email change flows for security holes and shows how to report them.

CheckedSecurity

Claude's review

8/10 Detailed, specific account recovery attack state machine with concrete tests and reporting guidance.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Account recovery lifecycle hunting — password reset tokens, email/phone change re-auth, backup codes, recovery-vs-MFA ordering, support/helpdesk identity proofing, account linking collisions. The recovery path is the real authentication system. Pairs with hunt-auth-bypass, hunt-otp, hunt-passkeys, hunt-mfa.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: hunt-account-recovery
description: Account recovery lifecycle hunting — password reset tokens, email/phone change re-auth, backup codes, recovery-vs-MFA ordering, support/helpdesk identity proofing, account linking collisions. The recovery path is the real authentication system. Pairs with hunt-auth-bypass, hunt-otp, hunt-passkeys, hunt-mfa.
---

# ACCOUNT RECOVERY — Advanced Guide

**Core:** Attackers don't break login; they walk around it through recovery. Model recovery as a state machine — *request → proof of identity → credential rotation → session issuance* — and attack every transition: a recovery flow that ends with weaker proof than login, rotates only some credentials, or leaves old sessions/tokens alive is an account-takeover machine.

## 1. RESET TOKEN ATTACKS

- **Entropy & lifetime:** collect reset links for your own accounts. Token <128 bits, sequential, timestamp-derived, or valid >1h widens guessing/exposure. Tokens must die on: first use, password change, email change, a newer reset request, and login with the old password (know which of these the target actually does — test each).
- **Host-header / origin poisoning:** request a reset with `Host: attacker.com`, `X-Forwarded-Host`, absolute-URL forms. If the emailed link is built from the request host, anyone can harvest a live token by asking for a reset *of the victim's email* with a poisoned host. (Classic, still paid in 2025-26.) Also test the `Origin`/`Referer`-derived variants and tenant/subdomain reflections.
- **Token leakage:** reset token in URLs leaks via Referer to third-party resources on the reset page, analytics beacons, and browser history sync. Check the reset landing page for external subresources.
- **Parameter pollution / type confusion:** duplicate `token` params (first vs last wins, limiter vs verifier disagree), `token[]`, null/empty token matching an unset DB field (accounts that never requested a reset have `reset_token = NULL` — `token=` empty must never match).
- **No binding:** token issued for account A submitted against account B's reset endpoint/body `userId` — the token must be bound to the account server-side, not paired with a client-supplied identity.
- **Response oracle:** reset-request responses that differ for existing vs non-existing emails (and timing differences) = account enumeration; only reportable chained with the guessing/poisoning above or a program that pays for enumeration with PII.

## 2. EMAIL / PHONE CHANGE — THE QUIET TAKEOVER

- Changing the account email is a credential change: it must require the *current* password or MFA. If it needs only a live session, any session theft (or CSRF, or a borrowed device) becomes permanent ATO.
- **Verification asymmetry:** new email verified but old email never notified = silent takeover. Old email notified but change takes effect before the old owner can react (no revert link / revert window) is nearly as bad.
- **Collision & normalization:** change your email to `Victim@target.com` vs `victim@target.com`, plus-addressing, dot variants, Unicode/confusable forms, trailing spaces — if the system treats two spellings as the same mailbox for *recovery* but different accounts for *uniqueness*, register/recover across the seam.
- **Pending-change hijack:** start an email change on your account, then request password reset — does the reset go to the *pending* (unverified) address? If yes, whoever controls a pending change receives recovery.
- Phone change mirrors all of the above, plus SIM-swap assumptions: SMS proof to the *new* number proves nothing about the account owner.

## 3. BACKUP / RECOVERY CODES

- Codes must be single-use, hashed at rest, throttled like passwords, and regenerated codes must invalidate the old set. Test: reuse a spent code, use a code from account A on account B, brute-force a short code space against the verify endpoint's rate limit.
- Viewing/regenerating codes is a credential change — requires re-auth (see §2 rule). Codes displayed after a *recovery* login without MFA defeat the MFA they back up.
- "Downloaded once" code files and screenshot flows often re-display on refresh — a stored-XSS or session-theft chain multiplier, note it in the chain section of the report.

## 4. RECOVERY-vs-MFA ORDERING

- The fatal pattern: recovery proof (email link) is *weaker* than MFA, but completing recovery clears the MFA requirement. Map the matrix explicitly:
  - password reset → session with MFA still required? (must be yes)
  - password reset → can immediately disable MFA / register passkey / change email? (must be no without step-up)
  - MFA reset flow → requires password + email proof, or email alone? (email alone = MFA is decorative)
  - support-initiated MFA reset → what proof? (see §5)
- Session issuance on recovery: recovery should mint a *restricted* session (change password, confirm contact points) not a full session. Test API calls with the recovery session before completing the password change.
...

From dragonked2's repository, MIT licence.

Related skills

  • Checked

    Codebase quality audit

    Audits a whole code repo for bugs, security holes, slow paths and dead code, ranked in plain English.

    by DietrichGebert 203k
    7/101 credit
  • Checked

    Security and CVE audit

    Runs a security and CVE audit on code in any language and scores it out of 100, with false alarms filtered.

    by opencrabs 1k
    7/101 credit
  • Checked

    OWASP code review

    Reviews code for security flaws using the latest OWASP Top 10 lists, including those for AI and agent apps.

    by agamm 467
    7/101 credit
  • Checked

    Code security hardening

    Hardens code that handles user input, logins and data against the OWASP Top 10, starting from a threat model.

    by addyosmani 122k
    7/101 credit
  • Checked

    Android intent security

    Audits Android components and incoming intents to fix redirection and unauthorised access holes in your app.

    by android 11k
    8/101 credit
  • Checked

    Fuzz harness planning

    Plans fuzz harness scope and fuzzer choice for code you are authorised to test, so real bugs surface sooner.

    by provos 690
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added