AddressSanitizer: heap-buffer-overflow in GetIntegerValue nsAttrValueInlines.h
A heap-buffer-overflow occurs in GetIntegerValue when a page sets designMode to on, changes a font element's size, and then runs execCommand with selectAll, createLink, and fontSize. An attacker could crash the browser tab, causing a denial of service.
Originally disclosed on Mozilla
- Fixed in 17 days
- Paid in 22 days
- Disclosed after 17 days
Created attachment 9411604 testcase.html
After set document.designMode to on, set font element size, then execCommand to run "selectAll", "createLink", and "fontSize".
On Firefox ASan, the tab crash with output AddressSanitizer: heap-buffer-overflow in GetIntegerValue with READ of size 4
Steps to reproduce
- Download Firefox ASan
- Visit attached testcase.html
- Firefox ASan tab crash with output AddressSanitizer: heap-buffer-overflow
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an out-of-bounds read in GetIntegerValue when handling font size values during editing commands, but the text does not state the exact coding mistake.
Impact
An attacker could crash the Firefox tab, causing a denial of service; the text does not claim code execution.
What the attacker needed
Firefox ASan build; victim visits a crafted page
How it was found
- Download Firefox ASan
- Visit attached testcase.html
- Firefox ASan tab crash with output AddressSanitizer: heap-buffer-overflow
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A heap-buffer-overflow is a memory safety bug where a program reads or writes past the end of a reserved block of memory. Here, a web page can trigger this bug in Firefox by using a built-in editing feature in a specific sequence, which makes the browser tab crash. This is a denial-of-service issue because it only crashes the tab, not run attacker code.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.