<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>18689</bug_id>
          
          <creation_ts>2008-04-22 18:11:57 -0700</creation_ts>
          <short_desc>Reproducible crash when writing a document into itself</short_desc>
          <delta_ts>2011-02-03 09:33:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>312.x</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15123</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Piper">mark.piper</reporter>
          <assigned_to name="WebKit Security Group">webkit-security-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>christopher.reiss</cc>
    
    <cc>mark.piper</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78600</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Piper">mark.piper</who>
    <bug_when>2008-04-22 18:11:57 -0700</bug_when>
    <thetext>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 --- 
&lt;body&gt;
AAAAAAAA

&lt;script&gt; document.writeln(window.document.body.innerHTML);&lt;/script&gt;

&lt;/body&gt;
--- end html file ---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78815</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-04-24 15:11:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/5888128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79226</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-04-29 10:04:29 -0700</bug_when>
    <thetext>Reproducible crash -&gt; P1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332373</commentid>
    <comment_count>3</comment_count>
    <who name="chris reiss">christopher.reiss</who>
    <bug_when>2011-01-11 08:58:04 -0800</bug_when>
    <thetext>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&apos;ll have a patch for 15123 soon, suggest marking this bug as duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344740</commentid>
    <comment_count>4</comment_count>
    <who name="chris reiss">christopher.reiss</who>
    <bug_when>2011-02-03 08:38:00 -0800</bug_when>
    <thetext>This bug is closed by http://trac.webkit.org/changeset/77333</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344778</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-03 09:33:55 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 15123 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>