Unsafe Consumption of APIs (OWASP API10) — the target trusts data from upstream/third-party APIs more than user input, enabling injection, SSRF pivots, and data poisoning through a trusted channel. Tier 1. Use when the target integrates external APIs, follows upstream redirects, or ingests third-party data.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Unsafe Consumption?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-api-unsafe-consumption)
---
name: api-unsafe-consumption
description: Unsafe Consumption of APIs (OWASP API10) — the target trusts data from upstream/third-party APIs more than user input, enabling injection, SSRF pivots, and data poisoning through a trusted channel. Tier 1. Use when the target integrates external APIs, follows upstream redirects, or ingests third-party data.
---
# API10 — Unsafe Consumption of APIs
The target validates user input but blindly trusts responses from upstream/3rd-party services it calls — so poison the trusted channel. Cross-ref `api-ssrf`, `api-injection`.
## Trigger phrases
`api10, unsafe consumption, third party api, upstream trust, integration ssrf, data poisoning, trusted channel injection`
## Method
1. **Map integrations** — find where the target calls out: OAuth/SSO providers, payment/KYC, geocoding, enrichment, webhooks you can register (`api-webhooks`), feed/document importers, linked-account syncs.
2. **Find your influence point** — anywhere *you* control data the upstream returns: your own linked third-party account profile, a webhook you register, a file you host that the target fetches, a redirect you control.
3. **Inject via the upstream** — place payloads in the attacker-controlled upstream data so they land in the target: XSS/SQLi/NoSQLi/SSTI/command (see `${CLAUDE_PLUGIN_ROOT}/payloads/injection.md`, `sqli.md`, `nosql.md`, `ssti.md`) in profile fields, webhook bodies, or synced records the target stores/renders without re-validating.
4. **Redirect/SSRF pivot** — if the target follows upstream redirects blindly, return a `3xx` to an internal/metadata URL (`http://169.254.169.254/...`) → SSRF via a trusted hop (chain `api-ssrf`).
5. **TLS trust** — check whether outbound calls disable cert verification (MITM the upstream in lab) or accept any host.
## Modern / rare techniques
- **[RARE] Second-order via trusted sync** — payload injected into your linked account surfaces in the target's admin panel/report/notification later (OAST + delayed callback, see `api-oast-blind`).
- **[RARE] Upstream-redirect SSRF** — allow-list only checks the first URL; the upstream `Location` reaches internal services.
- **[RARE] Deserialization of upstream payloads** — target deserializes trusted-channel data unsafely (`${CLAUDE_PLUGIN_ROOT}/payloads/deserialization.md`).
## Bypass / evasion
Where the target sanitizes user input but not upstream data, the same payloads that were blocked directly often pass through the trusted channel. See `${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md`.
## Escalation / chaining
Injection via trusted channel → RCE/SQLi/stored-XSS in the target. Upstream redirect → `api-ssrf` → cloud metadata/credential theft. Poisoned data → `api-abuse`/fraud.
## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike). Stand up an attacker-controlled upstream (interactsh/your webhook sink/redirector); route the target's traffic through Burp. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm the injected/redirected upstream data actually reached and affected the target (stored, rendered, executed, or caused an internal fetch) — use OAST for blind SSRF and reproduce. True positives only.
## Evidence
The attacker-controlled upstream payload + proof it landed in the target (stored/executed/internal fetch, OAST callback from target egress). Impact + remediation (validate upstream data like user input, allow-list upstream hosts, verify TLS, disable blind redirects, timeouts).