Bug 18689

Summary: Reproducible crash when writing a document into itself
Product: WebKit Reporter: Mark Piper <mark.piper>
Component: DOMAssignee: WebKit Security Group <webkit-security-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: abarth, ap, christopher.reiss, mark.piper, sam
Priority: P1 Keywords: InRadar
Version: 312.x   
Hardware: All   
OS: OS X 10.5   

Mark Piper
Reported 2008-04-22 18:11:57 PDT
The following script appears to crash any webkit based browser when provided by an HTML file or delivered via a XSS etc. Additional abstract behaviour can be observed by placing a large HTML payload after the body tag. --- begin script --- document.writeln(window.document.body.innerHTML); -- end script -- --- begin html file --- <body> AAAAAAAA <script> document.writeln(window.document.body.innerHTML);</script> </body> --- end html file ---
Attachments
Mark Rowe (bdash)
Comment 1 2008-04-24 15:11:21 PDT
Alexey Proskuryakov
Comment 2 2008-04-29 10:04:29 PDT
Reproducible crash -> P1.
chris reiss
Comment 3 2011-01-11 08:58:04 PST
This appears to have the same root cause as https://bugs.webkit.org/show_bug.cgi?id=15123 - there is no recursion check in WebCore::Document::write( ). I'll have a patch for 15123 soon, suggest marking this bug as duplicate.
chris reiss
Comment 4 2011-02-03 08:38:00 PST
Adam Barth
Comment 5 2011-02-03 09:33:55 PST
*** This bug has been marked as a duplicate of bug 15123 ***
Note You need to log in before you can comment on or make changes to this bug.