Skip to content
DoS Disclosed report Intermediate

ASAN Stack-overflow on nsDisplayListBuilder::AllocateDisplayItemClipChain

A crafted HTML page caused a stack overflow in Firefox's display list builder when the page was opened, crashing the browser. The reporter attributes the crash to resizing a textarea element on the page.

zhanghanming Follow

Originally disclosed on Mozilla

  • Fixed in 5 days
  • Paid in 10 days
  • Disclosed after 5 days
Text
Created attachment 8942649
asan_output_without_symbol.txt

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

Steps to reproduce:

My Test Env:
    Linux ubuntu 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    Firefox local asan build () [build from 1/15 hg-mozilla-central source code]
ST to reproduce:
    1. download attached poc.html.
    2. launch a Firefox asan build.
    3. use open poc.html.
    4. wait a few second, asan should be crash.
    (when you open poc.html you should see a textarea contain "Ashitaka", you can drag to change it's size.This should lead a immediately crash).


Actual results:

Firefox crash.


Expected results:

No 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

Impact

Opening the page crashes the browser tab or process, which is a denial of service; the text does not claim memory corruption or code execution.

What the attacker needed

Firefox ASan build; victim opens a crafted HTML page

How it was found

  1. Download the attached proof-of-concept HTML file.
  2. Launch a Firefox build compiled with AddressSanitizer.
  3. Open the proof-of-concept file in that browser.
  4. Wait a few seconds for the crash, or drag to resize the textarea to trigger it immediately.

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 stack overflow happens when a program uses up all the small amount of memory set aside for tracking nested function calls, so it runs out of room and stops. Here, a specially made web page made Firefox crash while it was working out how to draw the page. The reporter says dragging to resize a text box on the page triggers the crash straight away.

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 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.

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.