exploiting-api-injection-vulnerabilities

Tests API endpoints for SQL, NoSQL, command injection, and SSRF vulnerabilities.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill exploiting-api-injection-vulnerabilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exploiting-api-injection-vulnerabilities
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/api-security/exploiting-api-injection-vulnerabilities
Command: npx skills add https://github.com/xalgord/xalgorix --skill exploiting-api-injection-vulnerabilities

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests.

What problem does it solve?

APIs frequently pass user input into database queries, shell commands, and server-side HTTP requests without proper validation, creating injection flaws that automated scanners often miss. This Skill provides a structured, authorized testing workflow to identify and confirm SQL injection, NoSQL injection, OS command injection, and SSRF across API parameters, headers, and request bodies.

Core Features & Use Cases

  • Multi-vector injection testing: Covers SQLi (error-based, union-based, time-based), MongoDB NoSQL operator injection, OS command injection, and SSRF with cloud metadata and filter-bypass payloads.
  • Confirmation guidance: Emphasizes out-of-band verification, time-based baselining, and commonly missed sinks like JSON body fields, HTTP headers, and second-order injection points.
  • Use Case: During an authorized assessment of an e-commerce API, you test the product search endpoint for SQLi, bypass login via NoSQL operator injection, and extract AWS instance metadata through an SSRF flaw in the webhook URL parameter, then document findings with CVSS severity and remediation steps.

Quick Start

Test the login and search endpoints of my authorized target API for SQL injection, NoSQL injection, and SSRF, and report any confirmed findings with remediation advice.

Frequently Asked Questions about exploiting-api-injection-vulnerabilities

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

FAQPage Schema
How do I test an API for SQL injection vulnerabilities?

Send detection, union-based, error-based, and time-based payloads to every input point including query parameters, JSON body fields, path segments, and headers. Confirm hits with reproducible time delays or out-of-band callbacks rather than relying only on error messages.

How to test MongoDB APIs for NoSQL injection?

Inject MongoDB operators like $ne, $gt, and $regex into JSON request bodies, and try URL-encoded forms such as username[$ne]= in query strings. A successful authentication bypass or unexpected data return confirms the injection point.

What tools are needed for API injection testing?

The workflow uses Python 3.10+ with the requests library for custom payload delivery, SQLMap for automated SQL injection, and Burp Suite Professional for active scanning. NoSQLMap, SSRFmap, and Commix cover NoSQL, SSRF, and command injection respectively.

Can SSRF filters blocking 169.254.169.254 be bypassed?

Yes, common bypasses include decimal, hex, or octal IP encodings, IPv6 loopback [::1], shortened forms like 127.1, and DNS rebinding services such as nip.io. The workflow tests these variants before concluding an endpoint is safe.

Is API injection testing legal to perform?

Injection testing is only legal with written authorization specifying the target API and backend systems in scope. Unauthorized testing can modify or destroy data and may violate computer fraud laws, so an isolated test environment is recommended.