<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>itw &#8211; PT ESC</title>
	<atom:link href="https://ptesc.tech/en/tag/itw/feed/" rel="self" type="application/rss+xml" />
	<link>https://ptesc.tech/en/</link>
	<description></description>
	<lastBuildDate>Wed, 30 Sep 2026 17:51:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://ptesc.tech/wp-content/uploads/2026/09/cropped-cropped-large_icon-32x32.png</url>
	<title>itw &#8211; PT ESC</title>
	<link>https://ptesc.tech/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How we found the ITW exploit for CVE-2024-38178</title>
		<link>https://ptesc.tech/en/how-we-found-the-itw-exploit-for-cve-2024-38178/</link>
		
		<dc:creator><![CDATA[author_vr]]></dc:creator>
		<pubDate>Wed, 21 Aug 2024 10:03:44 +0000</pubDate>
				<category><![CDATA[Vulnerability Research]]></category>
		<category><![CDATA[escvr]]></category>
		<category><![CDATA[itw]]></category>
		<category><![CDATA[jscript9]]></category>
		<category><![CDATA[reverse]]></category>
		<guid isPermaLink="false">http://localhost:8080/%d0%ba%d0%b0%d0%ba-%d0%bc%d1%8b-%d0%bd%d0%b0%d1%88%d0%bb%d0%b8-itw-%d1%8d%d0%ba%d1%81%d0%bf%d0%bb%d0%be%d0%b9%d1%82-%d0%b4%d0%bb%d1%8f-cve-2024-38178/</guid>

					<description><![CDATA[🔦 How We Found the ITW Exploit for CVE-2024-38178 As part of our monthly review of freshly patched vulnerabilities, our team in ESC-VR pays close attention to vulnerabilities marked as exploited in the wild. Such vulnerabilities become our…]]></description>
										<content:encoded><![CDATA[<p>🔦  <strong>How We Found the ITW Exploit for CVE-2024-38178</strong></p>
<p>As part of our monthly review of freshly patched vulnerabilities, our team in ESC-VR pays close attention to vulnerabilities marked as exploited in the wild. Such vulnerabilities become our primary target, especially when no information about public exploits is available. </p>
<p>The vulnerability <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38178" rel="noopener" target="_blank">CVE-2024-38178</a><strong> </strong>is a <strong>Type Confusion</strong> memory corruption (<em>CWE-843</em>). Simply put: a situation where a memory region occupied by an object of type A is interpreted by the code as an object of type B.</p>
<p>After analyzing the patch, we found that the changes were made to a function responsible for optimizing array operations, specifically the <code>GlobOpt::OptArraySrc</code> function. The fix added handling for a scenario where the optimizer fails to notice that a variable&#8217;s type can sometimes change at <code>runtime</code>.</p>
<p>If you follow <code>Google ProjectZero</code>&#8216;s work as closely as we do, you&#8217;ve already guessed it 😉</p>
<p>The <code>GlobOpt::OptArraySrc</code> function had already appeared in an <strong>ITW exploit</strong>, specifically in the <a href="https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2022/CVE-2022-41128.html" rel="noopener" target="_blank">post</a> describing <strong>CVE-2022-41128</strong>. </p>
<p>That post includes a <code>PoC</code> demonstrating the exploitation of <strong>CVE-2022–41128</strong>. Taking key strings from it, we searched public and private sources for recently uploaded files using the following substrings:</p>
<p><strong>•</strong> <code>6E6577204F626A656374287B0D0A20 </code><br />
<strong>•</strong> <code>206E657720496E7433324172726179</code></p>
<p><strong>We found only one file</strong>. It was uploaded from <code>KR</code>, and the exploit was likely used in attacks in that country, as indirectly indicated by information from the Microsoft <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38178" rel="noopener" target="_blank">bulletin</a>. </p>
<p>Running the file on systems with and without the patch, we quickly realized this was exactly what we were looking for. Due to the high similarity to <strong>CVE-2022-41128</strong>, we believe this vulnerability was also discovered through fuzzing conducted using the <code>PoC</code> for <strong>CVE-2022-41128</strong> and <strong>CVE-2021-34480</strong>.</p>
<p>The exploit creates a situation where the <strong>JIT compiler</strong> is convinced that variable <strong>X</strong> is of type <code>js::TypedArray&lt;int,0&gt;</code>, but in reality <strong>X</strong> holds value <strong>Y</strong> of type <code>js::DynamicObj</code>. The exploit then uses index access at positions 4, 11, and 12 to modify the internal fields of a <code>js::JavaScriptNativeArray</code> located in one of the properties of value <strong>Y</strong>. The modified fields store the array&#8217;s size. </p>
<p>As a result, the exploit enables out-of-bounds access to this array in order to obtain relative write and read primitives. Further description would take an indecent amount of space within a single post, so stay tuned and happy hunting 🙂</p>
<p><strong>YARA rule (for the file):</strong></p>
<pre><code>
rule exploit_CVE_2024_38178 {
      strings:
          $a = { 6E6577204F626A656374287B0D0A20 }
          $b = { 206E657720496E7433324172726179 } 
     condition:
           all of them
}
</code></pre>
<p><strong>IoCs:</strong></p>
<pre><code>
SHA256: 736092B71A9686FDE43D3C4ABD941A6774721B90B17D946C9D05AF19C84DF0A4
</code></pre>
<pre><code>
http://img[.]mobonad[.]com/images/20230912/43
</code></pre>
<p><span class="hashtag">#escvr</span> <span class="hashtag">#itw</span> <span class="hashtag">#jscript9</span> <span class="hashtag">#reverse</span><br />
<a href="https://t.me/ptescalator" rel="noopener" target="_blank">@ptescalator</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
