Forbidden Bypass Cloudflare Zero Trust
The report describes how a Cloudflare Zero Trust access policy that only requires the WARP client can be bypassed by using the consumer version of WARP, because the policy accepts any WARP client. An attacker who obtains an authorised corporate email account can then pass the login step and reach applications that were previously blocked with a 403 status.
O objetivo deste post é compartilhar uma dica sobre como proceder ao encontrar uma tela de “Forbidden” do Cloudflare Zero Trust durante seus testes. É importante destacar que isso não representa uma vulnerabilidade no serviço da Cloudflare, mas sim uma configuração inadequada por parte das empresas que utilizam o Zero…
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 configured to allow any WARP client rather than requiring the organisation's Gateway, so the consumer WARP client satisfied the device check.
Impact
An attacker with an authorised corporate email account could bypass the Zero Trust device check and access protected applications, and potentially join the company VPN, depending on the environment configuration.
What the attacker needed
Access to an authorised corporate email; consumer WARP client installed; target uses WARP-only Zero Trust policy
The fix
The text recommends enabling the 'Require Gateway' option so that only devices registered in the organisation's Gateway instance can access the applications.
How it was found
- Find subdomains that show the Cloudflare Zero Trust Forbidden page.
- Connect to the consumer WARP client and try to access the blocked applications.
- Observe that the applications now return status code 200 instead of 403.
- Enter an authorised corporate email address on the login page and receive a verification code.
- Use the code to log in and gain access to the protected applications.
- Optionally install the WARP client, the Cloudflare certificate and log in with the corporate email to join 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 can restrict access to websites so that only devices running a special Cloudflare app called WARP can reach them. The report found that the check accepted the free consumer version of WARP, not just the company-managed version, so anyone using that free app could get past the first block. The second block was a login page that sent a code to an email address, so the attacker still needed access to an email account that the company had authorised.
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.