agentleFS
NoorQureshiNoorQureshi/ronin/skills/api/api-versioning/SKILL.md

api-versioning

Skill26 starsChanged 31 days agoMITView on GitHub

Find and attack old/shadow API versions that missed a fix — improper inventory management. Load when the API is versioned (/v1, /v2, /api/2021-01), on "old API", or after mapping the surface. Signals: version in path/header/subdomain, deprecated docs, mobile app using an older version.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-injection, openapi and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HamzaSheikh768Skill

    dependency-injection

    Leverages FastAPI's powerful Depends system for reusable authentication, database sessions, rate limiting, and business logic injection.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    openapi

    OpenAPI/Swagger specification and documentation

    Also in 3 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

The file

Files
SKILL.md

API versioning attacks

When it applies

The API exposes multiple versions and a vulnerability fixed in the current version still lives in an older or undocumented one. Old versions rarely get the same auth, validation, or rate-limit hardening.

Why it works

Teams patch the latest version and leave /v1 (and /beta, /internal, dated versions) running for backward compatibility. Those endpoints often skip a fix, lack a new authz check, or expose fields later removed — same data, weaker guard.

Method

  1. Enumerate versions: swap the version in path (/v1↔/v2↔/v3), header (Accept: application/vnd.api+json;version=1, X-API-Version), or subdomain (api-v1., legacy.). Fuzz with ffuf.
  2. Diff behaviour: take a request that's now blocked/fixed on the current version and replay it against older ones — missing auth, mass assignment (→ api-mass-assignment), BOLA (→ api-bola), verbose fields, or no rate limit.
  3. Mine sources for old versions: mobile apps, JS bundles, wayback, and public API docs often reference deprecated versions still live.
  4. Re-test every known bug per version — a fix in v2 is often absent in v1.

Gotchas

  • A 404 on /v1 root doesn't mean v1 is gone — test specific known endpoints under it.
  • Header/media-type versioning is easy to miss vs path versioning — enumerate all three.
  • Old versions may lack rate limits, enabling brute force the new one blocks.

Verify success

A vulnerability reproducible on an older/undocumented API version that is patched or better-guarded on the current one.

References

OWASP API Security Top 10 (2023) API9; API inventory/versioning guidance.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.