Skip to content
Access control Advisory Advanced

Google Chrome AddGenericPassword infomation overwrite vulnerability

Chrome's keychain entry for its encryption key is created without explicit access controls, so macOS defaults allow any same-user process to overwrite the stored value. An attacker with local user access could replace the key, causing Chrome to encrypt new passwords, cookies and tokens with a key the attacker knows, which can then be decrypted offline.

Cisco Talos

Originally disclosed on Cisco Talos

Medium 5.3 View original

An infomation overwrite vulnerability exists in the AddGenericPassword functionality of Chrome 148.0.7778.216 (Mac arm64). A keychain write from a same-user process can overwrite Chrome’s encryption key, leading to disclosure of sensitive information.

The author, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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 Chrome did not specify access control attributes when adding the keychain item, so macOS defaults left the encrypt permission open to any application, and the update path never tightens the ACL.

Impact

A local attacker could overwrite Chrome's encryption key and then decrypt newly stored passwords, cookies and OAuth tokens offline; the user keychain must be unlocked, but it usually is during a normal GUI session.

What the attacker needed

Local process as the same user; user keychain unlocked

How it was found

  1. Run a process with the same user privileges as the logged-in user.
  2. Make a keychain API call that overwrites the Chrome Safe Storage entry value.
  3. Wait for Chrome to launch and read the attacker-controlled value.
  4. Derive the AES key from the known value and decrypt the Chrome databases offline.

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.

Chrome on a Mac keeps a secret value in the system keychain, and uses it to lock up saved passwords and cookies. The report says that because Chrome did not set its own protection rules when creating that keychain item, another program running as the same user can replace the secret. If that happens, Chrome starts using the attacker's secret, so the attacker can later unlock the newly saved data.

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.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.