Incorrect authorization in WebProtect (CVE-2026-78907)
A logic flaw in Chrome's Enterprise Data Controls engine causes clipboard paste restrictions to be skipped when the destination tab has an empty committed URL, such as one opened via a javascript: URI. This allows a user to bypass cross-profile or incognito paste blocking and exfiltrate sensitive data to an unauthorised profile.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
Flapjack, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: A logic flaw in Enterprise Data Controls allows users to bypass cross-profile and incognito paste restrictions. When a paste occurs in a tab with an empty committed URL (e.g., opened via a javascript: URI), the policy engine incorrectly determines the context is empty and skips evaluating the blocking rules. This enables exfiltration of sensitive data to unauthorized profiles.
Affected files:
components/enterprise/data_controls/core/browser/action_context.cccomponents/enterprise/data_controls/core/browser/conditions/attributes_condition.cc
Estimated timestamp from git blame: 2024-03-21
Description
A logic flaw in the Enterprise Data Controls engine allows for a potential universal bypass of policy restrictions when an action (like a clipboard paste) occurs in a context with an empty URL. The engine incorrectly determines that such a context is "empty" and consequently skips the evaluation of rules that should apply based on other attributes, such as cross-profile or Incognito status.
In components/enterprise/data_controls/core/browser/action_context.cc, the ActionSource::empty() and ActionDestination::empty() methods check only the URL and the OS clipboard flag, while completely ignoring the incognito and other_profile fields:
bool ActionSource::empty() const {
return url.is_empty() && !os_clipboard;
}
This implementation assumes that a valid browser tab context must have a non-empty URL. However, a context can be valid and restricted (e.g., belonging to an unmanaged profile) even if the URL is an empty GURL(). When empty() returns true, DestinationAttributesCondition::CanBeEvaluated() returns false, causing the policy engine to skip the condition entirely and allow the action.
An attacker or malicious page can intentionally create a tab with an empty last_committed_url_ by opening a new window and executing a javascript: URI. Because javascript: URIs are executed without committing a standard navigation, the RenderFrameHost's last_committed_url_ remains uninitialized (GURL()).
Potential Exploitation Scenario
This flaw can be exploited to bypass cross-profile Data Loss Prevention (DLP) rules:
- Policy: An administrator sets a rule to block clipboard actions when the destination is another profile (e.g.,
{"destinations": {"other_profile": true}, "restrictions": [{"class": "CLIPBOARD", "level": "BLOCK"}]}). - Preparation: In an unmanaged, secondary browser profile, a user or a webpage opens a new window using JavaScript:
window.open('javascript:document.write("<body contenteditable></body>")'). This creates a newRenderFrameHostwhoselast_committed_url_is an emptyGURL(). - Copy: The user copies sensitive data from a tab within the managed profile.
- Paste: The user switches to the unmanaged profile and pastes the data into the blank,
contenteditabletab. - Bypass:
- The browser calls
CreateDataEndpoint()to get the destination URL, which returnsstd::nulloptbecauselast_committed_url_is empty. ExtractPasteActionContextsuccessfully detects the destination is a different profile and setsaction.other_profile = true, but leavesaction.urlempty.ActionDestination::empty()returnstruebecause the URL is empty and it ignoresother_profile.- The
DestinationAttributesConditionfails to evaluate, the block rule is skipped, and the sensitive data is successfully exfiltrated to the unauthorized profile.
- The browser calls
(Note: These are suggested steps based on static analysis. Our tooling agent does not currently have the capability to run a working Proof of Concept).
Recommended Fix
The empty() methods for ActionSource and ActionDestination in components/enterprise/data_controls/core/browser/action_context.cc must be updated to account for the incognito and other_profile flags. A context should only be considered empty if all its identifying attributes indicate no context is present.
bool ActionSource::empty() const {
return url.is_empty() && !os_clipboard && !incognito && !other_profile;
}
(Apply the equivalent fix to ActionDestination::empty().)
Evaluated with Chrome root at commit: c1eba8ce379f5d218a2948fafbb5dd72cfa30529
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Raised in root component due to access or custom field issues on 1974931
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
The empty() methods for ActionSource and ActionDestination only check the URL and OS clipboard flag, ignoring the incognito and other_profile fields, so a context with an empty URL is wrongly considered empty and its policy conditions are skipped.
Impact
This could allow a user to bypass cross-profile or incognito clipboard restrictions and exfiltrate sensitive data to an unauthorised profile, though the report notes the steps are suggested from static analysis and no working proof of concept was run.
What the attacker needed
Enterprise Data Controls policy configured; Victim uses a managed profile; Attacker can open a javascript: URI tab; Victim copies and pastes data
The fix
The empty() methods should be updated to also check the incognito and other_profile flags so a context is only considered empty when all identifying attributes are absent.
How it was found
- An administrator sets a rule to block clipboard actions when the destination is another profile.
- In an unmanaged secondary profile, a user or webpage opens a new window using a javascript: URI that creates a blank contenteditable page.
- The user copies sensitive data from a tab in the managed profile.
- The user switches to the unmanaged profile and pastes the data into the blank tab.
- The policy engine sees an empty destination URL, skips the block rule, and the paste succeeds.
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.
Enterprise Data Controls are rules that stop sensitive data from being copied or pasted into places it should not go, like another browser profile. The code that checks these rules mistakenly treats a tab with no web address as 'empty' and skips the check, even though the tab still belongs to a different profile. A malicious page could open such a tab and trick the browser into allowing a paste that should have been blocked.
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.