Skip to content
RCE Disclosed report Advanced

[Fixed] A vulnerability in KAVKIS 2020 products family allows full disabling of protection

A local attacker could inject a DLL into the Kaspersky Internet Security user interface process by using a hook with a specially named DLL that the product's injection filter did not block. By hooking certain Windows API functions, the attacker could then disable the antivirus protection before running malware.

abbadeed Follow

Originally disclosed on HackerOne

  • Triaged in 29 hours
  • Fixed in 8 months
  • Paid in 8 days
  • Disclosed after 11 months

Note! Thank you for your report. For the purposes of the further analysis of the vulnerability, that you kindly report to us, could you please fill all fields [in square brackets]. This information will help us to respond you more quickly and triage your report. Thanks a lot for your assistance.

I use Translator, T_T Sorry

Summary can turn off anti-virus functionality in an external process.

Description Use the SetWindowsHookEx function to inject the DLL. The ClientLoadLibrary was hooked to prevent injection, but dlls with specific file names were injectable(tiptsf.dll). After that, I was able to hook some WinAPIs and turn off antivirus.

Environment

  • Scope: Application
  • Product name: Kaspersky Internet Security
  • Product version:20.0.14.1085
  • OS name and version (incl SP): Windows 10 RS5
  • Attack type: Bypass
  • Maximum user privileges needed to reproduce your issue: no privileges

Steps to reproduce

  1. FindWindow and get hwnd from kaspersky internet security(avpui.exe)
  2. I have invoked the SetWindowsHookEx function to inject the DLL.
  3. After hooking the TrackPopupMenu function, send a pop-up message through PostMessage.
  4. When self-protection is turned on, it generates a new avpui.exe and then generates a Dialog that asks users to confirm. the generated process also injects dll.
  5. In the newly created avpui.exe, hook the IsDialogMessageW function and switch to a message that occurs when you click the OK button.
  6. download ransomware & run.

Impact

The bypass function can be used to turn off the antivirus before the malware is activated.

The original report as published on HackerOne, by abbadeed. 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 DLL-injection filter relied on a blocklist of file names rather than validating the loading process, so a DLL with an unexpected name could still be injected into the UI process.

Impact

An attacker with local access could disable the antivirus protection before activating malware.

What the attacker needed

Local access to the Windows machine; no special privileges needed

How it was found

  1. Find the antivirus user interface window and obtain its handle.
  2. Inject a DLL into that process using a Windows hook function.
  3. Hook the popup-menu function and send a popup message to the window.
  4. When self-protection spawns a new interface process and a confirmation dialog, inject the DLL into that new process too.
  5. Hook the dialog message function in the new process and substitute the message produced by clicking the confirm button.
  6. Download and run ransomware.

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.

Antivirus software tries to stop other programs from tampering with it. Here, the attacker found a way to slip their own code into the antivirus's own window process, because the protection only blocked certain file names. Once their code was running inside, they could switch off the protection and then run harmful software.

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 Kaspersky

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.