r/javascript • u/LiveOverflow • Aug 11 '17
Reverse engineering PopUnder trick for Chrome 60
https://www.youtube.com/watch?v=PPzRcZLNCPY20
8
u/monsto Aug 12 '17
I've been struggling with JS...
This vid, thru your highly explanatory approach, showed me that I'm not struggling with the language itself, but with my own assessment of how much I thought I knew.
I was able to follow everything you said. I mean, like being a fan of a sport, I can understand the finer points of what's going on without necessarily being able to do it myself.
Great video.
6
u/Dark_Prism Aug 12 '17
I love this. I want this to be a continuing series where you battle against the shady pop-under developer. He continues to discover new and interesting ways to circumvent the blockers while you continue to discover new and interesting ways to debug and deconstruct his code. Eventually he will run out of options and be defeated, thereby being forced to reveal himself.
But there's a twist!
.
.
.
.
.
.
It was Avi Drissman the whole time!
3
u/dartmanx Aug 12 '17
And he would have gotten away with it too! If it weren't for you kids and that mangy mutt!
2
1
1
u/Daniel15 React FTW Aug 12 '17 edited Aug 12 '17
This is a great video! Thank you so much for posting it :D
Since it's using a mouseup handler, does that mean that the new tab would be more obvious if you just hold down the mouse button without releasing it?
1
1
1
u/Bamboo_the_plant Aug 12 '17
This is debugging on another level. Very eye-opening. Link to the author's subreddit here: /r/LiveOverflow
1
0
Aug 11 '17
[deleted]
12
u/LiveOverflow Aug 11 '17
thanks for checking it out despite the points :)
I was hoping that /r/javascript has some more advanced tips and tricks for me.
2
u/joshTheGoods Full Stack JavaScript Aug 14 '17
Few quick tips... Check out Ahamed Nafeez's talk here. He talks about generic vulnerabilities (namely typical XSS stuff), but he hits on a few points that are useful to you around monitoring native methods. He also released a library that might be useful to you: Hookish.
Lastly, I wrote a security application using DOM proxies years ago and ended up having a team rewrite it all using MutationObservers. Might be a better API than manually proxying native methods.
1
u/LiveOverflow Aug 15 '17
thanks! But I checked it out and it breaks the demo site:
Uncaught TypeError: zBCa.l is not a function
Ah yeah, MutationObservers could be really cool for the iframe/object/... parts
44
17
u/[deleted] Aug 11 '17
Very informative.
So for Google to fix this, could they not just require that any mouseup event for a given window require a corresponding mousedown?