Foxit Reader Updater improper certificate validation privilege escalation vulnerability
The Foxit Reader updater service checked only that the updater executable had a signature, not that the signature was valid or from a trusted source. A low-privilege user could replace the updater with a self-signed executable, which the service then ran with SYSTEM privileges, leading to privilege escalation.
A privilege escalation vulnerability exists in the Foxit Reader 2024.2.0.25138. The vulnerability occurs due to improper certification validation of the updater executable before executing it.
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
The updater service used CryptQueryObject to check for a signature but did not validate the certificate chain or trust, so any signed executable was accepted.
Impact
A low-privilege user could execute arbitrary code with SYSTEM privileges, resulting in full elevation of privilege on the machine.
What the attacker needed
Local access to the machine; ability to sign an executable with a self-signed certificate; user clicks Check For Update
The fix
The vendor released updated versions that presumably validate the certificate properly.
How it was found
- Set an oplock on the updater executable file in the user's AppData folder.
- Click 'Check For Update' so the reader tries to overwrite the file but is blocked by the oplock.
- In the oplock callback, wait for the new updater file to be created, then replace it with a user-controlled signed executable.
- The update service calls CryptQueryObject on the replaced executable, which succeeds because it is signed.
- The update service calls CreateProcessAsUser to run the replaced executable with SYSTEM privileges.
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 Foxit Reader updates itself, a background service running with high system rights runs a small updater program. The service only checked that the updater file had some digital signature, not that the signature was from Foxit. A normal user could swap that file for their own signed program, and the service would run it with high rights, letting the user take over the computer.
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.