At a glance
- Controls
- CWE-200 · A01:2021 Broken Access Control
What it is
Products often let users share a document, report or export through a link that needs no sign-in. When the link has no expiry and cannot be withdrawn, it acts like a permanent password. It keeps working after the person leaves the team or the deal ends.
Links travel through email, chat, tickets and browser history, and end up in places nobody planned. Anyone who finds one can open the data. AI-assisted attackers can search leaked text and public pages for link patterns and test each one at scale.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- Share buttons on documents, reports and dashboards
- Export and download links sent by email
- Signed storage links issued with very long lifetimes
- Invite and preview links that grant read access
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Sign in as test user A and create a share link to a test document.
- 02Open the link with no session and confirm what it shows.
- 03Revoke the link as user A, wait past the stated expiry, and confirm the link stops working.
Shared links must expire and be revocable.
Executable checkas user A: POST /v1/documents/{id}/share as user A: DELETE /v1/shares/{share id} as anonymous: GET /s/{share token} expect: 404 or 410 after revocation and after the expiry time
Every rule MATT holds →What the fix looks like
- 01
Give every share link an expiry date, with a short default.
- 02
Store share tokens on the server so owners can list and revoke them.
- 03
Use long random tokens that cannot be guessed.
- 04
Offer sign‑in‑required sharing for sensitive data.
A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →