r/programming • • Aug 12 '17

Reverse engineering PopUnder trick for Chrome 60

https://www.youtube.com/watch?v=PPzRcZLNCPY
50 Upvotes

6 comments sorted by

4

u/siranglesmith Aug 12 '17

You might be able to defeat the antidebugger thing by putting a conditional breakpoint on the debugger statement with the condition set to false. (if it doesn't eval a new function each time)

2

u/AyrA_ch Aug 12 '17

The easiest way to solve this is probably to implement a rule that prevents mouseup or keyup from firing when there was no down event.

2

u/razialx Aug 14 '17

A while back the chrome devs removed the ability to set the pdf plugin to run on demand. I discussed it with the dev who made the change. He insisted that there weren't security issues because it runs in a sandbox. At least them I could entirely disable it but I think you can't anymore because they removed chrome://plugins. Sigh. Every extra thing you add is more surface area for vulnerabilities. Especially PDFs. Hell... I love SVG but I don't trust it from a security perspective.

1

u/[deleted] Aug 13 '17

It's kinda scary that this trick only worked on windows because the platform had different mouse event logic. It should be standardized cross-platform more to prevent fingerprinting of user agents.

0

u/[deleted] Aug 12 '17

[deleted]

1

u/AyrA_ch Aug 12 '17

Or a button you can click that dynamically replaces all variables with the object they refer to

1

u/bloody-albatross Aug 12 '17

Similar for strings. e@Window and s@"addEventListener" or something. Maybe it should to be enabled per variable.