Probe retired API version paths for authorization checks the current version dropped

When an app moved from /api/v1/ to /api/v2/, the old prefix is often still routed on the backend even though the frontend never calls it. Take an authenticated endpoint from the current version, for example GET /api/v2/orders/482/invoice, and replay it against the old prefix: GET /api/v1/orders/482/invoice. Also try an old Accept: application/vnd.app.v1+json or X-API-Version: 1 header against the current path, since some routers dispatch on that instead of the URL.

This works when authorization middleware was added or rewritten for v2 but the v1 handler still exists and calls the same data layer directly, skipping the newer ownership check. A v3-style API gateway rule that strips /v1/* from the public route table does not mean the service behind it stopped listening on that path.

Proof of impact is getting another test account's object back (invoice, profile, order) through the old path while the current version correctly blocks it with a 403 or 404. A 200 with your own data on both versions is not a finding, and a v1 404 from the router just confirms it was removed. Use only test accounts you control, within scope.

Follow #api-versioning, #authorization, #idor or #legacy-endpoints for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.