Skip to content
DoS Disclosed report Advanced CVE-2024-7522

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.

Irvan Kurniawan Follow

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

  1. Download Firefox ASan
  2. Visit attached testcase.html
  3. Firefox ASan tab crash with output AddressSanitizer: heap-buffer-overflow

The original report as published on Mozilla's Bugzilla, by Irvan Kurniawan. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Download Firefox ASan
  2. Visit attached testcase.html
  3. 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.

More by Irvan Kurniawan

View all

72 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.