Skip to content
0:00 / 0:00

#v8#discord#remotecodeexecution

Hacking Discord for $5000 Bounty

Mrgavyadha

3.8K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Linked in the descriptionv8/v8

Advanced. Deep dive for people who know the field.

92K views1 year ago2 recommendations

SecuritySystems programmingExploits and vulnerabilitiesCompilers and interpretersHow browsers work

An introduction to V8 exploit development, explaining how a type confusion bug in the JavaScript engine led to remote code execution on Discord.

Note: The Discord team acted super fast when we reported this bug and fixed it in an hour. Kudos to them. And Vimeo also fixed the issue. In this video, I’ll walk you through a super cool bug we found back in 2021 that let us get remote code execution on a computer—just by sending a message. The real goal here isn’t just to show off this bug but give you a fun intro to V8 exploit development and bug hunting. We’ll dive into stuff like how the V8 engine works, cover things like the Ignition interpreter, TurboFan, type confusion, pointer compression, pointer tagging, WebAssembly, and how the V8 heap is laid out—all leading up to building an actual exploit. Links: V8 N-day used: github.com/v8/v8/commit/fd29e246f65a7cee130e72cd10f618f3b82a… Detailed Root Cause Analysis of the bug I wrote: s1r1us.ninja/posts/v8-rca/ A great intro to speculative optimization in JS Engines: webkit.org/blog/10308/speculation-in-javascriptcore/ Introduction to TurboFan by DOAR-E: doar-e.github.io/blog/2019/01/28/introduction-to-turbofan/ - Intro - How Discord Works - Vimeo DOM XSS - V8 Exploitation - V8 N-day reversing - How Chrome executes JavaScript - How Ignition Interpreter works - Turbofan Speculative Compiler - Patch Analysis - OOB Access via Typer Confusion - ROP? - Nah! We are on Heap - The Three problems - WebAssembly for RWX Page - What's past the array? - Memory Optimization - Pointer Tagging - Pointer Compression - Making Double array OOB - Addrof Primitive - Heap Read and Write Primitive - Full Read Primitive - Full PoC - Outro?

Why it's here

2 people recommend this

freddybon Lobsters • Recommends

Hacking the Discord app for $5000 Bounty

u/Eta-Mesonin r/netsec • Recommends

Hacking Discord for $5000 Bounty