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

hunt-exceptional-conditions

Fungsinya

Skill ini mengirim input yang tidak terduga atau rusak ke endpoint web dan memeriksa apakah error mengungkap detail internal. Ditujukan untuk pengujian resmi pada formulir, API, dan kolom pencarian.

Kapan dipakai

  • βœ“Saat sebuah API atau formulir mengharapkan tipe data tertentu dan Anda ingin melihat bagaimana ia gagal.
  • βœ“Saat halaman error mungkin menampilkan path file server atau versi library.
  • βœ“Saat kolom pencarian atau filter mungkin tidak menangani input yang tidak biasa dengan aman.

Link skill

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-exceptional-conditions/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-exceptional-conditions/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 mengirim beberapa input yang rusak ke API umpan balik kami dan memeriksa apakah error menampilkan detail internal dalam uji resmi kami?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengubah satu asumsi dalam satu waktu, seperti tipe data yang salah atau JSON yang rusak, lalu membaca respons error. Agent melaporkan detail internal apa pun yang terungkap oleh error.

Konten teknis (SKILL.md asli)

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

HUNT-EXCEPTIONAL-CONDITIONS β€” Verbose Errors / Fail-Open (A10:2025)

What actually pays

Well-built apps catch errors and return a clean, generic message. A broken app, when handed input it didn't expect, throws an unhandled exception and renders a developer error page straight to the client β€” leaking the stack trace, the ORM/query internals, server-side file paths, and framework/library versions. That disclosure is the finding (and it arms SQLi/RCE/path attacks next).

Recon

Any endpoint that parses input is a candidate; the richest are:

JSON APIs that expect typed fields:  POST /api/* with {numbers, ids, enums}
Endpoints with numeric/id path or query params:  /item/{id}, ?page=, ?quantity=
Search / filter / sort params
File or content-type sensitive uploads

Attack β€” send what the code didn't anticipate

Take a known-good request and break ONE assumption at a time:

  • Wrong type: a field the app expects to be a number/string is sent as an array or object β€” {"rating":"x","comment":[1,2,3]}, {"quantity":{}}.
  • Malformed body: truncated/!invalid JSON, an unterminated string, a stray brace, a wrong/missing Content-Type.
  • Boundary/oversized: a very long string, a huge/negative/overflow number.
  • Null byte / control chars embedded in a value.
POST /api/Feedbacks   {"rating":"notanumber","comment":[1,2,3]}
GET  /item/' OR /item/%00   (also exercises the error path)

Watch the RESPONSE BODY, not just the status: a 500 (or even a 200/400) whose body contains a stack trace or framework error page is the signal.

What counts as a leak (the success signal)

A finding is confirmed when the response body contains a cross-framework error-disclosure signature:

  • Node/Express + Sequelize: SequelizeDatabaseError, node_modules/sequelize, a JS stack with internal paths.
  • PHP: <b>Warning</b> ... /var/www/.../file.php on line N.
  • Python: Traceback (most recent call last), werkzeug.exceptions.
  • Java: at com.app.Foo(Foo.java:42) stack frames.
  • .NET: Server Error in '/' Application, a [System.XxxException: ...] YSOD.

A clean JSON error ({"error":"Invalid input"}) with no internals is NOT a finding β€” that's correct handling. Disclosure of internal structure is.

Validation discipline

  • Capture the exact leaked artifact (path, ORM class, version, stack frame) β€” that's the evidence. "It returned 500" alone is not disclosure.
  • Note what the leak enables next (e.g. a disclosed SQL error β†’ hunt-sqli; a disclosed absolute path β†’ hunt-lfi).
Pertanyaan umum

Apakah pesan error biasa termasuk temuan?

Biasanya tidak. Skill ini menyatakan temuan terjadi ketika error mengungkap detail internal seperti stack trace atau path file.

Jenis input apa yang dicoba?

Tipe yang salah, JSON yang rusak, nilai yang terlalu besar, dan karakter tidak biasa seperti null byte.

Mengapa ini penting?

Detail internal yang bocor bisa membantu penyerang merencanakan serangan lanjutan, jadi skill ini memperlakukannya sebagai risiko nyata.

Detail

Deskripsi asli dari pembuat

Hunt mishandling of exceptional conditions β€” feed an endpoint malformed/unexpected input (wrong type, broken JSON, oversized field, null byte) and make it fail OPEN or leak internals: a verbose stack-trace / framework error page that discloses ORM internals, server file paths, library versions, or a language traceback. Use on any input-accepting endpoint (JSON APIs, forms, query params). Medium-High when the leak exposes internal structure that arms a deeper attack.

repo: elementalsouls/Claude-BugHunter

Popularitas

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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa