Skip to content
XSS Write-up Intermediate

Dismantling BullGuard Antivirus’ online protection

BullGuard Antivirus used a hardcoded token to disable its malicious website blocking, and its Secure Browser had multiple XSS vulnerabilities in its user interface. An attacker could bypass protection by adding a fixed parameter to a malicious URL, and could execute JavaScript in the browser's UI to spy on the user or crash the browser.

palant.info

Published on palant.info

2020-07-06 Security/Bullguard/Antivirus 8 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 developers hardcoded a security token and failed to escape user input in the browser's user interface.

Impact

An attacker could bypass the malicious website blocking by crafting a URL with the hardcoded token, and could execute JavaScript in the Secure Browser's UI to spy on the user, crash the browser, or potentially achieve remote code execution, though defense in depth limited the latter.

What the attacker needed

BullGuard Antivirus installed; victim visits a malicious link; user clicks on a blocked pop-up notification

The fix

The protection bypass was fixed by using a session-dependent token, and the XSS vulnerabilities were fixed in a hotfix.

How it was found

  1. Add a malicious domain to the block list in BullGuard settings.
  2. Navigate to the blocked domain and observe the warning page.
  3. Click 'More details' and find the 'Continue to website' link.
  4. Note that the link includes a gid parameter with a fixed value.
  5. Change any malicious URL to include the same gid parameter to bypass blocking.

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.

Antivirus software often tries to block bad websites. BullGuard did this by adding a special code to the web address, but the code was the same for everyone and could be guessed. Also, the browser that comes with BullGuard had bugs that let a website run its own code inside the browser's buttons and bars, which could let it watch what you do or make the browser crash.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.