Skip to content
Access control Write-up Intermediate

Forbidden Bypass Cloudflare Zero Trust — English Version

Cloudflare Zero Trust access policies that only required any WARP client allowed the free consumer WARP app to bypass the 403 block. An attacker with an authorised corporate email could then log in and reach internal applications.

j0hnZ3RA Follow

Published on medium.com

The purpose of this post is to share a tip on how to proceed when you encounter a Cloudflare Zero Trust “Forbidden” screen during your tests. It is important to note that this does not represent a vulnerability in Cloudflare’s service, but rather improper configuration on the part of the companies using Zero Trust.

j0hnZ3RA, 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

Likely the Zero Trust access policy was set to accept any WARP client rather than requiring the organisation's Gateway, so the consumer WARP app satisfied the device check.

Impact

An attacker who also obtains an authorised corporate email could bypass the 403 block and reach internal applications and the company VPN, though results vary by configuration and some companies may be properly configured.

What the attacker needed

Consumer WARP client; authorised corporate email account; Zero Trust policy accepts any WARP

The fix

The text recommends enabling the Require Gateway option so only devices registered with the organisation's Gateway instance can access the applications.

How it was found

  1. Find subdomains that return a Cloudflare Zero Trust Forbidden page.
  2. Connect to the consumer WARP client and request the same applications.
  3. Observe that the blocked pages now return status code 200 and show a login page.
  4. Obtain an authorised corporate email account and request an access code.
  5. Enter the received code to log in to the protected applications.
  6. Install WARP, install the Cloudflare certificate and log in with the corporate email to reach the company VPN.

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.

Cloudflare Zero Trust is a service that hides company apps behind a login and a check that the visitor's device is approved. The mistake was that the check accepted the free consumer version of Cloudflare's WARP app, not just the company-managed one. So anyone using that free app could get past the block and see the login page.

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 j0hnZ3RA

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.