$npx -y skills add transilienceai/communitytools --skill injectionInjection vulnerability testing - SQL, NoSQL, OS Command, SSTI, XXE, and LDAP/XPath injection techniques.
| 1 | # Injection |
| 2 | |
| 3 | Test for injection vulnerabilities across all input vectors. Covers SQL, NoSQL, Command, SSTI, XXE, and LDAP injection. |
| 4 | |
| 5 | ## Techniques |
| 6 | |
| 7 | | Type | Key Vectors | |
| 8 | |------|-------------| |
| 9 | | **SQL Injection** | In-band (union, error), Blind (boolean, time), Out-of-band | |
| 10 | | **NoSQL Injection** | Operator injection, JavaScript injection, aggregation pipeline | |
| 11 | | **Command Injection** | OS command separators, blind techniques, out-of-band | |
| 12 | | **SSTI** | Template engine detection, sandbox escape, RCE chains | |
| 13 | | **XXE** | Entity expansion, SSRF via XXE, blind XXE, parameter entities | |
| 14 | | **LDAP/XPath** | Filter manipulation, authentication bypass | |
| 15 | |
| 16 | ## Workflow |
| 17 | |
| 18 | 1. Identify injection points (parameters, headers, cookies, JSON fields) |
| 19 | 2. Detect injection type with minimal probes |
| 20 | 3. Exploit with context-appropriate payloads |
| 21 | 4. Escalate (data extraction, RCE, file read) |
| 22 | 5. Capture evidence and write PoC |
| 23 | |
| 24 | ## Reference |
| 25 | |
| 26 | - `reference/sql-injection*.md` - SQL injection techniques |
| 27 | - `reference/nosql-injection*.md` - NoSQL injection techniques |
| 28 | - `reference/os-command-injection*.md` - OS command injection |
| 29 | - `reference/ssti*.md` - Server-side template injection |
| 30 | - `reference/xxe*.md` - XML external entity injection |
| 31 | - `reference/ldap-injection-quickstart.md` - LDAP filter injection: detection, auth bypass, blind boolean extraction via `(description=PREFIX*)` chaining |
| 32 | - `reference/xpath-injection-quickstart.md` - XPath injection (CWE-643): lxml/Java/Node sinks, `' or '1'='1' or 'a'='b` boolean oracle, blind char-by-char extraction recipe |