All vulnerabilities
HIGHAppSec

APPSEC-SHADOW-API

API · Improper inventory management (shadow/zombie APIs)

Summary

Improper Inventory Management is the failure to maintain a complete, current inventory of deployed API hosts, versions and endpoints, leaving undocumented 'shadow' APIs and deprecated-but-still-running 'zombie' APIs reachable (OWASP API9:2023). The mechanism is divergence between what is documented or patched and what is actually exposed: an old /v1 left online after /v2 ships, a debug or staging host, or an unretired beta keeps serving traffic while lacking the authentication, authorization, rate limiting and security fixes of the current version, so an attacker who enumerates version paths or subdomains by guessing, fuzzing or brute force targets the weakest exposed surface. Salt Security research indicates a large share of deployed APIs do not match their documentation. The canonical case is the September 2022 Optus breach in Australia: an unauthenticated API endpoint exposed on a secondary/older domain, where an access-control fix applied to the main site was never propagated, remained reachable and leaked PII for roughly 9.5 million customers.

How to avoid it in your code

  • Maintain an automated, continuously discovered inventory of all API hosts and versions.
  • Decommission deprecated endpoints fully; return 410 Gone and remove backend routes.
  • Block non-production hosts (staging/debug/beta) from internet egress.
  • Propagate auth, rate-limit and patch changes across every version and subdomain.
  • Run automated API discovery scans to detect shadow and zombie endpoints.

References

Related vulnerabilities

All AppSec →