CWE-200Data exposureSeverity · Medium

Share links that never expire

A share link to a document or export that works for anyone, forever. Once it is forwarded or leaked, the owner has no way to take that access back.

At a glance

Controls
CWE-200 · A01:2021 Broken Access Control
Typical severityMedium
ReferenceCWE-200
OWASP Top 10A01: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.

  1. 01Sign in as test user A and create a share link to a test document.
  2. 02Open the link with no session and confirm what it shows.
  3. 03Revoke the link as user A, wait past the stated expiry, and confirm the link stops working.
The rule, in plain English

Shared links must expire and be revocable.

Executable check

as 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

  1. 01

    Give every share link an expiry date, with a short default.

  2. 02

    Store share tokens on the server so owners can list and revoke them.

  3. 03

    Use long random tokens that cannot be guessed.

  4. 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? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02