React.js Conf 2016 - Lightning Talks - Elie Rotenberg

Channel:Meta Developers · Length:4:39 · Published:2016-02-26 · Views:3584

Watch on YouTube

Summary

A five-minute lightning talk from React.js Conf 2016 by Elie Rotenberg on protecting the DOM from tampering. It shows how React tree obfuscation (react-armor) can shuffle class names, tags and tree structure to defeat CSS-selector-based ad blocking.

Why HN recommends it

Cited as the origin of react-armor style DOM obfuscation, and as a favourite short talk from the conference.

My favourite talk was only 5 minutes long — HN, 2016

Web development · Software (other)

Subtitles (excerpt)

[Applause] hi so my name is El rotenberg and my talk is about protecting your D from tempering using cryptographic trade transforms so here's a problem I'm trying to solve um on the web third party script can violate the invariance of react and they do this by mutating the dumb behind our back this can be caused by invasive ads uh bugie external scripts or browsers extension such as ad blockers all these sources can access the D directly by working the document object using document. query selector query selector and document. query selector Ro or injecting style tags with new CSS rules or whatever um when they start doing that bad things happens you can have performance issues uh for example when they cause uh layout thrashing you can have uh layout issues when uh new HTML nodes are inserted uh in a place where you didn't expect them and of course you have functionality issues when your app or website start behaving in a way um it wasn't meant for um this is bad because we program our apps and websites to have a certain well- defined and predictable Behavior the whole point of using react in the first place is to have our apps and website behave exactly how we describe them to behave we do not want this to be compromised by

On Hacker News

My favourite talk was only 5 minutes long and came from Elie Rotenberg[0]. He demonstrated how React can be used to completely obfuscate the DOM tree. In practice it seems somewhat malicious to do this, however there may be some legitimate use cases too. [0] [VIDEO] — iLoch, 2016-02
It reminds me of a lightning talk I gave at ReactConf some time ago :) Basically forward-shuffling the component tree to produce HTML that will be really hard to match using CSS Selectors usually found in adblockers and other DOM-targeting scripts. Code: [LINK] Video: [VIDEO] — elierotenberg, 2019-12
Something like react-armor can make cryptographically unpredictable class name, tree structure and tag name obfuscation. But it won't be enough if the ad itself is not written with the same toolkit. [LINK] [VIDEO] — hokkos, 2016-08
Or they can already do dom obfuscation like react-armor, it can make cryptographically unpredictable class name, tree structure and tag name obfuscation. [LINK] [VIDEO] — hokkos, 2016-08

Related videos