101 Chrome Exploitation — Part 0: Preface
This will be an introductory course to exploiting browsers. Not just covering a few JIT bugs and common renderer process exploits, we'll take an in-depth look at the entire browser structure, security layers and understand how a chain is built, how to assemble each part and turn memory corruptions or invalid states into exploits. And there's no better way than an introduction analyzing a complete functional full-chain up to Chrome 130!
Don't worry about understanding everything described in this preface, all the subjects covered here are for demonstration purposes only; in future articles, we'll go into more detail on each of the topics presented here. As a prerequisite you only need to have a basic knowledge of exploitation (ROP, heap corruptions such as UAF, heap-overflow, etc.) and general computer architecture (what processes are, general OS functions, OS interactions, etc.).
What will be covered
Browser Architecture Fundamentals
- Browser architecture
- Analyze process models
- Identify attack surfaces in browser components
Topics Covered
- Core Browser Components
- - Rendering engine architecture (Blink, Gecko, WebKit)
- - JavaScript engines (V8, SpiderMonkey, JavaScriptCore)
- - Network stack implementation
- Process Models and Isolation
- - Multi-process architecture evolution
- - Privilege separation boundaries
- Memory Management
- - Heap allocators in browsers (PartitionAlloc, Oilpan, jemalloc)
- - Garbage collection strategies
- - Exploitation techniques and protections
- JavaScript Engine Internals
- - JIT compilation pipeline
- - Type systems and optimizations
Practical Exercises
- Extract simple dump and identify objects from a specific cache, understanding the layout in memory from the debugger.
Common Browser Vulnerability Patterns
- Identify and classify browser vulnerabilities
- Understand vulnerability root causes
- Analyze real-world browser bugs
Topics Covered
- Memory Corruption Vulnerabilities
- - Use-after-free patterns and triggers
- - Buffer overflow scenarios in browsers
- - Type confusion in JavaScript engines
- - Heap corruption techniques
- Logic Flaws and Design Issues
- - Invalid states
- - Discrepant implementation with Spec
- Parser Vulnerabilities
- - HTML, CSS parsing edge cases
- - JavaScript parser exploitation
- - SVG and XML parsing corruptions
- Concurrency Issues
- - Race conditions in multi-process browsers
- - Time-of-check-time-of-use (TOCTOU) bugs
- - Worker thread vulnerabilities
Practical Exercises
- CVE analysis and reproduction
- Root cause analysis practice
Case Studies
List of CVEs, I'll choose interesting cases ca