{"id":3122,"date":"2025-05-06T01:01:20","date_gmt":"2025-05-06T01:01:20","guid":{"rendered":"http:\/\/localhost\/?p=3122"},"modified":"2025-05-06T01:01:20","modified_gmt":"2025-05-06T01:01:20","slug":"microsoft-internet-explorer-setmousecapture-use-after-free","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=3122","title":{"rendered":"Microsoft Internet Explorer SetMouseCapture Use-After-Free"},"content":{"rendered":"<h2>Security Update News<\/h2>\n<h3>Update Information<\/h3>\n<table style=\"width:100%; border-collapse: collapse; margin-bottom: 20px;\">\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Title<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">Microsoft Internet Explorer SetMouseCapture Use-After-Free<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Update ID<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">AKB:3C7B4CF8-80C4-45A5-9363-AFAA8C364D11<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Type<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">attackerkb<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Published<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">2025-05-05T00:00:00<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Last Updated<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">2025-05-05T00:00:00<\/td>\n<\/tr>\n<\/table>\n<h3>Security Impact<\/h3>\n<table style=\"width:100%; border-collapse: collapse; margin-bottom: 20px;\">\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">CVSS Score<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">8.8<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Severity<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd; color: #ff4444; font-weight: bold;\">HIGH<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left; padding: 8px; border: 1px solid #ddd; \">Attack Vector<\/th>\n<td style=\"padding: 8px; border: 1px solid #ddd;\">NETWORK<\/td>\n<\/tr>\n<\/table>\n<h3>Affected CVEs<\/h3>\n<div style=\" padding: 15px; border: 1px solid #ddd; margin-bottom: 20px;\">\n<ul style=\"margin: 0; padding-left: 20px;\">\n<li>CVE-2012-4969<\/li>\n<li>CVE-2013-1347<\/li>\n<li>CVE-2013-3893<\/li>\n<li>CVE-2013-3897<\/li>\n<\/ul>\n<\/div>\n<h3>Update Details<\/h3>\n<div style=\"; padding: 15px; border-left: 4px solid #4CAF50; margin-bottom: 20px;\">\nUse-after-free vulnerability in the SetMouseCapture implementation in mshtml.dll in Microsoft Internet Explorer 6 through 11 allows remote attackers to execute arbitrary code via crafted JavaScript strings, as demonstrated by use of an ms-help URL that triggers loading of hxds.dll.<\/p>\n<p>**Recent assessments:**  <\/p>\n<p>**wchen-r7** at September 12, 2019 6:07pm UTC reported:<\/p>\n<p># Information<\/p>\n<p>\u201cMS13-080 also fixes a second CVE vulnerability that has been exploited in limited attacks over the  <br \/>web. This issue is a user-after-free vulnerability in CDisplayPointer triggered with  <br \/>\u201conpropertychange\u201d event handler. This exploit was found cached on a popular Javascript analysis  <br \/>website and reported to us. The exploit code for this issue, released probably around mid-September  <br \/>, uses heap-spray to allocate a small ROP chain around address 0x14141414 and is designed to target  <br \/>only IE8 running on Windows XP for Korean and Japanese language-based users\u201d \u2013 Microsoft<\/p>\n<p>This issue is a use-after-free vulnerability in CDisplayPointer via the use of a \u201conpropertychange\u201d  <br \/>event handler. To setup the appropriate buggy conditions, we first craft the DOM tree in a specific  <br \/>order, where a CBlockElement comes after the CTextArea element. There are also other ways to acheive  <br \/>the same results, for example: Replace CBlockElement with another CTextArea. One possible explanation  <br \/>for that is perhaps the second element needs to hold a reference of the parent.<\/p>\n<p>If we use a select() function for the CTextArea element, two important things will happen: a  <br \/>CDisplayPointer object will be created for CTextArea, and it will also trigger another event called  <br \/>\u201conselect\u201d. The \u201conselect\u201d event will allow us to setup for the actual event handler we want to abuse<\/p>\n<p>  * the \u201conpropertychange\u201d event. Since the CBlockElement is a child of CTextArea, if we do a node swap  <br \/>of CBlockElement in \u201conselect\u201d, this will trigger \u201conpropertychange\u201d. During \u201conpropertychange\u201d event  <br \/>handling, a free of the CDisplayPointer object can be forced by using an \u201cUnslect\u201d (other approaches  <br \/>also apply), but a reference of this freed memory will still be kept by CDoc::ScrollPointerIntoView,  <br \/>specifically after the CDoc::GetLineInfo call, because it is still trying to use that to update  <br \/>CDisplayPointer\u2019s position. When this invalid reference arrives in QIClassID, a crash finally occurs  <br \/>due to accessing the freed memory. By controlling this freed memory, it is possible to achieve arbitrary  <br \/>code execution under the context of the user.  <\/p>\n<p>The trigger of the vulnerability seems to be based on previously discovered bugs, specifically  <br \/>CVE-2012-4969 (ie_execcommand_uaf) and CVE-2013-1347 (ie_cgenericelement_uaf). This just means  <br \/>that the browser fuzzing tool was tweaked based on these references. There is some junk code in  <br \/>the trigger. For example, contentEditable does not have to be enabled, but this attribute this  <br \/>commonly enabled by fuzzers because of document selection. There is also multiple junk CollectGarbage  <br \/>calls, with Math.atan2() debugging messages around them \u2013 which is also an indicator that the exploit  <br \/>author was still in the process of understanding what they\u2019re for. The vulnerability seems to only  <br \/>work on Internet Explorer 8 (tested on Win 7 and Win XP), older versions might be affected, did not  <br \/>check. It does not work against IE9 (tested).<\/p>\n<p>The exploit actually looks more like a proof-of-concept rather than weaponized. The Math.atan2()  <br \/>functions are used as a way to print debugging messages in WinDBG is a strong indicator that this poc  <br \/>was possibly incomplete. It\u2019s possible that the experimental version was leaked on the web, so  <br \/>it was rushed into deployment.<\/p>\n<p>The heap grooming technique is exactly the same as the CVE-2013-3893 \u2013 it\u2019d use the  <br \/>setAttribute() function trigger heap allocations, creates 2000 of them, and the frees half of them.  <br \/>This also indicates it\u2019s probably done by the same author.<\/p>\n<p>Assessed Attacker Value: 0  <br \/>Assessed Attacker Value: 0Assessed Attacker Value: 0\n<\/div>\n<p><a href=\"https:\/\/attackerkb.com\/topics\/KfWrR0dJNU\/microsoft-internet-explorer-setmousecapture-use-after-free\" target=\"_blank\" style=\"display: inline-block; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px;\">View Advisory Details<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Security Update News Update Information Title Microsoft Internet Explorer SetMouseCapture Use-After-Free Update ID AKB:3C7B4CF8-80C4-45A5-9363-AFAA8C364D11 Type attackerkb Published 2025-05-05T00:00:00 Last Updated 2025-05-05T00:00:00 Security Impact CVSS Score&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[103,6,8,41,12,15,13,7,11,5],"class_list":["post-3122","post","type-post","status-publish","format-standard","hentry","category-category_news","tag-attackerkb","tag-cve","tag-cvss","tag-cvss-88","tag-exploit","tag-high","tag-news","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=3122\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem\" \/>\n<meta property=\"og:description\" content=\"Security Update News Update Information Title Microsoft Internet Explorer SetMouseCapture Use-After-Free Update ID AKB:3C7B4CF8-80C4-45A5-9363-AFAA8C364D11 Type attackerkb Published 2025-05-05T00:00:00 Last Updated 2025-05-05T00:00:00 Security Impact CVSS Score...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=3122\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-06T01:01:20+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Microsoft Internet Explorer SetMouseCapture Use-After-Free\",\"datePublished\":\"2025-05-06T01:01:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122\"},\"wordCount\":673,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"attackerkb\",\"CVE\",\"CVSS\",\"CVSS-8.8\",\"exploit\",\"HIGH\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_news\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=3122#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122\",\"name\":\"Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-05-06T01:01:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=3122\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=3122#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft Internet Explorer SetMouseCapture Use-After-Free\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=3122","og_locale":"en_US","og_type":"article","og_title":"Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem","og_description":"Security Update News Update Information Title Microsoft Internet Explorer SetMouseCapture Use-After-Free Update ID AKB:3C7B4CF8-80C4-45A5-9363-AFAA8C364D11 Type attackerkb Published 2025-05-05T00:00:00 Last Updated 2025-05-05T00:00:00 Security Impact CVSS Score...","og_url":"https:\/\/zero.redgem.net\/?p=3122","og_site_name":"zero redgem","article_published_time":"2025-05-06T01:01:20+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=3122#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=3122"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Microsoft Internet Explorer SetMouseCapture Use-After-Free","datePublished":"2025-05-06T01:01:20+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=3122"},"wordCount":673,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["attackerkb","CVE","CVSS","CVSS-8.8","exploit","HIGH","news","Security","tapic","Vulnerability"],"articleSection":["category_news"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=3122#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=3122","url":"https:\/\/zero.redgem.net\/?p=3122","name":"Microsoft Internet Explorer SetMouseCapture Use-After-Free - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-05-06T01:01:20+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=3122#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=3122"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=3122#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Microsoft Internet Explorer SetMouseCapture Use-After-Free"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/3122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3122"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/3122\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}