Inappropriate implementation in App-Bound Encryption (CVE-2025-12439)
The App-Bound Encryption implementation in Chrome's elevation service allows a low-privilege user to attempt decryption of DPAPI blobs encrypted by SYSTEM. By observing different error events in Windows Event Viewer, an attacker can perform a padding oracle attack to decrypt cookies and other sensitive data.
Originally disclosed on Chrome VRP
- Fix shipped in 11 months
Report description
AppBound Decryption with Padding Oracle Attack
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://github.com/chromium/chromium/tree/main/chrome/elevation_service, https://github.com/chromium/chromium/tree/main/chrome/browser/os_crypt
The problem
Please describe the technical details of the vulnerability
Hello Chrome VRP team :)
I found a vulnerability in the implementation of AppBound Encryption with the elevation service that would allow a low-privilege user to decrypt cookies and other sensitive data. I realize local attacks aren't generally considered in the chrome threat model. But since the App Bound feature is meant specifically to handle local attacks, and since this attack impacts Windows security as a whole, I though it's important enough to bring up.
The technique implements an attack called “Padding Oracle Attack,” which allows decrypting ciphertexts without a key under very specific circumstances. For the attack to work, two things are necessary. First, the encryption has to use a vulnerable type of encryption mode like AES-CBC, which is what DPAPI uses. The other thing required is a “Padding Oracle,” a black box that takes a ciphertext as input and returns it if the plaintext that matches the ciphertext has valid padding.
In this implementation, the “Padding Oracle” comes from the Windows Event Viewer in a channel called Microsoft-Windows-Crypto-DPAPI/Operational. This channel records events related to DPAPI. DPAPI blobs have serval fields, including the ciphertext and a signature, aka MAC, to ensure no tampering was done to the DPAPI blob.
If an attacker modifies the blob randomly before trying to decrypt it, then we will usually be able to see an error event in the event viewer that says the reason for failure is an invalid MAC. However, if an attacker modifies the ciphertext in the blob so that the padding of the plaintext is invalid, we can see a different error event where the reason for failure is unknown. This turns the event viewer into a “Padding Oracle” and allows an attacker to use the “Padding Oracle Attack” to decrypt a DPAPI encrypted blob.
The root cause of the issue is that the elevation service allows a low-privilege user to try to decrypt a DPAPI blob encrypted by SYSTEM. Typically, users can only try to decrypt blobs encrypted by the same user, so they don’t need the “Padding Oracle Attack.” If a user tries to decrypt a blob that was encrypted by a different user, such as SYSTEM, the key can’t be found, and then the “Padding Oracle Attack” can’t be implemented. It’s only in this hybrid situation that the attack is viable. An important thing to mention is that the attack does take several hours. The creation of the event logs is slow. The VM I tested this on took about a second for each log. In theory, decrypting each byte should take an average of a little over 2 minutes. But specifically when decrypting the app bound encrypted key, a lot of the plain text is known ahead of time (it’s just another DPAPI encrypted blob except this time for a low privileged user), so it’s possible to save some of the time by just assuming those values are fixed instead of decrypting them.
I'll be attaching a zip file with a demo and the code is used to make it. Sorry I know it's explicitly written not to upload a zip. But I was having trouble getting python to function as a COM client so the code is divided between python that does most of the work and a cpp program to do the COM requests to the elevation service. I also attached a video to show that it works but since it takes several hours I skip ahead a lot in the video.
Please briefly explain who can exploit the vulnerability, and what they gain when doing so
These issues can be exploited by any process running with low privileges. It allows them to bypass the AppBound Encryption mechanism. Furthermore, it allows a low-privilege user to decrypt anything encrypted with DPAPI from the SYSTEM user.
The cause
What version of Chrome have you found the security issue in?
127 stable and above
Is the security issue related to a crash?
No
Choose the type of vulnerability
Permissions Bypass
How would you like to be publicly acknowledged for your report?
ari
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
Impact
A low-privilege user could decrypt cookies and other sensitive data protected by App-Bound Encryption, and also decrypt anything encrypted with DPAPI by the SYSTEM user, though the attack takes several hours.
What the attacker needed
Low-privilege local access; Windows Event Viewer access; several hours of time
How it was found
- Modify a DPAPI blob's ciphertext to cause invalid padding.
- Submit the modified blob to the elevation service for decryption.
- Observe the error event in Windows Event Viewer to determine if padding was valid.
- Repeat the process to gradually decrypt the blob byte by byte.
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.
App-Bound Encryption is a Chrome feature that protects cookies and other data from being stolen by malware on the same computer. The researcher found that a low-privilege user can trick a Windows service into revealing whether a guess about the encrypted data is correct, and by repeating this many times, decrypt the data without knowing the key.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.