Skip to content
Business logic Advisory Intermediate CVE-2024-9963

Insufficient data validation in Downloads (CVE-2024-9963)

A vulnerability in Chromium allows a malicious site to manipulate the navigation context so that pressing the back button triggers an automatic download of an arbitrary file, which appears to originate from a legitimate site. An attacker could trick a user into downloading malware that seems to come from a trusted website.

st4nly0n Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 7 months

Description

A vulnerability has been identified in the Chromium browser that allows the manipulation of navigation context. This security flaw directly impacts the user experience, as, after clicking on a link from a malicious site, using the browser's back function results in an arbitrary file being downloaded. The concerning aspect is that this download appears to come from a legitimate website, causing confusion and compromising the integrity of information.

The vulnerability manifests as follows:

  1. A user accesses a link from a malicious website.
  2. When using the back function in the Chromium browser, instead of returning to the previous page, an arbitrary download is initiated automatically.
  3. The download deceptively simulates its origin from the current website, leading to confusion by incorrectly indicating that the file originated from the current page rather than the initial website the user navigated from.

Steps to Reproduce

Prerequisites: These steps are performed on the Windows operating system.

Steps performed by the attacker:

  1. Set up the Ruby interpreter on your system, installing the Sinatra gem.

  2. Create a directory named poc in a location of your choice.

  3. Inside poc, create a file named server.rb with the following content:

Ruby
require 'sinatra'

set :bind, ARGV[0]
set :port, ARGV[1].to_i

$redirect = false

get '/' do
  $redirect = true
  response.header['Cache-Control'] = 'no-store'
  redirect '/index.html'
end

get '/index.html' do
  response.header['Cache-Control'] = 'no-store'
  if $redirect
    $redirect = false
    File.read('index.html')
  else
    redirect 'data'
  end
end

get '/data' do
  headers 'Cache-Control' => 'no-store',
          'Content-type' => 'application/x-msdownload',
          'Content-Disposition' => 'attachment; filename=Urgent_Chrome_Update.exe'
  File.binread('malware')
end
  1. In the same directory, create a file named index.html with the following content:
HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Back</title>
</head>
<body>
  <h1>POC SITE</h1>
  <a href="https://google.com">google.com</a>
</body>
</html>
  1. Place a malicious file in the same directory, named malware.

  2. Start the server by running ruby server.rb localhost 80 in a terminal emulator.

Steps performed by the victim:

  1. Access the address "http://localhost" in your web browser.

  2. Click on a link that redirects to google.com.

  3. Subsequently, press the back button in the browser. You will observe that instead of returning to the original site, a file download is initiated, seemingly from the current site.

  4. Pressing the back button again, you will notice how the information bubble indicates that www.google.com wants to download multiple files.

Watch the following proof-of-concept video demonstrating how this navigation context manipulation impacts not only file downloads but also system notifications. Deceptively, notification bubbles claim that the download originates from the legitimate website, despite being generated from the attacking site.

poc.mp4

Impact

Exploiting this vulnerability grants the attacker the ability to manipulate the navigation context, resulting in the inadvertent download of a malicious file, such as malware, instead of returning to the original website. This malicious action poses a considerable risk to the security and integrity of the victim's systems, as the user, expecting a return to the website, may be exposed to receiving a file designed to cause harm or compromise the device. Additionally, an additional layer of deception is added, as notification bubbles about the download falsify information, incorrectly indicating that the file originates from the current website rather than the one the user initially navigated from.

The successful exploitation of this vulnerability can have significant consequences, including:

  1. Unauthorized file downloads on the user's device.
  2. Confusion and loss of trust in the browser's security.
  3. Possible execution of phishing attacks by convincing the user that the download comes from a reliable source.

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

Likely insufficient validation of navigation context in Chromium's download handling, allowing a malicious site to cause a download on back navigation and spoof its origin.

Impact

An attacker could cause a user to download a malicious file that appears to come from a trusted site, potentially leading to malware execution or phishing.

What the attacker needed

Victim uses Chromium on Windows; victim visits malicious site; victim clicks a link then presses back

How it was found

  1. Set up a Ruby server with Sinatra that serves a page with a link to a legitimate site and a download endpoint.
  2. The victim visits the malicious page and clicks the link to the legitimate site.
  3. The victim presses the back button, which triggers an automatic download of a file.
  4. The download is shown as coming from the legitimate site, and pressing back again shows a notification claiming the legitimate site wants to download multiple files.

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.

When you click a link and then press the back button, your browser is supposed to return to the previous page. In this bug, a malicious website can make the back button start a file download instead, and the browser wrongly shows that the file comes from a trusted site like Google. This could trick you into running malware because you think the download is legitimate.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by st4nly0n

View all

2 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.