Skip to content
Race condition Write-up Intermediate

Exploiting (Almost) Every Antivirus Software

Antivirus software performs privileged file operations during quarantine or deletion of detected threats, and a local attacker can use a directory junction or symlink to redirect those operations to arbitrary files, causing deletion or corruption of critical system or antivirus files. This can disable the antivirus or render the operating system unusable.

rack911labs.com

Published on rack911labs.com

Antivirus software is supposed to protect you from malicious threats, but what if that protection could be silently disabled before a threat can even be neutralized? What if that protection could be manipulated to perform certain file operations that would allow the operating system to be compromised or simply…

The author, on rack911labs.com

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 antivirus software performs privileged file operations on user-controlled paths without properly resolving or validating directory junctions and symbolic links, allowing a race condition to redirect those operations.

Impact

An attacker could delete critical antivirus or operating system files, disabling protection or causing a denial of service that may require a full OS reinstall; in some cases, file permission changes could lead to privilege escalation.

What the attacker needed

Local user access; ability to create junctions or symlinks; antivirus runs with high privileges

The fix

Antivirus software should perform file operations with the lowest necessary privileges and avoid acting on user-controlled paths without validating against junction or symlink redirection.

How it was found

  1. Create a folder and place a file containing the EICAR test string inside it.
  2. Wait for the antivirus to detect the file and begin its cleanup operation.
  3. Replace the folder with a directory junction (Windows) or symlink (macOS/Linux) pointing to a target directory.
  4. The antivirus, running with high privileges, follows the link and deletes or modifies files in the target directory.

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.

Antivirus programs run with high privileges to clean up threats. If they delete a file without checking whether the location has been swapped for a shortcut (a junction or symlink), an attacker can trick them into deleting something else, like a system file. This can break the antivirus or the whole computer.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.