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.
Originally disclosed on Mozilla
- Fixed in 5 days
- Paid in 10 days
- Disclosed after 5 days
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.
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
- Download the attached proof-of-concept HTML file.
- Launch a Firefox build compiled with AddressSanitizer.
- Open the proof-of-concept file in that browser.
- 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.