Skip to content
RCE Disclosed report Intermediate CVE-2021-22961

GlassWire 2.1.167 vulnerability - MSVR 56639

GlassWire 2.1.167 attempted to load a DLL named Wtsapi32.dll.dll from the user's PATH without verifying its signature. An attacker could place a malicious DLL in a PATH directory to achieve arbitrary code execution.

msvr Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 2 months
  • Fixed in 3 months
  • Disclosed after 6 months

Summary by the program

On May 12th Katie Lewis at Microsoft found GlassWire 2.1.167 would attempt to load Wtsapi32.dll.dll from the user's PATH (without doing any checks to see if the file is signed). GlassWire's team sent a fix that Katie Lewis confirmed solved the issue, then released an update with the fix.

The report

Arbitrary code execution vulnerability within the firewall software, GlassWire version 2.1.167

Impact

After the program is installed, on first execution, it will attempt to load Wtsapi32.dll.dll from the user's PATH (without doing any checks to see if the file is signed). Attached is a demo leveraging this vulnerability to spawn notepad.exe as well as screenshots showing the software searching the user’s PATH.

Attachments

glasswire_dlls.PNG
glasswire_dlls.PNG From the original on HackerOne

The original report as published on HackerOne, by msvr. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 the application used an unsafe DLL search path and failed to validate the digital signature of the loaded library.

Impact

An attacker could achieve arbitrary code execution by placing a malicious DLL in a PATH directory, as demonstrated by spawning notepad.exe.

What the attacker needed

GlassWire 2.1.167 installed; Attacker can write to a PATH directory; User runs GlassWire

The fix

The issue was fixed by GlassWire and confirmed by the reporter.

How it was found

  1. Install GlassWire version 2.1.167.
  2. Run the program for the first time.
  3. Place a malicious file named Wtsapi32.dll.dll in a directory on the user's PATH.
  4. The program loads the malicious DLL and executes its 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 report has not been written yet. The Original tab links to the source.

When a program starts, it may load DLLs from folders listed in the PATH environment variable. This program did not check whether the file was legitimate. An attacker could put a fake DLL there and the program would run it.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from GlassWire

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.