React.js Conf 2016 - Lightning Talks - Elie Rotenberg
Channel:Meta Developers · Length:4:39 · Published:2016-02-26 · Views:3584
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
- Penn and Teller on Vaccinations · UltraMiraculous · 1:31
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- The Problem with Time & Timezones - Computerphile · Computerphile · 10:12
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Pete Hunt: React: Rethinking best practices -- JSConf EU · JSConf · 29:31
- Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 · ReactEurope · 30:40
- Hey Underscore, You're Doing It Wrong! · InfoQ · 36:30
- Chris McCord - Keynote: Phoenix LiveView - Interactive Apps without Javascript - ElixirConf EU 2019 · Code Sync · 1:12:41
- OAuth 2.0 and OpenID Connect (in plain English) · OktaDev · 1:02:17
- Monktoberfest 2016: Bryan Cantrill - Oral Tradition in Software Engineering · RedMonk Tech Events · 47:59
- Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ... · JSConf · 35:12
- RiftSketch: Live coding in VR with the Oculus Rift, Firefox WebVR, JavaScript and Three.js · Brian Peiris · 10:36
- Interactive programming Flappy Bird in ClojureScript · Bruce Hauman · 6:22