Hacking your own antivirus for fun and profit (Safe browsing gone wrong)
Bullguard's safe browsing feature injected search results into Google, Yahoo and Bing pages without sandboxing, so JavaScript from a malicious result ran in the search engine's origin. An attacker could use this to perform reflected XSS on those domains and hijack session cookies if the victim used Bullguard.
Martin Thirup Christensen Follow
Published on medium.com
Bullguard has a safe browsing feature to prevent their users from entering websites that contain malware, phishing or other malicious content. The idea in itself is great, but earlier this year I made discovery about, how this feature can be abused for malicious purposes.
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
Impact
If the victim uses Bullguard, an attacker could run JavaScript in the origin of Google, Yahoo or Bing and potentially hijack the victim's session cookies for those services.
What the attacker needed
Victim uses Bullguard; victim clicks a crafted search link; attacker controls a site with XSS
How it was found
- An attacker inserts a malicious vector to perform session hijacking through a domain vulnerable to XSS in a GET parameter.
- The attacker gets enough clicks and abuses SEO so the attack vector appears as a result on Google, Yahoo and Bing.
- The attacker sends a phishing link that shows the malicious JavaScript in the results.
- The attacker performs a successful session hijacking attack against the victim's Google, Microsoft or Yahoo account.
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 search on Google, the results page normally shows only text and links. Bullguard's safe browsing feature added its own warning or approval next to each result, but it did so in a way that let any JavaScript inside a result run as if it were part of Google itself. That means a malicious search result could steal your Google cookies, which is like stealing your logged-in session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.