Skip to content
Access control Write-up Intermediate

From Organizaton Admin to ReadOnly… But Still Able to Download

A user whose Vault Admin role was downgraded to ReadOnly could still replay an earlier export download request and receive a fresh pre-signed S3 URL, downloading the full export ZIP. The server checked permissions only when the export was created, not when it was later downloaded.

Rootxsecurity Follow

Published on medium.com

Hi Hackers For confidentiality reasons, I’ll refer to the target application simply as Target.

Rootxsecurity, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The backend verified permissions only when the export was created and did not re-check the requester's current role when the export was downloaded, issuing a fresh pre-signed URL based only on knowing the export identifier.

Impact

A demoted ReadOnly user could still download confidential ELN export data after their admin access was revoked, bypassing role-based authorization and potentially breaching GDPR or HIPAA obligations.

What the attacker needed

Two accounts with role control; export created while Vault Admin; captured download request

The fix

The download endpoint should re-check the requesting user's current permissions on every request before issuing a pre-signed URL, rather than relying on the check made at export creation.

How it was found

  1. Assign Account B the Vault Admin role and use it to generate an ELN export.
  2. Capture the download request that fetches the export by its identifier.
  3. Using Account A, downgrade Account B from Vault Admin to ReadOnly.
  4. Replay the previously captured download request as Account B.
  5. Observe a new redirect to a fresh pre-signed S3 URL and download the full export ZIP.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Applications often check whether you are allowed to do something at the moment you create a file or record, but forget to check again when you later open it. Here, someone who had admin rights made an export, then was demoted to a read-only role, but the old download link still worked and even produced a new working link. That means sensitive data stayed reachable after the person lost their privileges.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Rootxsecurity

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.