Bypass Chrome Ad-Heavy detection mechanism
Chrome's heavy ad intervention tracks network usage per ad frame, but a page can delegate its fetch requests to a SharedWorker, whose bandwidth is not counted against the ad unit. An attacker could therefore serve memory- and CPU-hungry ads that keep loading large resources without Chrome killing the frame.
The Chrome Ad-Heavy mechanism prevents attacks against malware that may masquerade as ads. Researchers have discovered a vulnerability in the way Chrome tracks Ad-Heavy that allows malicious ad authors to place memory- and CPU-hungry ads without being “killed” by Chrome’s Ad-Heavy detection mechanism.
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 heavy ad intervention only accounts for network usage attributed to the ad frame itself, so requests made by a SharedWorker on the frame's behalf escape the accounting.
Impact
An attacker could run ads that consume large amounts of bandwidth and memory without Chrome's heavy ad intervention stopping them, on all Chrome versions that support the feature.
What the attacker needed
Chrome 92.0.4515.159 or higher; victim views a page serving the ad
How it was found
- Load the main page, which creates an iframe pointing at the ad unit.
- Confirm in DevTools that the iframe is highlighted as an ad frame.
- The ad unit replaces window.fetch with a polyfill that posts the URL to a SharedWorker.
- The SharedWorker performs the fetch and sends the response back via postMessage.
- The ad unit downloads a large file repeatedly without triggering the intervention.
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.
Chrome tries to stop abusive ads that use too much data or processing power by watching how much an ad frame downloads and then shutting it down. A SharedWorker is a background script that several pages can share, and Chrome was not counting its downloads against the ad. So an ad could push its heavy downloads through that background script and avoid being shut down.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.