Saltar al contenido
Skillpedia
Seguridad5,4 mil · #14906

hunt-exceptional-conditions

Qué hace

Esta skill envía entradas inesperadas o mal formadas a endpoints web y comprueba si los errores revelan detalles internos. Es para pruebas autorizadas de formularios, APIs y campos de búsqueda.

Cuándo usarla

  • ✓Cuando una API o un formulario espera tipos concretos y quieres ver cómo falla.
  • ✓Cuando una página de error podría mostrar rutas de archivos del servidor o versiones de bibliotecas.
  • ✓Cuando un campo de búsqueda o de filtro podría no gestionar bien entradas inusuales.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-exceptional-conditions/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes enviar algunas entradas mal formadas a nuestra API de comentarios y comprobar si los errores muestran detalles internos, en nuestra prueba autorizada?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente cambia una suposición cada vez, como un tipo de dato incorrecto o un JSON roto, y lee las respuestas de error. Informa de los detalles internos que revele el error.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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).
Preguntas frecuentes

¿Un mensaje de error sencillo es un hallazgo?

Normalmente no. La skill indica que el hallazgo existe cuando el error revela detalles internos, como trazas de pila o rutas de archivos.

¿Qué tipos de entrada se prueban?

Tipos incorrectos, JSON roto, valores demasiado grandes y caracteres inusuales como los bytes nulos.

¿Por qué importa?

Los detalles internos filtrados pueden ayudar a un atacante a planear nuevos ataques, así que la skill lo trata como un riesgo real.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
5,4 mil
Posición en el ranking
#14906
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas