hunt-api-misconfig

Identify API security misconfigurations enabling privilege escalation and token forgery.

2|Updated Apr 11, 2025
One-click install
npx skills add https://github.com/Carlos-Reyes-UTP/Desarrollo-de-Sistema-de-Ventas-Empresas-de-Moda --skill hunt-api-misconfig-carlos-reyes-utp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-api-misconfig
Source: https://github.com/Carlos-Reyes-UTP/Desarrollo-de-Sistema-de-Ventas-Empresas-de-Moda/tree/main/.agent/skills/hunt-api-misconfig
Command: npx skills add https://github.com/Carlos-Reyes-UTP/Desarrollo-de-Sistema-de-Ventas-Empresas-de-Moda --skill hunt-api-misconfig-carlos-reyes-utp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you identify and validate common API security misconfigurations in authentication and authorization flows, especially where attackers can escalate privileges or read sensitive data across origins.

Core Features & Use Cases

  • Mass Assignment Testing: Detects whether server-side handlers blindly apply untrusted fields (e.g., role, is_admin, verified) during profile/account update or reset flows.
  • JWT Vulnerability Hunting: Checks for alg=none, algorithm confusion (RS256↔HS256), weak HMAC/forgery conditions, and token parsing issues that enable impersonation.
  • Prototype Pollution Detection: Finds unsafe JSON/object merging patterns (e.g., __proto__ injection) that can poison prototypes and reach sensitive sinks.
  • CORS Exploitability Validation: Verifies whether credentialed cross-origin requests are practically exploitable via wildcard/null/regex origin handling or missing origin checks.
  • HTTP Verb Tampering: Looks for GET-bypass-CSRF, X-HTTP-Method-Override, and enabled/unsafe methods such as TRACE.

Use case: When an API seems to have inconsistent access control, run this Skill to triage whether the weakness is mass assignment, JWT forgery, prototype pollution, CORS credential leakage, or method-based bypass.

Quick Start

Ask the skill to generate an actionable hunting plan and validation steps for a target API endpoint covering mass assignment, JWT weaknesses, prototype pollution vectors, and credentialed CORS behavior.

Frequently Asked Questions about hunt-api-misconfig

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test an API for mass assignment and JWT vulnerabilities?

To test an API for mass assignment and JWT vulnerabilities, you enumerate vulnerable fields and craft token payloads to detect privilege escalation and forgery conditions. This process validates untrusted field application and algorithm confusion in authentication flows to confirm exploitability.

What is prototype pollution and how does JSON merge handling create injection paths?

Prototype pollution is a vulnerability where unsafe JSON object merging allows __proto__ injection to poison prototypes and reach sensitive sinks. Testing merge and parse behavior identifies these injection paths and confirms server-side exploitability through observable responses.

How can I validate CORS exploitability with credentialed cross-origin requests?

Validating CORS exploitability involves checking wildcard, null, or regex origin handling to see if credentialed cross-origin requests succeed. Verifying Access-Control behavior and preflight outcomes confirms practical cross-origin data exposure under attacker-controlled inputs.

Can I detect HTTP verb tampering and CSRF bypasses in REST endpoints?

Yes, you can detect HTTP verb tampering by testing for GET-bypass-CSRF, X-HTTP-Method-Override, and unsafe methods like TRACE. Identifying enabled methods that bypass access controls confirms endpoint exploitability across REST endpoints.

What is the best way to triage inconsistent API access control weaknesses?

The best way to triage inconsistent API access control is to systematically test for mass assignment, JWT forgery, prototype pollution, and CORS credential leakage. Identifying the specific misconfiguration enables targeted remediation of privilege escalation or data exposure vectors.

Does this approach work for defensive verification of JWT-based authentication systems?

Yes, this approach works for defensive verification by testing JWT-based authentication systems with realistic attacker-controlled inputs. Validating token parsing issues, algorithm confusion, and weak HMAC conditions confirms exploitability and strengthens defensive postures.