本文へスキップ
Skillpedia
セキュリティ5.4k · #14906

hunt-exceptional-conditions

できること

このスキルは、予想外または不正な形式の入力を Web のエンドポイントに送り、エラーが内部の詳細を明かさないか確認します。フォーム、API、検索欄の認可されたテストのためのものです。

使う場面

  • ✓API やフォームが特定の型を期待しており、どう失敗するか見たいとき。
  • ✓エラーページがサーバーのファイルパスやライブラリのバージョンを表示するかもしれないとき。
  • ✓検索やフィルターの欄が、珍しい入力を安全に扱わないかもしれないとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-exceptional-conditions/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“認可されたテストの一環として、私たちのフィードバック API に不正な入力を送り、エラーが内部の詳細を示さないか確認してもらえますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、間違った型、壊れた JSON などの仮定を一度に一つずつ変え、返ってきたエラーの応答を読みます。エラーが明かす内部の詳細を報告します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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).
よくある質問

エラーメッセージだけで発見になりますか?

通常はなりません。発見となるのは、エラーがスタックトレースやファイルパスなどの内部の詳細を明かす場合だとされています。

どんな入力を試しますか?

間違った型、壊れた JSON、大きすぎる値、null バイトなどの珍しい文字です。

なぜ重要なのですか?

漏えいした内部の情報は攻撃者がさらなる攻撃を計画するのに役立つため、現実的なリスクとして扱います。

詳細

作者による元の説明

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

人気

GitHubのスター
5.4k
ランキング
#14906
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル