Skip to content
UI spoofing Write-up Intermediate

Kaspersky in the Middle – what could possibly go wrong?

Kaspersky Internet Security intercepts HTTPS traffic and replaces certificate warning pages with its own, which can be clickjacked to make users accept invalid certificates. It also injects a script into web pages that, in Microsoft Edge, loads a frame from the visited domain and allows a malicious site to run arbitrary JavaScript in that domain's context.

Wladimir Palant Follow

Published on palant.info

2019-08-19 Security/Kaspersky/Antivirus 11 mins

Wladimir Palant, on palant.info

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 certificate warning page and injected URL Advisor frame lacked protections against clickjacking and did not validate data received via postMessage, allowing a malicious site to control the link target.

Impact

An attacker could intercept HTTPS traffic and take over accounts, but the Universal XSS was limited to Microsoft Edge and the clickjacking required user interaction.

What the attacker needed

Victim uses Kaspersky Internet Security; attacker can intercept network traffic; victim clicks a link or visits a malicious site

The fix

Kaspersky fixed the three issues in April 2019 (KIS 2019 Patch E), adding HSTS support and presumably hardening the warning page and frame.

How it was found

  1. Set up a malicious Wi-Fi hotspot or otherwise intercept the victim's traffic.
  2. Serve a fake captive portal page that embeds Kaspersky's certificate warning for a target site in an invisible frame.
  3. Position the frame so only the 'I understand the risks and wish to continue' link is visible.
  4. When the victim clicks, they see a generic confirmation pop-up and click 'Continue'.
  5. The invalid certificate is accepted, allowing the attacker to intercept HTTPS traffic.

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.

When you visit a secure website, your browser checks a certificate to confirm it is genuine. Kaspersky antivirus sits between you and the website, so it shows its own warning page if the certificate is bad. The researcher found that a malicious website can trick you into clicking the 'continue anyway' button on that warning page, and can also make Kaspersky's injected code run harmful JavaScript on other sites.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More by Wladimir Palant

View all

7 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.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.