Skip to content
Access control Advisory Advanced CVE-2026-79077

Incorrect authorization in WebProtect (CVE-2026-79077)

The Enterprise DLP implementation populates the frame URL chain from the currently focused frame rather than the frame that initiated a download or File System Access operation. An attacker controlling an iframe on a trusted site could trigger a download programmatically without focusing the iframe, causing the DLP server to receive an empty frame chain and apply the main frame's permissive policy, bypassing iframe-specific rules.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, 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.

Overview: Enterprise DLP rules for downloads and File System Access (FSA) can potentially be bypassed because the system relies on the currently focused frame instead of the initiating frame to populate the URL context signal. If an operation is triggered programmatically from an iframe without that iframe gaining focus, the DLP server receives an empty frame URL chain. This causes the DLP server to evaluate the request based solely on the main frame's URL, bypassing iframe-specific policies.

Affected files:

  • chrome/browser/enterprise/connectors/common.cc
  • chrome/browser/safe_browsing/download_protection/download_item_metadata.cc
  • chrome/browser/safe_browsing/download_protection/file_system_access_metadata.cc

Estimated timestamp from git blame: 2025-08-20

Description

A potential logic error in the Enterprise DLP implementation allows a bypass of iframe-aware rules during file downloads and File System Access (FSA) operations. The vulnerability arises because the frame_url_chain proto field, which provides origin context to the DLP cloud service, is populated based on the currently focused frame rather than the frame that actually initiated the action.

Technical Details

The function enterprise_connectors::CollectFrameUrlsImpl in chrome/browser/enterprise/connectors/common.cc is responsible for generating the frame_url_chain. It begins traversing the frame hierarchy from web_contents->GetFocusedFrame() (line 160).

While focus is an appropriate signal for features like 'Copy and Paste', it is semantically unrelated to download or FSA write initiation. A programmatic download (e.g., via anchorElement.click()) or an FSA operation triggered from an iframe does not require focus to be on that frame.

Due to the implementation of the traversal loop (lines 164-181), if the main frame is focused (which is the default state) or if no frame is currently focused, CollectFrameUrlsImpl terminates before adding any URLs to the chain. The resulting frame_url_chain is sent to the DLP server as an empty list, making a request from an iframe indistinguishable from a request initiated by the main frame.

Impacted Paths

  1. Downloads: In chrome/browser/safe_browsing/download_protection/download_item_metadata.cc, DownloadItemMetadata::CollectFrameUrls calls the flawed logic. It fails to consult the browser-authoritative initiating frame stored in the DownloadItem (retrievable via DownloadItemUtils::GetRenderFrameHost(item_)).
  2. File System Access: In chrome/browser/safe_browsing/download_protection/file_system_access_metadata.cc, FileSystemAccessMetadata::CollectFrameUrls similarly relies on GetFocusedFrame(), despite having access to the correct initiating frame_url within the FileSystemAccessWriteItem metadata.

Potential Attack Steps

Note: These are suggested steps based on code analysis; a working proof-of-concept has not been executed.

  1. An attacker controls a malicious origin (e.g., attacker.com) and embeds it as an iframe within a trusted site (e.g., trusted.example.com).
  2. An enterprise user navigates to trusted.example.com. By default, the main frame holds focus.
  3. The attacker's JavaScript within the iframe programmatically initiates a download (e.g., creating an <a> tag with a malicious payload and calling .click()). The script ensures the iframe does not request focus.
  4. The browser intercepts the download and initiates a deep scan via DeepScanningRequest.
  5. When collecting metadata, CollectFrameUrlsImpl is called. It fetches GetFocusedFrame(), which returns the main frame (trusted.example.com).
  6. Because the main frame has no parent, the traversal loop breaks immediately, resulting in an empty frame_url_chain.
  7. The DLP cloud service receives the request with the trusted tab URL but no frame context. It applies the permissive policy of the main frame and allows the malicious download to proceed.

Suggested Fix

CollectFrameUrlsImpl and its callers should be updated to use the actual RenderFrameHost that initiated the action rather than the focused frame.

  • Modify enterprise_connectors::CollectFrameUrls to accept a RenderFrameHost* initiating_frame parameter instead of, or in addition to, WebContents.
  • For downloads, retrieve the initiating frame using content::DownloadItemUtils::GetRenderFrameHost(item_) and pass it to the collection function.
  • For FSA, the metadata already contains the authoritative frame_url which should be used to reconstruct the chain context.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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 1208119

The original report as published on the Chromium issue tracker. 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

The frame URL chain is built by traversing from the focused frame instead of the frame that actually initiated the download or File System Access operation, so an unfocused iframe yields an empty chain.

Impact

An attacker could bypass iframe-specific DLP policies and have a malicious download allowed under the main frame's permissive policy; the report notes no working proof-of-concept has been executed.

What the attacker needed

Enterprise DLP configured; attacker controls an iframe on a trusted site; victim visits the trusted site; iframe does not request focus

The fix

The frame URL collection should use the actual initiating frame (from the download item or File System Access metadata) instead of the focused frame.

How it was found

  1. An attacker embeds a malicious origin as an iframe within a trusted site.
  2. An enterprise user visits the trusted site; the main frame holds focus by default.
  3. JavaScript in the iframe programmatically starts a download without requesting focus.
  4. The browser intercepts the download and starts a deep scan request.
  5. The frame URL collection uses the focused main frame, producing an empty frame URL chain.
  6. The DLP service sees only the trusted main frame URL and allows the download.

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 DLP is a security feature that checks files being downloaded or written to disk against company rules. This report found that when a download is started from an embedded frame (an iframe) on a trusted page, the browser tells the checking service about the wrong frame, so the service thinks the download came from the trusted page and allows it. An attacker could use this to sneak a malicious file past the company's download rules.

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