Skip to content
Access control Disclosed report Advanced

Accessing apps protected via ZT's Access when user account is deleted/disabled even after clearing user session/seat

A deleted or disabled user could still reach Access-protected SaaS apps by reusing metadata from their old Access token together with a second active account in the same organisation. The server did not validate certain checks, so the user could gain access they were no longer entitled to.

matured_kazama Follow

Originally disclosed on HackerOne

High 8.4 View original
  • Triaged in 24 hours
  • Fixed in 8 days
  • Paid in 8 days
  • Disclosed after 2 months

Summary by the program

When a user account is deleted/disabled at IdP level (for example, when an employee leaves the company), if that user a) preserved some metadata of his Access JWT and b) had access to another active user account (that may or may not have access to any apps) inside the same organisation, due to lack of server-side validation of certain checks, this user would have been able to access SaaS apps despite not being privileged enough to do so. Cloudflare's Engineering team resolved the issue by implementing the necessary server-side validation checks. It is important to note that given the exploitability requirements, the likelihood of this attack was considered low.

The original report as published on HackerOne, by matured_kazama. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the server trusted client-supplied token metadata and did not re-check the user's current status and entitlements against the identity provider.

Impact

A user whose account was deleted or disabled could access SaaS apps they were not privileged to use, though the likelihood was considered low given the exploitability requirements.

What the attacker needed

Deleted or disabled IdP account; saved metadata from an old Access JWT; a second active account in the org

The fix

Cloudflare's engineering team fixed it by adding the missing server-side validation checks.

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 report has not been written yet. The Original tab links to the source.

Access is a login gate that checks who you are before letting you into apps. Normally, when an employee leaves and their account is switched off, that gate should stop them. Here the gate trusted some saved details from the old login and a second live account, so the person could still get in.

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 matured_kazama

View all

6 more disclosed reports, best first.

More from Cloudflare Public Bug Bounty

View all

The newest disclosed reports for this program.

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.