Skip to content
Access control Disclosed report Intermediate CVE-2023-3747

Ability to bypass Admin override on Cloudflare WARP Android

The WARP Android client did not validate override-code expiry on the server, so a user with local access could change the device clock to extend the time WARP stays disconnected beyond the administrator-set limit. This let an attacker bypass the Zero Trust policy that prevents users from disabling WARP.

harshdranjan Follow

Originally disclosed on HackerOne

High 7.3 View original
  • Triaged in 1 hour
  • Fixed in 40 days
  • Paid in 18 days
  • Disclosed after 2 months

Summary by the program

Zero Trust Administrators have the ability to disallow end users from disabling WARP on their devices. Override codes can also be created by the Administrators to allow a device to temporarily be disconnected from WARP, however, due to lack of server side validation, an attacker with local access to the device, could extend the maximum allowed disconnected time of WARP client granted by an override code by changing the date & time on the local device where WARP is running.

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the Cloudflare WARP client on Android, part of the WARP Mobile Apps asset in the Cloudflare Public Bug Bounty program. The feature in question is the Zero Trust administrator control that prevents end users from disabling WARP on their devices, together with override codes that administrators can issue to let a device disconnect from WARP temporarily.

According to the program's summary, the problem is a missing server-side validation. An attacker who has local access to the device can change the date and time on that device, and by doing so extend the maximum disconnected time that an override code grants to the WARP client. In other words, the client trusts the local clock when it decides whether the override window has expired, and nothing on the server side corrects that.

The report is a short program summary and does not include the individual requests, payloads or commands used, so there is no code to reproduce here. It also does not describe the exact screens or storage where the override state is kept.

The report was rated high severity with a CVSS score of 7.3, under the weakness category Client-Side Enforcement of Server-Side Security. No bounty amount is stated. It was disclosed on 7 September 2023. The summary does not describe the fix that was applied.

Root cause

The report points to a lack of server-side validation of the override expiry. The report attributes the issue to a lack of server-side validation, without describing how the client stores or checks the override expiry. Because the local clock is under the user's control, changing the device date and time can extend the override beyond what the administrator intended.

This is a classic case of a security decision being enforced only on the client. The administrator's policy lives in Zero Trust, but the enforcement of the time limit depends on data the client can influence.

Impact

With local access to the device, an attacker can keep WARP disconnected beyond the window the administrator granted through the override code. That undermines the administrator's ability to keep WARP enabled on the device, for as long as the clock manipulation holds. The report frames this as extending the maximum allowed disconnected time; it does not describe any further consequence, such as access to internal resources or interception of traffic, so the impact should be read at that level.

How this kind of bug works

Many mobile and desktop agents enforce policy locally: a management console sets a rule, the agent receives it, and the agent decides at runtime whether an action is permitted. When the decision depends on state the user controls, such as the system clock, a local file, or a preference value, the enforcement can be bypassed without touching the server.

Time-based limits are especially prone to this. An override that is meant to expire after a fixed period is often represented as an absolute timestamp. If the client compares that timestamp with the local clock, setting the clock back makes the override appear active again. Even a relative countdown can be reset if the remaining time is persisted locally and the client does not re-check with the server.

The defence is to make the server the authority. The backend should record when an override was issued and for how long, and the client should ask the server whether the override is still valid, or receive a short-lived token that the server can revoke. Any local check is then only a convenience, not the security boundary.

How to test for it

This class of bug is tested by looking for security decisions that the client makes on its own.

  1. Identify features where an administrator restricts user action: forced VPN or agent state, uninstall protection, screen lock requirements, override or bypass codes, temporary exemptions.
  2. Exercise the feature normally and observe what the client stores and what it sends. Look for timestamps, expiry fields, counters or flags in local storage, preferences, databases or configuration files.
  3. Change the device clock, forward and backward, and see whether the restriction expires or is extended. Test both directions: a clock moved forward may end a legitimate window early, and a clock moved backward may revive an expired one.
  4. Where the client talks to a backend, replay or modify the relevant request to see whether the server independently validates the override. If the server accepts a client-supplied expiry or simply does not check, the control is client-side only.
  5. Confirm the behaviour survives a restart of the app and, where relevant, a reboot, so the result is not an in-memory artefact.

A positive result is a state the administrator intended to forbid that the user can reach or maintain purely by manipulating local data or time, with the server raising no objection. Common false positives include cases where the server later re-syncs and silently restores policy, where the change only affects a display value, or where the device is already outside the managed scope. Check that the bypass persists and that the server has had a chance to correct it.

How it is fixed

The standard fix is to move the authority to the server. The backend should store the override issuance time and duration, and validate on each relevant check that the override is still within its window, using server time. The client should not be trusted to report its own clock or its own remaining time. Where offline operation is required, the server can issue a signed, short-lived credential that the client presents, with the server able to revoke or refuse renewal. Any local expiry check should be treated as a usability aid only.

Hunting notes

This bug class tends to hide in management and compliance features of endpoint agents and in any product with an administrator-controlled override: VPN clients, MDM agents, endpoint protection, parental controls and kiosk software. Recon signals include documentation that mentions override codes, temporary exemptions or offline grace periods, and clients that keep policy state locally. Mobile apps are worth attention because local storage and the system clock are easy to manipulate.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Cloudflare WARP is a client that routes a device's internet traffic through Cloudflare's network. Organisations that use Cloudflare Zero Trust can set a policy that stops users from turning WARP off on their devices. To allow a temporary exception, an administrator can issue an override code that lets the device disconnect from WARP for a limited time.

The report shows that this time limit can be extended by the user. The report attributes the issue to a lack of server-side validation of the override expiry. If someone with access to the phone changes the date and time, the client can be made to believe the override is still valid, so WARP stays disconnected longer than the administrator allowed. The report attributes this to a lack of server-side validation of the override expiry.

The report is a short summary from the bug bounty program. It does not include the individual requests, payloads or commands used, so there is no code to reproduce here. It also does not describe the exact screens or storage where the override state is kept.

The report was rated high severity with a CVSS score of 7.3, under the weakness category Client-Side Enforcement of Server-Side Security. No bounty amount is stated. It was disclosed on 7 September 2023. The summary does not describe the fix that was applied.

Root cause

The report points to a lack of server-side validation of the override expiry. The report attributes the issue to a lack of server-side validation, without describing how the client stores or checks the override expiry. Because the local clock is under the user's control, changing the device date and time can extend the override beyond what the administrator intended.

This is a classic case of a security decision being enforced only on the client. The administrator's policy lives in Zero Trust, but the enforcement of the time limit depends on data the client can influence.

Impact

With local access to the device, an attacker can keep WARP disconnected beyond the window the administrator granted through the override code. That undermines the administrator's ability to keep WARP enabled on the device, for as long as the clock manipulation holds. The report frames this as extending the maximum allowed disconnected time; it does not describe any further consequence, such as access to internal resources or interception of traffic, so the impact should be read at that level.

How this kind of bug works

Many mobile and desktop agents enforce policy locally: a management console sets a rule, the agent receives it, and the agent decides at runtime whether an action is permitted. When the decision depends on state the user controls, such as the system clock, a local file, or a preference value, the enforcement can be bypassed without touching the server.

Time-based limits are especially prone to this. An override that is meant to expire after a fixed period is often represented as an absolute timestamp. If the client compares that timestamp with the local clock, setting the clock back makes the override appear active again. Even a relative countdown can be reset if the remaining time is persisted locally and the client does not re-check with the server.

The defence is to make the server the authority. The backend should record when an override was issued and for how long, and the client should ask the server whether the override is still valid, or receive a short-lived token that the server can revoke. Any local check is then only a convenience, not the security boundary.

How to test for it

This class of bug is tested by looking for security decisions that the client makes on its own.

  1. Identify features where an administrator restricts user action: forced VPN or agent state, uninstall protection, screen lock requirements, override or bypass codes, temporary exemptions.
  2. Exercise the feature normally and observe what the client stores and what it sends. Look for timestamps, expiry fields, counters or flags in local storage, preferences, databases or configuration files.
  3. Change the device clock, forward and backward, and see whether the restriction expires or is extended. Test both directions: a clock moved forward may end a legitimate window early, and a clock moved backward may revive an expired one.
  4. Where the client talks to a backend, replay or modify the relevant request to see whether the server independently validates the override. If the server accepts a client-supplied expiry or simply does not check, the control is client-side only.
  5. Confirm the behaviour survives a restart of the app and, where relevant, a reboot, so the result is not an in-memory artefact.

A positive result is a state the administrator intended to forbid that the user can reach or maintain purely by manipulating local data or time, with the server raising no objection. Common false positives include cases where the server later re-syncs and silently restores policy, where the change only affects a display value, or where the device is already outside the managed scope. Check that the bypass persists and that the server has had a chance to correct it.

How it is fixed

The standard fix is to move the authority to the server. The backend should store the override issuance time and duration, and validate on each relevant check that the override is still within its window, using server time. The client should not be trusted to report its own clock or its own remaining time. Where offline operation is required, the server can issue a signed, short-lived credential that the client presents, with the server able to revoke or refuse renewal. Any local expiry check should be treated as a usability aid only.

Hunting notes

This bug class tends to hide in management and compliance features of endpoint agents and in any product with an administrator-controlled override: VPN clients, MDM agents, endpoint protection, parental controls and kiosk software. Recon signals include documentation that mentions override codes, temporary exemptions or offline grace periods, and clients that keep policy state locally. Mobile apps are worth attention because local storage and the system clock are easy to manipulate.

Glossary

  • Cloudflare WARP: a client application that sends a device's internet traffic through Cloudflare's network.
  • Zero Trust: a security model where every request is checked, rather than trusting devices because they are inside a network.
  • Override code: a code issued by an administrator that lets a device disconnect from WARP for a limited time.
  • Server-side validation: checking a condition on the server, where the user cannot change the result.
  • Client-side enforcement: making a security decision in the app on the device, where the user can influence the inputs.
  • Timestamp: a recorded point in time, such as the moment an override expires.
  • Token: a piece of data issued by a server that the client presents to prove it is allowed to do something.
  • CVSS: a standard score from 0 to 10 that rates the severity of a vulnerability.
  • Bug bounty program: a scheme where organisations reward people for reporting security problems.
  • False positive: a test result that looks like a vulnerability but is not, for example because the server later corrects the state.

More by harshdranjan

View all

7 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.