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

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

Kaspersky's web protection injects a script into pages when no browser extension is present, and the page can discover and abuse that script's command interface. A malicious site could disable or alter protection features and potentially reach bugs in the privileged process.

palant Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 7 months
  • Paid in 14 days
  • Disclosed after 11 months

Summary When no browser extension is installed, arbitrary webpages can take control of the Kaspersky command interface and disable parts of the functionality for example.

Description Without a browser extension (e.g. because extension installation not confirmed by user, unsupported like in MS Edge or uninstalled via https://hackerone.com/reports/470519), Kaspersky fall back to injecting its script directly into the webpage. There are provisions to prevent the webpage from discovering the address of these script, which are trivially circumvented by the webpage downloading itself. There are also provisions to inject the script before any webpage scripts can run, so that unmanipulated references to various JavaScript objects can be stored. These provisions can also be circumvented by manipulating the objects and rerunning Kaspersky's script then. 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 I tested this with Chrome 71, it should work with any other browser as well however.

  1. Go to Kaspersky settings and make sure that Anti-Banner and Private Browsing features are turned on.
  2. Download attached server.py and disable_features1.html to some directory on your computer and run server.py (Python 3 required). This is a very rudimentary HTTP server running on http://localhost:5000/, 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 - the host name has to start with "www.google." for Kaspersky's script to be injected there.
  4. Make sure that no Kaspersky browser extension is installed in your browser. If it is, disable the extension and restart the browser.
  5. Go to http://www.google.example.com:5000/disable_features1.html with your browser.
  6. 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 injected script's command interface is reachable from page JavaScript, and the hiding and early-injection protections can be bypassed by the page.

Impact

Websites gain full control of Kaspersky's command interface and can disable or manipulate its functionality, and could attack potential vulnerabilities of the privileged avp.exe process.

What the attacker needed

No Kaspersky browser extension installed; victim visits a malicious webpage; hostname starts with the required prefix

How it was found

  1. Turn on Anti-Banner and Private Browsing in Kaspersky settings.
  2. Run a local web server serving the proof-of-concept page.
  3. Add a hosts entry mapping a hostname starting with the required prefix to localhost.
  4. Ensure no Kaspersky browser extension is installed, disabling it and restarting if needed.
  5. Open the proof-of-concept page in the browser.
  6. Check Kaspersky settings and see that both features are now 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.

Anti-virus software often adds a small script to every web page you visit so it can block banners or trackers. The researcher found that a website can find that script and use it to send commands to the anti-virus program. That lets the site switch off some protections, and could be worse if the program has other bugs.

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.