hunt-exceptional-conditions
하는 일
이 스킬은 예상하지 못한 입력이나 잘못된 형식의 입력을 웹 엔드포인트에 보내고, 오류가 내부 정보를 드러내는지 확인합니다. 양식, API, 검색창을 허가받아 테스트할 때 사용합니다.
사용하는 경우
- ✓API나 양식이 특정 형식을 요구하고, 실패 방식을 보고 싶을 때.
- ✓오류 페이지가 서버 파일 경로나 라이브러리 버전을 보여줄 수 있을 때.
- ✓검색이나 필터 필드가 특이한 입력을 안전하게 처리하지 못할 수 있는 경우.
스킬 링크
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-exceptional-conditions/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
인기도
- GitHub 스타
- 5.4k
- 순위
- #14906
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
apk-redteam-pipeline
5.4k에이전트가 APK 파일을 찾고 디컴파일하는 것부터 노출된 비밀 값을 확인하는 것까지, Android 앱의 보안 약점을 테스트하도록 돕습니다.
bugcrowd-reporting
5.4k에이전트가 올바른 범주를 고르고 범위 밖 이의에 답하며, Bugcrowd 취약점 보고서를 더 잘 쓰도록 돕습니다.
cloud-iam-deep
5.4k에이전트가 승인된 보안 테스트 중 찾은 클라우드 자격 증명이 AWS, Azure, Google Cloud에서 무엇에 접근할 수 있는지 확인하도록 돕습니다.
enterprise-vpn-attack
5.4k에이전트가 승인된 테스트 중 Cisco, Fortinet, Citrix 등의 VPN과 원격 접속 장비에서 알려진 약점을 확인하도록 돕습니다.