Skip to content
Memory corruption Disclosed report Advanced

ASAN Arbitrary-Address-Read Crash and Heap Overflow Crash

Opening a crafted HTML file in an ASAN-instrumented Firefox with custom elements enabled caused a crash, reported as either an arbitrary-address-read or a heap overflow. The text does not explain the underlying flaw or what an attacker could achieve beyond crashing the browser.

zhanghanming Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 7 days
  • Paid in 18 days
  • Disclosed after 7 days
Text
Created attachment 8924440
crash-AAR.html

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce:

1.	launch a ASAN firefox or nightly firefox;
2.	make sure “dom.webcomponents.customelements.enabled” is true in “about:config”
3.	open attachment html file.
4.	Firefox should be crash now.



Actual results:

Firefox ASAN Crash with AAR or Heap Overflow


Expected results:

Not Crash

The original report as published on Mozilla's Bugzilla, by zhanghanming. 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

What the attacker needed

ASAN or Nightly Firefox build; custom elements preference enabled; victim opens the crafted page

How it was found

  1. Launch an ASAN or Nightly build of Firefox.
  2. Enable the custom elements preference in about:config.
  3. Open the attached HTML file.
  4. Observe the browser crash.

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 crash report like this shows that a web page can make the browser fall over in a memory-unsafe way. ASAN is a debugging build that shouts loudly when code reads or writes memory it should not, which is often a stepping stone to running attacker code. Here the reporter only shows the crash, not how it could be turned into anything worse.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by zhanghanming

View all

1 more disclosed report, 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.