Skip to content
Access control Advisory Intermediate CVE-2026-11229

Insufficient policy enforcement in Enterprise (CVE-2026-11229)

The chrome://policy WebUI's restartBrowser message accepts a JSON payload and stores it as local test policies without checking whether the policy test page is allowed. An attacker with local JavaScript execution in that WebUI could inject policies that are applied on the next startup, even in cloud-managed profiles where the test page should be disabled.

Povcfe Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Report description

WebUI restart message applies local test policies when the policy test page should be disabled


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src/


The problem

Please describe the technical details of the vulnerability

1. technical details

Chromium exposes a policy inspection WebUI at chrome://policy, and a separate test page at chrome://policy/test that is only intended to be available when policy testing is explicitly enabled.

The test page availability is guarded by PolicyUI::ShouldLoadTestPage, which checks both a testing preference and whether the profile is cloud managed:

This behavior represents a regression of the intended restrictions that were previously addressed in https://issues.chromium.org/issues/338248595.

C++
// chrome/browser/ui/webui/policy/policy_ui.cc
// static
bool PolicyUI::ShouldLoadTestPage(Profile* profile) {
  // Test page should only load if testing is enabled.
  if (!policy::utils::IsPolicyTestingEnabled(profile->GetPrefs(),
                                             chrome::GetChannel())) {
    return false;
  }
  // The test page is not allowed if the profile is cloud managed unless
  // we are already using the test policies.
  if (policy::ManagementServiceFactory::GetForProfile(profile)
          ->HasManagementAuthority(
              policy::EnterpriseManagementAuthority::CLOUD) &&
      !profile->GetProfilePolicyConnector()->IsUsingLocalTestPolicyProvider()) {
    return false;
  }
  return true;
}

At startup, ChromeBrowserPolicyConnector::MaybeApplyLocalTestPolicies reads a JSON string from a local pref and, if present, activates the local test policy provider and loads that JSON as policies:

C++
// chrome/browser/policy/chrome_browser_policy_connector.cc
void ChromeBrowserPolicyConnector::MaybeApplyLocalTestPolicies(
    PrefService* local_state) {
  // Early return if the policy test page is disabled by any policy. This is
  // done because that policy is a profile level policy and we have not yet
  // loaded any profile to access its prefs.
  const auto& chrome_policies =
      GetPolicyService()->GetPolicies(policy::PolicyNamespace(
          policy::PolicyDomain::POLICY_DOMAIN_CHROME, std::string()));
  if (auto* policy_test_page_enabled = chrome_policies.GetValue(
          policy::key::kPolicyTestPageEnabled, base::Value::Type::BOOLEAN);
      policy_test_page_enabled && !policy_test_page_enabled->GetBool()) {
    return;
  }

  std::string policies_to_apply =
      local_state->GetString(policy_prefs::kLocalTestPoliciesForNextStartup);
  if (policies_to_apply.empty()) {
    return;
  }

  LocalTestPolicyProvider* test_provider =
      local_test_provider_for_testing_ ? static_cast<LocalTestPolicyProvider*>(
                                             local_test_provider_for_testing_)
                                       : local_test_provider_.get();
  test_provider->set_active(true);
  GetPolicyService()->UseLocalTestPolicyProvider(test_provider);
  test_provider->LoadJsonPolicies(policies_to_apply);
  local_state->ClearPref(policy_prefs::kLocalTestPoliciesForNextStartup);
}

The local test provider itself is created on supported channels (for example, Dev/Canary and debug builds) without consulting per‑profile management state:

C++
// components/policy/core/common/local_test_policy_provider.cc
// static
std::unique_ptr<LocalTestPolicyProvider>
LocalTestPolicyProvider::CreateIfAllowed(version_info::Channel channel) {
  if (utils::IsPolicyTestingEnabled(/*pref_service=*/nullptr, channel)) {
    return base::WrapUnique(new LocalTestPolicyProvider());
  }

  return nullptr;
}

On the WebUI side, both chrome://policy and chrome://policy/test share the same PolicyUIHandler. Among other messages, this handler exposes a "restartBrowser" message that accepts a JSON string and stores it into the pref inspected at startup:

C++
// chrome/browser/ui/webui/policy/policy_ui_handler.cc
void PolicyUIHandler::HandleRestartBrowser(const base::ListValue& args) {
  CHECK(args.size() == 2);
  const std::string& policies = args[1].GetString();

  // Set policies to preference
  PrefService* prefs = g_browser_process->local_state();
  prefs->SetString(policy::policy_prefs::kLocalTestPoliciesForNextStartup,
                   policies);

  // Restart browser
  chrome::AttemptRestart();
}

Unlike the setLocalTestPolicies and revertLocalTestPolicies handlers, HandleRestartBrowser does not check PolicyUI::ShouldLoadTestPage before accepting the JSON payload. As a result:

  • In builds where the local test policy provider exists (for example, Dev/Canary or debug builds), and
  • In profiles where PolicyUI::ShouldLoadTestPage(profile) would return false (for example, cloud‑managed profiles that are not already using local test policies),

any JavaScript running in the chrome://policy WebUI can call the "restartBrowser" message and cause arbitrary JSON to be written into kLocalTestPoliciesForNextStartup. On the next startup, that JSON is loaded via MaybeApplyLocalTestPolicies and applied as active policies through the local test provider, even though the test page itself should not be available.

2. vulnerability reproduction

The attached JavaScript helper under web/policy_js_bypass/policy_restart_test.js demonstrates the behavior in a realistic way using a Dev‑channel Chrome build:

  • The script is designed to be pasted into the DevTools console on chrome://policy.
  • It optionally loads a JSON payload from a remote URL or uses an inline JSON array of policy entries (for example, setting CloudReportingEnabled to false).
  • It validates that the payload is parseable as JSON and then calls:
    • chrome.send('restartBrowser', [callbackId, jsonText]);

Conceptual reproduction steps using a Dev build:

  1. Start a Dev‑channel Chrome build where local test policy provider support is compiled in.
  2. Open chrome://policy and then open DevTools (Console tab).
  3. Copy the contents of web/policy_js_bypass/policy_restart_test.js into the console, optionally adjusting the JSON payload if needed, and execute it.
  4. Observe console logging indicating that a payload is chosen and the "restartBrowser" message is being sent.
  5. The browser process exits and restarts automatically.
  6. After restart, open chrome://policy again and search for CloudReportingEnabled (or other values from the JSON payload). The policy is now present with the value defined in the JSON, sourced from the local test provider.

In a profile configuration where PolicyUI::ShouldLoadTestPage(profile) would return false (for example, a cloud‑managed profile that does not already use local test policies), the same "restartBrowser" path would still accept and store the JSON payload from chrome://policy. On restart, MaybeApplyLocalTestPolicies applies those values as active policies, even though the test page is not supposed to be usable for injecting local test policies.

Impact analysis

  • Who can exploit it: Any local user or script that can execute JavaScript in the chrome://policy WebUI of a build where the local test policy provider is enabled (for example, Dev/Canary or debug builds). This includes users manually pasting code into the DevTools console or higher‑privileged browser automation running in the same profile.

  • What they gain: In environments where the policy test page is intended to be unavailable (for example, certain cloud‑managed profiles), the user can still inject a JSON payload through the "restartBrowser" WebUI message and cause those values to be applied as local test policies on the next startup. This allows local policy values (such as CloudReportingEnabled or other supported keys) to be overridden through a test‑only mechanism even when the test page should be disabled, affecting how the browser interprets and enforces policies for that profile.

  • Security significance: The issue does not provide remote code execution or cross‑user compromise, and it does not bypass sandboxing. Its significance lies in weakening the separation between normal policy evaluation and test‑only policy mechanisms: policy values can be altered via a test helper path from chrome://policy even when the environment is configured so that the policy test page should not be usable. This can change how certain enterprise policy checks behave for that local profile, depending on which policies are supplied in the JSON payload.


The cause

What version of Chrome have you found the security issue in?

146.0.7666.1/stable

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Permissions Bypass

How would you like to be publicly acknowledged for your report?

Povcfe of Tencent Security Xuanwu Lab

The original report as published on the Chromium issue tracker, by Povcfe of Tencent Security Xuanwu Lab. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 restartBrowser message handler lacks the same ShouldLoadTestPage check that other policy test handlers have, allowing test policies to be stored and applied when the test page should be unavailable.

Impact

A local user or script with JavaScript execution in chrome://policy could override enterprise policies via the test mechanism, even when the test page should be disabled; the issue does not provide remote code execution or sandbox bypass.

What the attacker needed

Dev/Canary or debug Chrome build; Local JavaScript execution in chrome://policy; Cloud-managed profile without local test policies

The fix

The restartBrowser handler should check PolicyUI::ShouldLoadTestPage before accepting and storing the JSON payload, matching the other policy test handlers.

How it was found

  1. Start a Dev-channel Chrome build with local test policy provider support.
  2. Open chrome://policy and then open DevTools Console.
  3. Paste and execute the provided JavaScript helper, optionally adjusting the JSON payload.
  4. Observe console logging that the restartBrowser message is being sent.
  5. The browser restarts automatically.
  6. After restart, open chrome://policy and confirm the injected policy value is present.

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.

Chrome has a special internal page for viewing policies (rules set by an organisation). There is also a test page for trying out policies, which should only work in certain situations. The bug is that a message used to restart the browser can still save test policies even when the test page is supposed to be blocked, so someone who can run code on that internal page can sneak in policy changes.

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 Povcfe

View all

6 more disclosed reports, best first.

More from Google Chrome

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.