Skip to content
Access control Disclosed report Advanced CVE-2019-15685

Unauthorized command execution in Web protection component of Anti-Virus products family [IE]

When the Kaspersky add-on for Internet Explorer runs, its script shares the page's context, allowing a webpage to intercept String.indexOf calls and access Kaspersky's command interface. This lets the page disable features like Anti-Banner and Private Browsing, or add URLs to the blocklist.

palant Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 7 months
  • Paid in 13 days
  • Disclosed after 11 months

Summary When Kaspersky add-on is installed in Internet Explorer, arbitrary webpages can take control of the Kaspersky command interface and disable parts of the functionality for example.

Description Unlike with https://hackerone.com/reports/470544, when the Kaspersky add-on is installed in Internet Explorer, Kaspersky doesn't inject its script directly into the webpage, so the webpage cannot re-execute it. However, this script is still running in the same context as the webpage. While provisions have been made to prevent manipulation of some JavaScript objects such as WebSocket, other objects have not received the same treatment. In particular, a website can intercept String.indexOf() calls made by Kaspersky's script and gain access to its namespace this way. As a result, webpages can get full access to Kaspersky's command interface which allows disabling Anti-Banner and Private Browsing functionality for example (either completely or on specific sites), adding URLs to the blocklist and much more. Worse yet: by exposing Kaspersky's internal processing to the web, bugs in this processing code will turn into Remote Code Execution vulnerabilities allowing websites to execute code with the privileges of the SYSTEM user (I haven't explored this possibility further).

Environment

  • Scope: Application
  • Product name: Kaspersky Internet Security
  • Product version: 19.0.0.1088
  • OS name and version (incl SP): Windows 10.0.17134
  • Attack type: Command Injection
  • Maximum user privileges needed to reproduce your issue: no privileges

Steps to reproduce

  1. Go to Kaspersky settings and make sure that Anti-Banner and Private Browsing features are turned on.
  2. Download the attached server.py and disable_features2.html to some directory on your computer and run server.py (Python 3 required). This is a very rudimentary HTTPS server running on https://localhost:5000/ with an invalid certificate, you could use some other web server as well.
  3. Edit the file %WINDIR%\sysnative\drivers\etc\hosts as administrator and add the following line: 127.0.0.1 www.google.example.com. Normally, you would just use a subdomain of a domain you own and a valid certificate - the host name has to start with "www.google." for Kaspersky's script to be injected there.
  4. Go to https://www.google.example.com:5000/disable_features2.html with Internet Explorer (override warning about invalid certificate).
  5. Check Kaspersky settings and note that Anti-Banner and Private Browsing features are now disabled.

Impact

Websites gain full control of Kaspersky's command interface and can disable or manipulate its functionality. They can also attack potential vulnerabilities of the avp.exe process running with elevated privileges.

The original report as published on HackerOne, by palant. 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 Kaspersky script runs in the same JavaScript context as the webpage without isolating its internal objects, so the page can intercept method calls like String.indexOf to reach the script's namespace.

Impact

Websites can fully control Kaspersky's command interface, disabling or manipulating its features, and could potentially exploit bugs in the privileged avp.exe process for remote code execution.

What the attacker needed

Kaspersky add-on installed in Internet Explorer; Victim visits a malicious webpage; Hostname starts with 'www.google.'

How it was found

  1. Ensure Anti-Banner and Private Browsing are enabled in Kaspersky settings.
  2. Run a local HTTPS server hosting the provided HTML file.
  3. Add a hosts file entry mapping a hostname starting with 'www.google.' to localhost.
  4. Open the HTML page in Internet Explorer and accept the certificate warning.
  5. Check Kaspersky settings to see that Anti-Banner and Private Browsing are disabled.

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.

A security product adds a script to web pages in Internet Explorer to protect you. That script runs in the same space as the page's own code, so the page can watch and change how the script works. By doing so, the page can reach the product's controls and turn off protections.

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.

More by palant

View all

12 more disclosed reports, best first.

More from Kaspersky

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.