Anti-Virus Vulnerabilities: Who’s Guarding the Watch Tower?
Anti-malware products on Windows used insecure directories under ProgramData and vulnerable installers, allowing a standard user to redirect privileged file operations or load malicious DLLs. This could lead to full privilege escalation on the local system.
cyberark.com
Published on cyberark.com
This blog entry is a special anti-malware edition showcasing how the most common bugs security products suffer from can allow a standard user to escalate into a privileged user. What we found through our research was that every major anti-malware vendor that we tested could be exploited.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the root cause is that privileged processes access files or directories in locations writable by standard users without proper impersonation or permission checks, and installers load DLLs from user-writable directories.
What the attacker needed
Local user access; ability to create files in ProgramData; run installer with admin rights
The fix
The vulnerabilities were fixed by changing DACLs before usage, correctly impersonating users, updating installation frameworks, and using LoadLibraryEx with safe search flags.
How it was found
- Create the target directory under ProgramData before the privileged process runs, so it inherits permissive permissions.
- Replace the directory with a mount point or symbolic link pointing to a sensitive location.
- Trigger the privileged process to write to or delete files in that directory, causing arbitrary file creation or deletion.
- For DLL hijacking, place a malicious DLL in the installer's execution directory or in a user-writable ProgramData directory used by the installer.
- Run the installer with elevated privileges, causing it to load the malicious DLL and execute attacker code.
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 write-up has not been written yet. The Original tab links to the source.
Anti-virus programs run with high privileges to protect the computer. If they use folders that normal users can write to, a normal user can trick the anti-virus into deleting or creating files with high privileges, or into loading a malicious library. This lets the user gain administrator rights.
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.