String Allocations in Internet Explorer
summary
Examines how IE9–11 rearchitects JS string storage so common heap spray tactics fail and shows precise primitives that still work: demonstrates concat strings don't allocate, first substring flattens and allocates but with over‑provisioning, and that DOM attributes create exact‑sized BSTRs on the process heap. Delivers tooling and artifacts: IDA Python scripts (getelements.py), Windbg breakpoints, a static gzipable HTML attribute spray trick, and a released heaplib2 library, all validated on IE9–11 and shown to reliably place controlled buffers in memory.
AI-written summary · about
