Browser exploitation methodology and awareness (Tier 2, lab-only) — JS-engine (V8/JSC/SpiderMonkey) bug classes, DOM/UAF, the addrof/fakeobj primitive model, and modern mitigations (sandbox, V8 sandbox/pointer compression, CFI). Use to understand and assess browser 0-day/n-day exploitability in a lab. Real exploitation is lab-only; on engagements, prefer version→known-CVE mapping.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Browser Exploitation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-browser-exploitation)
---
name: browser-exploitation
description: Browser exploitation methodology and awareness (Tier 2, lab-only) — JS-engine (V8/JSC/SpiderMonkey) bug classes, DOM/UAF, the addrof/fakeobj primitive model, and modern mitigations (sandbox, V8 sandbox/pointer compression, CFI). Use to understand and assess browser 0-day/n-day exploitability in a lab. Real exploitation is lab-only; on engagements, prefer version→known-CVE mapping.
---
# Browser Exploitation (methodology / awareness, lab)
Browser exploitation is specialist, high-mitigation work. On a normal pentest you almost never write a browser 0-day — you map the browser/engine version to known CVEs. This skill explains the bug classes and primitive model for lab research and for reasoning about exploitability. Lab-only for actual exploitation.
## Trigger phrases
`browser exploitation, v8 exploit, javascript engine, addrof fakeobj, jit bug, type confusion browser, dom uaf, renderer exploit, chrome exploit, spidermonkey`
## Execution gate
Record in `./.zazy/scope.md`:
(a) **Lab/authorized research target?** → yes = study/build PoCs in an isolated lab build.
(b) No → **version→CVE mapping only**: fingerprint the exact browser/engine build and map to published CVEs/patch level (→ `vulnerable-components`); do not develop or run renderer exploits against client/production systems. Full exploitation is lab-only.
## Method (lab)
1. **Fingerprint:** exact browser + engine version/build (UA, `chrome://version`, feature detection); map to known CVEs and whether a public PoC exists.
2. **Bug classes (engine):**
- **JIT type-confusion** — bounds-check elimination / `Array.prototype` side-effects desyncing speculated types → OOB access.
- **UAF** in DOM/renderer object lifetimes.
- **OOB read/write** in typed-array/ArrayBuffer handling.
- **Integer issues** in length/index computations.
3. **Primitive model:** turn the bug into **addrof** (leak an object's address) and **fakeobj** (materialize a controlled object), then an arbitrary read/write (often via a crafted `ArrayBuffer`/`DataView` backing store), then control of execution (hijack a code pointer / JIT region).
4. **Mitigations to account for:** per-renderer sandbox (escape is a separate bug), ASLR, CFI/CFG, **V8 sandbox + pointer compression** (constrains raw-pointer corruption), isolated heaps, `MiraclePtr`/backup-ref-ptr for UAF, site isolation.
5. **Lab PoC:** reproduce a known CVE against the matching build to understand the chain; keep payloads benign (e.g., pop a lab marker), not weaponized delivery.
## Modern / rare techniques
- **[NEW] V8 sandbox-aware exploitation** — in-sandbox corruption no longer trivially yields arbitrary process memory; note the added bug requirement.
- **[RARE] JIT-spray / WASM** as a code-pointer or RWX surface where still applicable.
- **[NEW] `MiraclePtr`/BRP** materially reducing exploitable UAF in Chrome — factor into exploitability verdicts.
- **[RARE] Full chain = renderer bug + sandbox-escape bug** — a single renderer bug rarely means host compromise now.
## Escalation / chaining
Renderer RCE in lab → needs a sandbox escape (separate research) for host impact — Zazy does not author weaponized delivery (Tier-3). Engine internals → `reverse-engineer-anything`; crash triage → `crash-analysis`; fuzzing engines → `fuzzing`. Client-side web bugs (XSS/DOM) are a different domain → `web-client-side`/`dom-xss`.
## Backend & tooling
Kali/WSL-Kali lab with a debug/ASan engine build: `d8`/`jsc`/`js` shells, `gdb`+`gef`, engine source, public CVE PoCs, `pwndbg`. Isolated VM; never run renderer PoCs on the engagement host.
## Verification (background, before reporting)
For exploitability claims, reproduce the known-CVE PoC against the matched build (not just version inference), and confirm mitigations' effect. On engagements without a lab, verify only the version→CVE mapping with authoritative advisories. Report what you reproduced or confirmed by version.
## Evidence
Engine version→CVE mapping, (lab) the reproduced PoC + primitive demonstration with a benign marker, and mitigation analysis. Remediation: keep browsers/engines fully patched and auto-updating, enforce site isolation/sandbox, and (for app owners) strong CSP and avoiding risky embedded web content.