popup-blocker icon indicating copy to clipboard operation
popup-blocker copied to clipboard

Popup ad site, iframe window.open and avoidance measures - defeats popup-blocker

Open JonasNo opened this issue 7 years ago • 5 comments

Example: https://www.iwatchonline.cr/episode/58490-wynonna-earp-s02e10

Click on the left white space side. It will redirect to an ad page and the popup will contain the previous site (the above one).

It use obfuscation and window.open, assume using an iframe to get the original function. I put event listener breakpoints on Mouse: click, mousedown, mouseup and contextmenu. You'll find the call to window.open in the function above where the breakpoint hits. (Expand the Closure and you'll see the open and text "admaven_pop_".

If you block IFRAME creation via createElement, the ad site opens in a new tab instead. Unknown how since window.open is hooked and disabled.

JonasNo avatar Aug 13 '17 00:08 JonasNo

Is this on Firefox?

schomery avatar Aug 14 '17 13:08 schomery

No this is in Chrome.

Firefox usually don't have these kinds of problems because its API doesn't hinder extension developers. Enables Adblock (and NoScript) to block such nastiness.

JonasNo avatar Aug 17 '17 07:08 JonasNo

So without any adblocker I get this screen.zip

schomery avatar Sep 02 '17 09:09 schomery

Those ads are sneaky that way, they change behavior and scripts. What software are you using to record that? Could be useful for demonstration in the future.

JonasNo avatar Sep 09 '17 06:09 JonasNo

You did test it under incognito with devtools->Applications tab->Clear Storage->Clear site data button clicked, yes?

JonasNo avatar Sep 09 '17 06:09 JonasNo