Incorrect security UI in Downloads (CVE-2024-8906)
Chrome's downloads page shows the referer header as the download source, not the actual URL. An attacker can make a malicious file appear to come from a trusted site by linking to it from that site.
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Report description
Incorrect security UI of files' download source at chrome://downloads
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
The problem
Please describe the technical details of the vulnerability
Generally, when using Chrome, the chrome://downloads page displays the download source of a file.
For instance, if we download Chrome from https://www.google.com/intl/en_uk/chrome/browser-tools/, the From field on the chrome://downloads page will show From https://www.google.com. However, the actual download source for Chrome is https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg. Please take a look at the 1.png:
So it appears that Chrome utilizes the referer header value as the source in the From field. I think this approach may introduce certain security risks.
Reproduce:
- Try the following html(I host it at http://192.168.1.113/vuln.html):
<h1>
<a href="https://dl.google.com/chrome/mac/universal/canary/googlechromecanary.dmg">click to download chrome canary</a>
</h1>
If you click the above link, the From field will show From http://192.168.1.113 instead of https://dl.google.com. Please take a look at the 2.png:
- Try open the following google docs link
https://docs.google.com/document/d/1vXg4oOAwPk8tdejYZjkEd2SwMkGxf_XXC619mB5sOK0, and right-click on the link in the body text and select the 'Open Link' option.
The link points to https://cdn.androidcombo.com/com.roblox.client/Roblox_2.629.609_apkcombo.com.apk?ecp=Y29tLnJvYmxveC5jbGllbnQvMi42MjkuNjA5LzE2MzIuZGY2MzQxNjc2NzVjMTIwN2Y2YzkwOWZjNjk1NjA4NzY4YmMyMzA2OS5hcGs%3D&iat=1720768260&sig=2a395e3cac47633cfcc3ba33fe3794b5&size=177578364&from=cf&version=latest&lang=en&fp=784941ae73339d1ccaff3c0387d755c2&ip=219.78.127.215.
The From field will show From https://www.google.com instead of https://cdn.androidcombo.com`.
Please take a look at the 3.png:
Please briefly explain who can exploit the vulnerability, and what they gain when doing so
Misleading users about the true source of a file download, leading them to mistakenly trust a malicious file.
The cause
What version of Chrome have you found the security issue in?
128.0.6589.0 (Official Build) canary (arm64)
Is the security issue related to a crash?
No
Choose the type of vulnerability
Security UI Spoofing
How would you like to be publicly acknowledged for your report?
Wester
Context
Chrome's chrome://downloads page shows, for every downloaded file, a From field that is meant to tell the user where the file came from. That field is a security-relevant piece of UI: it is one of the few signals a user has about the trustworthiness of a downloaded file. The report is a Security UI Spoofing issue in that field, affecting the Downloads feature of the Chrome browser, filed through the Chrome VRP and tracked as CVE-2024-8906. The researcher asked to be acknowledged as Wester.
Setup
The issue was found in Chrome 128.0.6589.0 (Official Build) canary (arm64). The researcher downloaded files through Chrome and looked at the From field on chrome://downloads. To reproduce the first case, the researcher hosted a small HTML page on a local web server at http://[redacted]/vuln.html. The issue is not related to a crash.
Finding it
The researcher started from normal behaviour. When Chrome is downloaded from https://www.google.com/intl/en_uk/chrome/browser-tools/, the From field on chrome://downloads shows From https://www.google.com. The actual download source for that file, however, is https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg. The screenshot of this case shows the From value next to the downloaded file.
From this, the researcher concluded that Chrome uses the referer header value as the source shown in the From field, rather than the URL the file was actually fetched from. That design choice is what introduces the security risk: the referer is controlled by the page that links to the download, not by the server that serves the file.
Exploitation
Step 1: a page on an unrelated origin links to a download
The researcher hosted the following HTML at http://[redacted]/vuln.html:
<h1>
<a href="https://dl.google.com/chrome/mac/universal/canary/googlechromecanary.dmg">click to download chrome canary</a>
</h1>
The page contains a single link to a Chrome Canary disk image on dl.google.com. When the link is clicked, the From field on chrome://downloads shows From http://[redacted] instead of https://dl.google.com. The screenshot shows the From value pointing at the local host rather than the real download host.
Step 2: a link opened from Google Docs
The researcher then opened the following Google Docs document:
https://docs.google.com/document/d/[redacted]
In the body text there is a link pointing to:
https://cdn.androidcombo.com/com.roblox.client/Roblox_2.629.609_apkcombo.com.apk?ecp=[redacted]%3D&iat=1720768260&[redacted]&size=177578364&from=cf&version=latest&lang=en&fp=[redacted]&ip=[redacted]
Right-clicking that link and choosing the 'Open Link' option leads to the From field showing From https://www.google.com. The From field then shows From https://www.google.com instead of https://cdn.androidcombo.com. The screenshot shows the mismatch between the displayed source and the host that actually served the APK.
This second case is the more interesting one, because the referer here is a legitimate, widely trusted origin. A user who checks the From field before opening the downloaded APK would see Google, not the third-party CDN that delivered the file.
Root cause
The From field on chrome://downloads is populated from the referer header value rather than from the URL the file was actually downloaded from. The researcher inferred that the From field uses the referer header value, which the linking page controls. The report does not describe any server-side or browser-side check that would reconcile the displayed value with the real download URL, so the misleading UI is presented as-is.
Impact
The vulnerability lets an attacker mislead users about the true source of a file download, leading them to mistakenly trust a malicious file. The report says the issue can mislead users about the true source of a file download, leading them to mistakenly trust a malicious file.
Fix
The report does not state what change was made to address the issue.
Variants to test
- Host a page on an arbitrary origin with a link to a file on a different host and check whether
chrome://downloadsshows the hosting origin inFrom. A positive result is the hosting origin appearing instead of the file's real host. - Place a download link in a document or post on a trusted service and open it via the context menu's 'Open Link' option. A positive result is the trusted service's origin appearing in
Fromwhile the file is served from an unrelated CDN.
What happened, in plain words
When you download a file in Chrome, the browser keeps a list of your downloads on a page called chrome://downloads. For each file, that page shows a From field, which is supposed to tell you where the file came from. People use that field to decide whether a file is trustworthy: if it says the file came from a site you know, you are more likely to open it.
The researcher found that this From field does not show the address the file was actually downloaded from. Instead, it shows the address of the page that contained the link you clicked. That page is called the referer, and it is chosen by whoever wrote the page, not by the server that hands over the file. So anyone who can put a download link on a page can make the From field say whatever origin that page has, even if the file itself lives somewhere completely different.
The report was filed through the Chrome VRP, Google's programme that pays people for reporting security problems in Chrome. It was tracked as CVE-2024-8906, a public identifier given to a specific security flaw. The researcher asked to be acknowledged as Wester. The weakness is classed as Incorrect security UI: the browser's interface tells the user something that is not true.
The setup
The issue was found in Chrome 128.0.6589.0 (Official Build) canary (arm64). Canary is Chrome's experimental early-release version, where new code appears before it reaches the normal browser. The arm64 part refers to the kind of processor the build runs on.
The researcher downloaded files through Chrome and looked at the From field on chrome://downloads. To reproduce the first case, a small HTML page was hosted on a local web server at http://[redacted]/vuln.html. A local web server is a program on your own computer that serves web pages to your own browser, so you can test pages without putting them on the internet. The issue is not related to a crash.
Finding it
The researcher started from normal behaviour. When Chrome is downloaded from https://www.google.com/intl/en_uk/chrome/browser-tools/, the From field on chrome://downloads shows From https://www.google.com. The actual download source for that file, however, is https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg. The screenshot of this case shows the From value next to the downloaded file.
From this, the researcher concluded that Chrome uses the referer header value as the source shown in the From field, rather than the URL the file was actually fetched from. A header is a small piece of extra information that travels with every web request and response, alongside the address and the content. The referer header is the browser telling the server which page the request came from. That design choice is what introduces the security risk: the referer is controlled by the page that links to the download, not by the server that serves the file.
Exploitation
Step 1: a page on an unrelated origin links to a download
The researcher hosted the following HTML at http://[redacted]/vuln.html:
<h1>
<a href="https://dl.google.com/chrome/mac/universal/canary/googlechromecanary.dmg">click to download chrome canary</a>
</h1>
Line by line:
<h1>opens a top-level heading, the largest kind of title on a page.<a href="...">starts a link. Thehrefattribute holds the address the link points to, here a Chrome Canary disk image ondl.google.com.click to download chrome canaryis the text the visitor sees and clicks.</a>closes the link, and</h1>closes the heading.
The page contains a single link to a Chrome Canary disk image on dl.google.com. The purpose of this step is to put a download link on a page whose address has nothing to do with the file's real host. When the link is clicked, the From field on chrome://downloads shows From http://[redacted] instead of https://dl.google.com. The screenshot shows the From value pointing at the local host rather than the real download host.
Step 2: a link opened from Google Docs
The researcher then opened the following Google Docs document:
https://docs.google.com/document/d/[redacted]
This is the address of a document stored on Google Docs, Google's online word processor. In the body text there is a link pointing to:
https://cdn.androidcombo.com/com.roblox.client/Roblox_2.629.609_apkcombo.com.apk?ecp=[redacted]%3D&iat=1720768260&[redacted]&size=177578364&from=cf&version=latest&lang=en&fp=[redacted]&ip=[redacted]
This is a long download address. The part before the ? is the file itself, an Android app package (APK) for Roblox, served from cdn.androidcombo.com. Everything after the ? is a set of parameters, extra pieces of information sent along with the request, such as a signature, a size, a version and a language. A CDN, or content delivery network, is a network of servers that distributes files on behalf of a site.
Right-clicking that link and choosing the 'Open Link' option leads to the From field showing From https://www.google.com. The From field then shows From https://www.google.com instead of https://cdn.androidcombo.com. The screenshot shows the mismatch between the displayed source and the host that actually served the APK.
This second case is the more interesting one, because the referer here is a legitimate, widely trusted origin. An origin is the combination of scheme, host and port that identifies where a page comes from, for example https://www.google.com. A user who checks the From field before opening the downloaded APK would see Google, not the third-party CDN that delivered the file.
Root cause
The From field on chrome://downloads is populated from the referer header value rather than from the URL the file was actually downloaded from. The researcher inferred that the From field uses the referer header value, which the linking page controls. The report does not describe any server-side or browser-side check that would reconcile the displayed value with the real download URL, so the misleading UI is presented as-is.
Impact
The vulnerability lets an attacker mislead users about the true source of a file download, leading them to mistakenly trust a malicious file. The report says the issue can mislead users about the true source of a file download, leading them to mistakenly trust a malicious file.
Fix
The report does not state what change was made to address the issue.
Variants to test
- Host a page on an arbitrary origin with a link to a file on a different host and check whether
chrome://downloadsshows the hosting origin inFrom. A positive result is the hosting origin appearing instead of the file's real host. - Place a download link in a document or post on a trusted service and open it via the context menu's 'Open Link' option. A positive result is the trusted service's origin appearing in
Fromwhile the file is served from an unrelated CDN.
Glossary
- API: a defined way for one piece of software to ask another for information or actions, like a service counter with set rules for what you can request.
- APK: Android Package, the file format used to install apps on Android phones.
- arm64: a family of processors used in many modern computers and phones; a build labelled arm64 is made to run on them.
- Bounty: money paid by a company to someone who reports a security problem to it.
- Canary: an early, experimental release of Chrome used to test new code before it reaches regular users.
- CDN (content delivery network): a set of servers spread around the world that delivers files for a website.
- Chrome VRP: Google's Vulnerability Reward Program for Chrome, which receives and pays for security reports.
- chrome://downloads: a page built into Chrome that lists your downloaded files and details about them.
- CVE: Common Vulnerabilities and Exposures, a public catalogue that gives each known security flaw a unique identifier such as CVE-2024-8906.
- Download bubble / shelf: Chrome's small panel near the address bar and the strip at the bottom of the window that show recent downloads.
- Header: extra information sent alongside a web request or response, such as which page a request came from.
- HTML: the language used to write web pages, made of tags such as headings and links.
- Incorrect security UI: a flaw where the browser's interface shows security-relevant information that is wrong or misleading.
- Local web server: a program on your own computer that serves web pages to your browser for testing.
- Origin: the scheme, host and port that identify where a page comes from, for example
https://www.google.com. - Parameter: an extra value attached to a web address after a
?, used to pass details with a request. - Redirect chain: a series of automatic forwards from one web address to another.
- Referer: a header in which the browser tells the server which page the request came from.
- Security UI Spoofing: making a security-related part of an interface display something false, so the user trusts the wrong thing.
- Severity: a rating of how serious a security flaw is, here medium.
- URL: the address of something on the web, such as a page or a file.