<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Grzegorz Wypych (h0rac) on Medium]]></title>
        <description><![CDATA[Stories by Grzegorz Wypych (h0rac) on Medium]]></description>
        <link>https://medium.com/@grzegorz_84575?source=rss-7a00032172e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Grzegorz Wypych (h0rac) on Medium</title>
            <link>https://medium.com/@grzegorz_84575?source=rss-7a00032172e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:15:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@grzegorz_84575/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How ByteRay engine handles vulnerabilities inside loops.]]></title>
            <link>https://blog.byteray.co.uk/how-byteray-engine-handles-vulnerabilities-inside-loops-a7e30e6a4056?source=rss-7a00032172e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e30e6a4056</guid>
            <dc:creator><![CDATA[Grzegorz Wypych (h0rac)]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 11:47:10 GMT</pubDate>
            <atom:updated>2025-12-13T11:47:10.685Z</atom:updated>
            <content:encoded><![CDATA[<p>We often receive questions how our engine handle situations when user input is used inside loop condition. To answer the question we prepared example code and explanation.</p><pre>#include &lt;arpa/inet.h&gt;<br>#include &lt;stdint.h&gt;<br>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br>#include &lt;sys/socket.h&gt;<br>#include &lt;unistd.h&gt;<br>#include &lt;stdlib.h&gt;<br><br><br>int handle_client_once(int fd) {<br>  // One-shot receive buffer: [u16 iters_be][payload...]<br>  uint8_t pkt[2048];<br><br>  ssize_t r = recv(fd, pkt, sizeof(pkt), 0);<br>  if (r &lt;= 0) return -1;<br>  if (r &lt; 2) return -1;<br><br>  uint16_t iters_be = 0;<br>  memcpy(&amp;iters_be, pkt, 2);<br>  uint32_t iters = ntohs(iters_be);       // attacker-controlled loop bound<br><br>  const uint8_t *payload = pkt + 2;<br>  size_t payload_len = (size_t)r - 2;<br><br>  // Attacker-controlled source (NUL terminated)<br>  char src[256];<br>  size_t copy_in = payload_len;<br>  if (copy_in &gt; sizeof(src) - 1) copy_in = sizeof(src) - 1;<br>  memcpy(src, payload, copy_in);<br>  src[copy_in] = &#39;\0&#39;;<br><br>  // Small dst to model overflow risk<br>  char dst[64];<br>  size_t off = 0;<br>  const size_t CHUNK = 8;                // fixed chunk per iteration (models cumulative growth)<br><br>  // --- Attacker-controlled loop<br>  while (iters--) {<br>    // This check models the exact point where a real bug would go OOB.<br>    if (off + CHUNK &gt; sizeof(dst)) {<br>       memcpy(dst, src, iters);            // &lt;-- &quot;overflow would happen here&quot;<br>    }<br><br>    // Sink: cumulative write pattern<br>    memcpy(dst + off, src, (copy_in &lt; CHUNK ? copy_in : CHUNK));<br>    off += CHUNK;<br><br>    // prevent optimizing away<br>    if (dst[0] == &#39;Z&#39;) (void)write(STDOUT_FILENO, &quot;.&quot;, 1);<br>  }<br><br>  return 0;<br>}<br><br><br>int main(void) {<br>  int rc = handle_client_once(STDIN_FILENO);<br>  return (rc == 0) ? 0 : 1;<br>}</pre><p>In above example C code we read packet from network and both <strong>size </strong>and <strong>data </strong>are potentially user controlled when processed via code.</p><p>First we safely prepare src buffer and next when while loop is executed we try unsafely copy data to <strong>dst</strong> buffer from <strong>src</strong> buffer.</p><p>Now let’s look on MLIL code representation of our sample binary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8htJAVJW3xftjHSjJX2MTg.png" /><figcaption>while loop condition</figcaption></figure><p>Between instruction 54 and 102 we have a loop. We know that because instruction 102 has Goto 54 statement which jumps immedietly to instruction 54</p><p>When we execute following command:</p><pre> python3 -m vulnhunt tests/analysis/while_overflow-aarch64-linux-gnu --output-directory=while_test --output-filter=error,warning,info,debug  --sources=recv</pre><p>our engine will report:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grdprlm26cVD4TTWivuloQ.png" /><figcaption>ByteRay engine log</figcaption></figure><pre>2025-12-13T11:01:03.036783Z [error    ] The size variable x2_2#3 was computed from a source function which takes x1#1 as input [stackoverflow] file_name=stack_taint_overflow.py line=1514<br>2025-12-13T11:01:03.036920Z [error    ] Possible type stack overflow detected at 0x400944 | mem#6 = 0x4006a0(x0_17#19, x1_3#6, x2_2#3) @ mem#5 [stackoverflow] file_name=stack_taint_overflow.py line=322<br>2025-12-13T11:01:03.037047Z [error    ] Size x2_2#3 was computed from a source operation without bounds checking [stackoverflow] file_name=stack_taint_overflow.py line=325<br>2025-12-13T11:01:03.037136Z [error    ] Dest variable &amp;var_980 was computed with buffer size 64 </pre><p>So if we will compare MLIL code representation with reported bug information we can observe that <strong>x2_2#3 </strong>variable is bound to <strong>x1#1 </strong>input variable which is user input controlled in <strong>recv </strong>source function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16aiJ3bSdxIMOFJmtcjKfA.png" /><figcaption>Variable correlation</figcaption></figure><p>Entire path we can observe on engine reported DFG file:</p><pre>[<br>    {<br>        &quot;taint_dfg&quot;: [<br>            [<br>                &quot;0x400878&quot;,<br>                &quot;recv-x0_1#2&quot;,<br>                [<br>                    &quot;x0#1&quot;,<br>                    &quot;x1#1&quot;,<br>                    &quot;0x800&quot;,<br>                    &quot;0&quot;<br>                ],<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400874&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0#1 = var_984#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400860&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_984#1 = arg1#0&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400870&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x1#1 = &amp;var_838&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x1_8#14 = \u03d5(x1#1, x1_8#4)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009b0&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x1_8#4 = x0_24#16 - 1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x40087c&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_20#1 = x0_1#2&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400880&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_2#3 = var_20#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400888&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;if (x0_2#3 s&gt; 0) then 7 @ 0x400894 else 9 @ 0x40088c&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400894&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_4#4 = var_20#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x40089c&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;if (x0_4#4 s&gt; 1) then 11 @ 0x4008a8 else 26 @ 0x4008a0&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008d0&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_9#9 = var_20#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008d4&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_10#10 = x0_9#9 - 2&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008d8&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_30_1#1 = x0_10#10&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008dc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_11#11 = var_30_1#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008e0&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_10_1#1 = x0_11#11&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008e4&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_12#12 = var_10_1#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008ec&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;if (x0_12#12 u&lt;= 0xff) then 41 else 42 @ 0x4008f4&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008f8&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_10_1#3 = \u03d5(var_10_1#1, var_10_1#2)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_30_1#2 = \u03d5(var_30#0, var_30_1#1)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x40088c&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_3#29 = 0xffffffff&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_3#30 = \u03d5(x0_3#27, x0_3#28, x0_3#29)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;return x0_3#30&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008a8&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_83a_1#1 = 0&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008ac&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_5#5 = var_838 @ mem#1&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008b0&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_83a_2#2 = x0_5#5&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008b4&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_6#6 = var_83a_2#2&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008b8&quot;,<br>                &quot;ntohs-x0_7#7&quot;,<br>                [<br>                    &quot;x0_6#6&quot;<br>                ],<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_83a_2#3 = \u03d5(var_83a#0, var_83a_2#2)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008bc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_8#8 = zx.d(x0_7#7)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4008c0&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_4_1#1 = x0_8#8&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009ac&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_4_1#2 = \u03d5(var_4_1#1, var_4_1#3)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009ac&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_24#16 = var_4_1#2&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009b4&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_4_1#3 = x1_8#4&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x4009cc&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;var_4_1#4 = \u03d5(var_4#0, var_4_1#3)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400938&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x2_2#3 = zx.q(var_4_1#3)&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400944&quot;,<br>                &quot;memcpy&quot;,<br>                [<br>                    &quot;x0_17#19&quot;,<br>                    &quot;x1_3#6&quot;,<br>                    &quot;x2_2#3&quot;<br>                ],<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x400940&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x0_17#19 = &amp;var_980&quot;,<br>                &quot;handle_client_once&quot;<br>            ],<br>            [<br>                &quot;0x40093c&quot;,<br>                &quot;handle_client_once&quot;,<br>                &quot;x1_3#6 = &amp;var_940&quot;,<br>                &quot;handle_client_once&quot;<br>            ]<br>        ],<br>        &quot;severity&quot;: &quot;HIGH&quot;,<br>        &quot;instruction&quot;: &quot;mem#6 = 0x4006a0(x0_17#19, x1_3#6, x2_2#3) @ mem#5&quot;,<br>        &quot;instruction_address&quot;: &quot;0x400944&quot;,<br>        &quot;dest&quot;: &quot;&amp;var_980&quot;,<br>        &quot;dest_addr&quot;: &quot;0x400940&quot;,<br>        &quot;source&quot;: &quot;x2_2#3&quot;,<br>        &quot;source_addr&quot;: &quot;0x400944&quot;,<br>        &quot;vuln_description&quot;: &quot;Size [x2_2#3] was computed from a source operation without bounds checking. Dest variable [&amp;var_980] was computed with buffer size 64&quot;,<br>        &quot;module&quot;: &quot;stackoverflow&quot;,<br>        &quot;library&quot;: &quot;tests/analysis/while_overflow-aarch64-linux-gnu.bndb&quot;<br>    }<br>]% </pre><p>If we will track from <strong>x2_2#3 </strong>backwards we will found following connections<br><strong>x2_2#3</strong><br> ← x2_2#3 = zx.q(var_4_1#3) @ 0x400938</p><ol><li><strong>var_4_1#3</strong><br> ← var_4_1#3 = x1_8#4 @ 0x4009b4</li><li><strong>x1_8#4</strong><br> ← x1_8#4 = x0_24#16 - 1 @ 0x4009b0</li><li><strong>x0_24#16</strong><br> ← x0_24#16 = var_4_1#2 @ 0x4009ac</li><li><strong>var_4_1#2</strong><br> ← var_4_1#2 = φ(var_4_1#1, var_4_1#3) @ 0x4009ac<br> (this is a loop-phi; the “seed” comes from var_4_1#1, and it can also feed back from var_4_1#3)</li><li><strong>var_4_1#1</strong> (seed of the phi)<br> ← var_4_1#1 = x0_8#8 @ 0x4008c0</li><li><strong>x0_8#8</strong><br> ← x0_8#8 = zx.d(x0_7#7) @ 0x4008bc</li><li><strong>x0_7#7</strong><br> ← ntohs-x0_7#7(x0_6#6) @ 0x4008b8</li><li><strong>x0_6#6</strong><br> ← x0_6#6 = var_83a_2#2 @ 0x4008b4</li><li><strong>var_83a_2#2</strong><br> ← var_83a_2#2 = x0_5#5 @ 0x4008b0</li><li><strong>x0_5#5</strong><br> ← x0_5#5 = var_838 @ mem#1 @ 0x4008ac</li><li><strong>var_838</strong> lives at the address assigned by:<br> ← <strong>x1#1 = &amp;var_838</strong> @ 0x400870</li></ol><p>So the chain is essentially:</p><p>x2_2#3 → var_4_1#3 → x1_8#4 → x0_24#16 → var_4_1#2 → (phi) → var_4_1#1 → x0_8#8 → x0_7#7 → x0_6#6 → var_83a_2#2 → x0_5#5 → var_838 → x1#1</p><p>This proves that engine successfully detected vulnerability inside loop condition. Thank you !!</p><p>In case of any questions related to our engine please reach me via grzegorz@byteray.co.uk</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e30e6a4056" width="1" height="1" alt=""><hr><p><a href="https://blog.byteray.co.uk/how-byteray-engine-handles-vulnerabilities-inside-loops-a7e30e6a4056">How ByteRay engine handles vulnerabilities inside loops.</a> was originally published in <a href="https://blog.byteray.co.uk/">ByteRay</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting hidden gems in libraries]]></title>
            <link>https://blog.byteray.co.uk/hunting-hidden-gems-in-libraries-84b9588d7f80?source=rss-7a00032172e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/84b9588d7f80</guid>
            <dc:creator><![CDATA[Grzegorz Wypych (h0rac)]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 12:47:34 GMT</pubDate>
            <atom:updated>2025-11-30T00:36:29.455Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I would like to describe how ByteRay vulnerability hunting engine is able to detect bugs in shared libraries that main binary uses. One of the biggest problem of this kind of analysis is to find connection between sources and sinks in main library and shared library.</p><p>For demonstration how powerful is the engine I will provide example of two vulnerable libraries for <strong>stackoverflow </strong>vulnerability. Because it is example we should view it from source and compiled binary perspective.</p><p>Following code snippets include our vulnerable libraries and main code.</p><pre>// main_static.c<br>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br>#include &quot;libsink.h&quot;<br>#include &quot;libmemcpy_overflow.h&quot;<br><br>// Source = argv[1] albo stdin<br>int main(int argc, char **argv)<br>{<br>    char input[256];<br><br>    if (argc &gt; 1) {<br>        // Source: argv[1]<br>        const char *user_data = argv[1];<br>        int user_len = strlen(user_data);<br><br>        // Old sink (strcpy overflow)<br>        dangerous_sink(user_data);<br><br>        // New sink (memcpy overflow)<br>        memcpy_overflow_sink(user_data, user_len);<br><br>    } else {<br>        // Source: stdin<br>        printf(&quot;Enter some text: &quot;);<br>        fflush(stdout);<br><br>        if (fgets(input, sizeof(input), stdin) == NULL) {<br>            return 1;<br>        }<br><br>        // remove newline<br>        input[strcspn(input, &quot;\n&quot;)] = &#39;\0&#39;;<br><br>        int user_len = strlen(input);<br><br>        // Old sink (strcpy overflow)<br>        dangerous_sink(input);<br><br>        // New sink (memcpy overflow)<br>        memcpy_overflow_sink(input, user_len);<br>    }<br><br>    return 0;<br>}</pre><pre>//libmemecpy_overflow.c<br>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br><br>// Stack overflow via tainted length in memcpy<br>void __attribute__((noinline))<br>memcpy_overflow_sink(const char *user_input, int user_size)<br>{<br>    char local[16];<br><br>    // BUG: user-controlled length<br>    memcpy(local, user_input, user_size);<br><br>    // Prevent optimization<br>    printf(&quot;Copied: %s (len=%d)\n&quot;, local, user_size);</pre><pre>// libsink.c<br>#include &lt;string.h&gt;<br>#include &lt;stdio.h&gt;<br>#include &quot;libsink.h&quot;<br><br>// Sink in libarry .so<br>void __attribute__((noinline)) dangerous_sink(const char *user_data)<br>{<br>    char buf[16];<br><br>    // Overflow<br>    strcpy(buf, user_data);<br><br>    // avoid compilation optimization<br>    printf(&quot;Copied data: %s\n&quot;, buf);<br>}</pre><p>After compilation we will get 3 files and main binary will include both libraries + standard libc</p><pre>readelf -d main_static2-aarch64-linux-gnu<br><br>Dynamic section at offset 0xfda8 contains 28 entries:<br>  Tag        Type                         Name/Value<br> 0x0000000000000001 (NEEDED)             Shared library: [./libsink-aarch64-linux-gnu.so]<br> 0x0000000000000001 (NEEDED)             Shared library: [./libmemcpy_overflow-aarch64-linux-gnu.so]<br> 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]</pre><p>Vulnerabilities are obvious if we will look on source code, but from binary disassembly it is more complicated. We can trigger both from argv or by <strong>fgets</strong> source.</p><p>Now lets look how decompiled code look like when we represent it Binary Ninja</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7bafeIya5ef-uHGcD_4sg.png" /><figcaption>main_static2-aarch64-linux-gnu</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*eOlhVjoq8WcptnzGEMjzMQ.png" /><figcaption>main_static2-aarch64-linux-gnu</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VxA8btLIXUwF_iBXoQLOIg.png" /><figcaption>main_static2-aarch64-linux-gnu</figcaption></figure><p>If we will visit our first vulnerable library call <strong>dangerous_sink </strong>we can observe that its basically returning a pointer i <strong>.got (</strong>GLOBAL OFFSET TABLE<strong>). </strong>If we will analyze main binary we will not have find any bug because we are not seeing vulnerable disassembled code.</p><p>Now lets look on both <strong>.so </strong>library files disassembly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GbnLTOwbq5qbTTjisTTKUQ.png" /><figcaption>libmemcpy_overflow-aarch64-linux-gnu.so</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBjH6w-h8sU_yp1E9uowrA.png" /><figcaption>./libsink-aarch64-linux-gnu.so</figcaption></figure><p>Now we see some memory copy operations in both libraries. Both are vulnerable but we know that looking on source, but from disassembly perspective which is usually a case for vulnerability hunting in closed source binaries we need to investigate.</p><p>Let’s run now our engine with following parameters:</p><pre>python3 -m vulnhunt tests/analysis/libload/main_static2-aarch64-linux-gnu --output-directory=libtest  --library=true<br></pre><p>or</p><pre> python3 -m vulnhunt tests/analysis/libload/main_static-aarch64-linux-gnu --output-directory=libtest  --lib_dirs=test_libload/lib --library=true</pre><p>First usage assume libraries are in the same folder as main binary, in second use case we can define folder where libraries are located</p><p>Once we run the engine we will got following output:</p><pre>  unpwnable_things git:(prod) ✗ python3 -m vulnhunt tests/analysis/libload/main_static2-aarch64-linux-gnu --output-directory=libtest   --library=true<br> ____        _       ____             <br>| __ ) _   _| |_ ___|  _ \ __ _ _   _ <br>|  _ \| | | | __/ _ \ |_) / _` | | | |<br>| |_) | |_| | ||  __/  _ &lt; (_| | |_| |<br>|____/ \__, |\__\___|_| \_\__,_|\__, |<br>       |___/                    |___/ <br><br>2025-11-26T12:01:12.196412Z [debug    ] [stackoverflow] analysis_progress=0 engine_version=0.0.17 file_name=__main__.py line=62<br>Opening main_static2-aarch64-linux-gnu.bndb: 100%|███████| 100/100 [00:00&lt;00:00]<br>2025-11-26T12:01:12.757899Z [info     ] Loaded database: tests/analysis/libload/main_static2-aarch64-linux-gnu.bndb [stackoverflow] line=132<br>Opening libsink-aarch64-linux-gnu.so.bndb: 100%|█████████| 100/100 [00:00&lt;00:00]<br>2025-11-26T12:01:12.772404Z [info     ] Loaded database: /home/h0rac/unpwnable_things/tests/analysis/libload/libsink-aarch64-linux-gnu.so.bndb [stackoverflow] line=132<br>2025-11-26T12:01:12.772614Z [info     ] Loaded external library: ./libsink-aarch64-linux-gnu.so -&gt; /home/h0rac/unpwnable_things/tests/analysis/libload/libsink-aarch64-linux-gnu.so [stackoverflow] line=334<br>Opening libmemcpy_overflow-aarch64-linux-gnu.so.bndb: 100%|█| 100/100 [00:00&lt;00:<br>2025-11-26T12:01:12.788591Z [info     ] Loaded database: /home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so.bndb [stackoverflow] line=132<br>2025-11-26T12:01:12.788922Z [info     ] Loaded external library: ./libmemcpy_overflow-aarch64-linux-gnu.so -&gt; /home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so [stackoverflow] line=334<br>2025-11-26T12:01:12.789175Z [debug    ] Skipping system library libc.so.6 for /home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu [stackoverflow] line=272<br>2025-11-26T12:01:12.857159Z [debug    ] [callconv] Skipping call convention fix (database view: /home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu.bndb) [stackoverflow] file_name=analyzer.py line=539<br>[*] &#39;/home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu&#39;<br>    Arch:     aarch64-64-little<br>    RELRO:    Partial RELRO<br>    Stack:    No canary found<br>    NX:       NX enabled<br>    PIE:      PIE enabled<br>&#39;/home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu&#39;<br>Arch:     aarch64-64-little<br>RELRO:    Partial RELRO<br>Stack:    No canary found<br>NX:       NX enabled<br>PIE:      PIE enabled<br>2025-11-26T12:01:12.869545Z [info     ] {&#39;RELRO&#39;: &#39;Partial RELRO&#39;, &#39;Stack&#39;: &#39;No canary found&#39;, &#39;NX&#39;: &#39;NX enabled&#39;, &#39;PIE&#39;: &#39;PIE enabled&#39;} [stackoverflow] analysis_progress=0 file_name=__main__.py line=119<br>2025-11-26T12:01:12.869764Z [info     ] stackoverflow module enabled... [stackoverflow] analysis_progress=0 file_name=__main__.py line=159<br>2025-11-26T12:01:12.870030Z [info     ] Path: ./libsink-aarch64-linux-gnu.so -&gt; Library: /home/h0rac/unpwnable_things/tests/analysis/libload/libsink-aarch64-linux-gnu.so.bndb [stackoverflow] file_name=analyzer.py line=3697<br>2025-11-26T12:01:12.870309Z [debug    ] Finding sources and sinks in function: _init - 0x4004d0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.874015Z [debug    ] Finding sources and sinks in function: sub_4004f0 - 0x4004f0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.876446Z [debug    ] Finding sources and sinks in function: __cxa_finalize - 0x400510 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.878149Z [debug    ] Finding sources and sinks in function: __gmon_start__ - 0x400520 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.879486Z [debug    ] Finding sources and sinks in function: call_weak_fn - 0x400550 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.881971Z [debug    ] Finding sources and sinks in function: deregister_tm_clones - 0x400570 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.883817Z [debug    ] Finding sources and sinks in function: register_tm_clones - 0x4005a0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.885724Z [debug    ] Finding sources and sinks in function: __do_global_dtors_aux - 0x4005e0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.890333Z [debug    ] Finding sources and sinks in function: frame_dummy - 0x400630 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.891847Z [debug    ] Finding sources and sinks in function: dangerous_sink - 0x400634 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.893433Z [debug    ] Finding sources and sinks in function: _fini - 0x40066c [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.893999Z [info     ] Path: ./libmemcpy_overflow-aarch64-linux-gnu.so -&gt; Library: /home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so.bndb [stackoverflow] file_name=analyzer.py line=3697<br>2025-11-26T12:01:12.894193Z [debug    ] Finding sources and sinks in function: _init - 0x4004d8 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.895091Z [debug    ] Finding sources and sinks in function: sub_4004f0 - 0x4004f0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.896526Z [debug    ] Finding sources and sinks in function: __cxa_finalize - 0x400520 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.897818Z [debug    ] Finding sources and sinks in function: __gmon_start__ - 0x400530 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.899420Z [debug    ] Finding sources and sinks in function: call_weak_fn - 0x400550 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.902936Z [debug    ] Finding sources and sinks in function: deregister_tm_clones - 0x400570 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.905929Z [debug    ] Finding sources and sinks in function: register_tm_clones - 0x4005a0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.908758Z [debug    ] Finding sources and sinks in function: __do_global_dtors_aux - 0x4005e0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.913089Z [debug    ] Finding sources and sinks in function: frame_dummy - 0x400630 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.915013Z [debug    ] Finding sources and sinks in function: memcpy_overflow_sink - 0x400634 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.918298Z [debug    ] Finding sources and sinks in function: _fini - 0x40067c [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.919822Z [debug    ] Finding sources and sinks in function: _init - 0x4007e0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.921725Z [debug    ] Finding sources and sinks in function: sub_400800 - 0x400800 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.924230Z [debug    ] Finding sources and sinks in function: __libc_start_main - 0x400830 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.925694Z [debug    ] Finding sources and sinks in function: __cxa_finalize - 0x400840 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.926552Z [debug    ] Finding sources and sinks in function: memcpy_overflow_sink - 0x400850 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.927501Z [debug    ] Finding sources and sinks in function: dangerous_sink - 0x400860 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.928831Z [debug    ] Finding sources and sinks in function: __gmon_start__ - 0x400870 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.929777Z [debug    ] Finding sources and sinks in function: abort - 0x400880 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.931124Z [debug    ] Finding sources and sinks in function: fflush - 0x400890 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.932505Z [debug    ] Finding sources and sinks in function: strcspn - 0x4008a0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.934806Z [debug    ] Finding sources and sinks in function: _start - 0x400900 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.937231Z [debug    ] Finding sources and sinks in function: call_weak_fn - 0x400934 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.939402Z [debug    ] Finding sources and sinks in function: deregister_tm_clones - 0x400950 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.941913Z [debug    ] Finding sources and sinks in function: register_tm_clones - 0x400980 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.943536Z [debug    ] Finding sources and sinks in function: __do_global_dtors_aux - 0x4009c0 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.947695Z [debug    ] Finding sources and sinks in function: frame_dummy - 0x400a10 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.949628Z [debug    ] Finding sources and sinks in function: main - 0x400a14 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.959172Z [debug    ] Finding sources and sinks in function: _fini - 0x400af4 [stackoverflow] file_name=analyzer.py line=3897<br>2025-11-26T12:01:12.959899Z [debug    ] func_name: main, func_addr: 0x400a14, func_sinks_number: 3, func_sinks: [&#39;strlen&#39;, &#39;printf&#39;, &#39;strlen&#39;], func_sources_number: 1 func_sources: [&#39;fgets&#39;] [stackoverflow] file_name=analyzer.py line=4018<br>2025-11-26T12:01:12.960007Z [debug    ] func_name: dangerous_sink, func_addr: 0x400634, func_sinks_number: 2, func_sinks: [&#39;strcpy&#39;, &#39;printf&#39;], func_sources_number: 0 func_sources: [] [stackoverflow] file_name=analyzer.py line=4018<br>2025-11-26T12:01:12.960075Z [debug    ] func_name: memcpy_overflow_sink, func_addr: 0x400634, func_sinks_number: 2, func_sinks: [&#39;memcpy&#39;, &#39;printf&#39;], func_sources_number: 0 func_sources: [] [stackoverflow] file_name=analyzer.py line=4018<br>2025-11-26T12:01:12.960929Z [info     ] Start of analysis: main_static2-aarch64-linux-gnu<br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] file_name=analyzer.py line=3801<br>2025-11-26T12:01:12.961132Z [info     ] 0x400a1c: Tracing var_124#1 = argc#0, instructions to trace: 55 [stackoverflow] analysis_progress=0 file_name=analyzer.py line=3275<br>2025-11-26T12:01:12.961215Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=0 file_name=analyzer.py line=3289<br>2025-11-26T12:01:12.961340Z [info     ] 0x400a1c: Tracing param: var_124#1 = argc#0 [stackoverflow] analysis_progress=0 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.961819Z [info     ] 0x400a24: Tracing param: x0#1 = var_124#1 [stackoverflow] analysis_progress=0 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.962101Z [info     ] 0x400a2c: Tracing param: if (x0#1 s&lt;= 1) then 4 @ 0x400a68 else 12 @ 0x400a30 [stackoverflow] analysis_progress=0 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.962220Z [info     ] Detected conditional if (x0#1 s&lt;= 1) then 4 @ 0x400a68 else 12 @ 0x400a30 [stackoverflow] analysis_progress=0 file_name=analyzer.py line=1829<br>2025-11-26T12:01:12.962389Z [info     ] 0x400a20: Tracing var_130#1 = argv#0, instructions to trace: 54 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3275<br>2025-11-26T12:01:12.962470Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3289<br>2025-11-26T12:01:12.962567Z [info     ] 0x400a20: Tracing param: var_130#1 = argv#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.962754Z [info     ] 0x400a30: Tracing param: x0_1#12 = var_130#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.963640Z [info     ] 0x400a34: Tracing param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.964086Z [info     ] 0x400a38: Tracing param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.964584Z [info     ] 0x400a3c: Tracing param: x0_3#14 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.965123Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_4#15, mem#9 = 0x400820(x0_3#14) @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.965573Z [info     ]  Resolved [strlen] by address: 0x400820 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.965889Z [info     ] Sink strlen detected  [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2365<br>2025-11-26T12:01:12.966060Z [info     ] Reverse recursive search for: x0_4#15, mem#9 = 0x400820(x0_3#14) @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1301<br>2025-11-26T12:01:12.966213Z [info     ] Reverse recursive source param definition search for param: x0_3#14 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1348<br>/home/h0rac/unpwnable_things/src/vulnhunt/analyzer.py:1135: DeprecatedWarning: visit_all is deprecated as of 4.0.4907. Use :py:func:`MediumLevelILInstruction.traverse` instead.<br>  if not var.visit_all(callback):<br>2025-11-26T12:01:12.967017Z [info     ]  Found param: x0_3#14 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.967404Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.968366Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.968835Z [info     ] End of reverse search, src param: [x0_1#12 + 8].q @ mem#0, forward taint search required [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1364<br>2025-11-26T12:01:12.971851Z [info     ] 0x400a40: x0_3#14 passed to: strlen [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1651<br>2025-11-26T12:01:12.972110Z [info     ] 0x400a48: Tracing param: x0_5#16 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.972683Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#10 = 0x400860(x0_5#16) @ mem#9 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.973187Z [info     ]  Resolved [dangerous_sink] by address: 0x400860 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.973847Z [info     ]  Found param: x0_5#16 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.974258Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.974826Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.975089Z [info     ] Visit [dangerous_sink] function [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3121<br>2025-11-26T12:01:12.975262Z [info     ] 0x400860: First instruction at [dangerous_sink]: x16#1 = 0x420020 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3145<br>2025-11-26T12:01:12.975448Z [info     ] 0x400a54: Tracing param: x0_6#17 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.975764Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#11 = 0x400850(x0_6#17, x1#4) @ mem#10 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.975961Z [info     ]  Resolved [memcpy_overflow_sink] by address: 0x400850 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.976224Z [info     ]  Found param: x0_6#17 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.976468Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.976710Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.976962Z [info     ]  Found param usage in sign extension operation: x1#4 = zx.q(user_len#1) [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1027<br>2025-11-26T12:01:12.977093Z [info     ]  Found param usage: user_len#1 = x0_4#15 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1068<br>2025-11-26T12:01:12.977264Z [info     ]  Found param usage in call function: x0_4#15, mem#9 = 0x400820(x0_3#14) @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1055<br>2025-11-26T12:01:12.977438Z [info     ] End of reverse search, definition: user_len#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1193<br>2025-11-26T12:01:12.977572Z [info     ] Visit [memcpy_overflow_sink] function [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3121<br>2025-11-26T12:01:12.977705Z [info     ] 0x400850: First instruction at [memcpy_overflow_sink]: x16#1 = 0x420018 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=3145<br>2025-11-26T12:01:12.977877Z [info     ] 0x400ae8: Tracing param: x0_6#18 = ϕ(x0_16#10, x0_6#17) [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2974<br>2025-11-26T12:01:12.978109Z [info     ]  Found param: x0_16#10 = &amp;input [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.978375Z [info     ]  Found param: x0_6#17 = user_data#1 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.978619Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.978855Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.979097Z [info     ] 0x400ae8: Tracing param: user_data#2 = ϕ(user_data#0, user_data#1) [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=2974<br>2025-11-26T12:01:12.979238Z [info     ] End of reverse search, definition: user_data#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1118<br>2025-11-26T12:01:12.979427Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.979662Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=1.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.979903Z [info     ] 0x400a68: Tracing mem#1 = 0x4008b0(&quot;Enter some text: &quot;) @ mem#0, instructions to trace: 51 [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=3275<br>2025-11-26T12:01:12.979989Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=3289<br>2025-11-26T12:01:12.980108Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#1 = 0x4008b0(&quot;Enter some text: &quot;) @ mem#0 [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.980288Z [info     ]  Resolved [printf] by address: 0x4008b0 [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.980542Z [warning  ] Sink printf skipped for return value tracking [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=2361<br>2025-11-26T12:01:12.980653Z [info     ] Sink printf detected  [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=2365<br>2025-11-26T12:01:12.980812Z [info     ] Reverse recursive search for: mem#1 = 0x4008b0(&quot;Enter some text: &quot;) @ mem#0 [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=1301<br>2025-11-26T12:01:12.981311Z [info     ] printf with static param: &quot;Enter some text: &quot; [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=1334<br>2025-11-26T12:01:12.984610Z [info     ] 0x400a68: &quot;Enter some text: &quot; passed to: printf [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=1651<br>2025-11-26T12:01:12.985005Z [info     ] stackoverflow module check passed [stackoverflow] analysis_progress=2.7 file_name=analyzer.py line=2601<br>2025-11-26T12:01:12.985149Z [info     ] printf                         [stackoverflow] file_name=argstream.py line=24<br>2025-11-26T12:01:12.985375Z [info     ] 0x400a74: Tracing x0_7#2 = [stdout].q @ mem#1, instructions to trace: 50 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=3275<br>2025-11-26T12:01:12.985458Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=3289<br>2025-11-26T12:01:12.985648Z [info     ] 0x400a74: Tracing param: x0_7#2 = [stdout].q @ mem#1 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.986058Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#2 = 0x400890(x0_7#2) @ mem#1 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.986290Z [info     ]  Resolved [fflush] by address: 0x400890 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.986576Z [info     ]  Found param: x0_7#2 = [stdout].q @ mem#1 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.986794Z [info     ] Visit [fflush] function [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=3121<br>2025-11-26T12:01:12.986963Z [info     ] 0x400890: First instruction at [fflush]: x16#1 = 0x420038 [stackoverflow] analysis_progress=4.1 file_name=analyzer.py line=3145<br>2025-11-26T12:01:12.987180Z [info     ] 0x400a84: Tracing x1_1#1 = [stdin].q @ mem#2, instructions to trace: 48 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=3275<br>2025-11-26T12:01:12.987265Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=3289<br>2025-11-26T12:01:12.987421Z [info     ] 0x400a84: Tracing param: x1_1#1 = [stdin].q @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.987655Z [info     ] 0x400a8c: Tracing param: x2#1 = x1_1#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:12.987918Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_9#4, mem#3 = 0x4008c0(x0_8#3, 0x100, x2#1) @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2160<br>2025-11-26T12:01:12.988136Z [info     ]  Resolved [fgets] by address: 0x4008c0 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2184<br>2025-11-26T12:01:12.988365Z [info     ] Source fgets detected [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2269<br>2025-11-26T12:01:12.988581Z [info     ] Reverse recursive search for: x0_9#4, mem#3 = 0x4008c0(x0_8#3, 0x100, x2#1) @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1301<br>2025-11-26T12:01:12.988748Z [info     ] Reverse recursive source param definition search for param: x0_8#3 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1348<br>2025-11-26T12:01:12.988929Z [info     ]  Found param: x0_8#3 = &amp;input [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.989115Z [info     ] End of reverse search, src param: &amp;input, forward taint search required [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1364<br>2025-11-26T12:01:12.989511Z [info     ] fgets with static param: 0x100 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1338<br>2025-11-26T12:01:12.989713Z [info     ] Reverse recursive source param definition search for param: x2#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1348<br>2025-11-26T12:01:12.990166Z [info     ]  Found param: x2#1 = x1_1#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.990884Z [info     ]  Found param: x1_1#1 = [stdin].q @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.991167Z [info     ] End of reverse search, src param: [stdin].q @ mem#2, forward taint search required [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1364<br>2025-11-26T12:01:12.997531Z [info     ] 0x400ae8: Tracing param: x2#2 = ϕ(envp#0, x2#1) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2974<br>2025-11-26T12:01:12.998204Z [info     ] End of reverse search, definition: envp#0 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1118<br>2025-11-26T12:01:12.998651Z [info     ]  Found param: x2#1 = x1_1#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.999133Z [info     ]  Found param: x1_1#1 = [stdin].q @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:12.999554Z [info     ] 0x400af0: Tracing param: x2#3 = ϕ(x2#1, x2#2) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2974<br>2025-11-26T12:01:12.999841Z [info     ]  Found param: x2#1 = x1_1#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.000147Z [info     ]  Found param: x1_1#1 = [stdin].q @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.000587Z [info     ]  Found param: x2#2 = ϕ(envp#0, x2#1) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.001103Z [info     ] End of reverse search, definition: envp#0 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.001512Z [info     ] 0x400af0: Tracing param: x1#6 = ϕ(x1_1#1, x1#5) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=2974<br>2025-11-26T12:01:13.001991Z [info     ]  Found param: x1_1#1 = [stdin].q @ mem#2 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.002370Z [info     ]  Found param: x1#5 = ϕ(x1_3#3, x1#4) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.002740Z [info     ]  Found param usage in sign extension operation: x1_3#3 = zx.q(user_len#1) [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.002895Z [info     ]  Found param usage: user_len#1 = x0_14#8 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.003103Z [info     ]  Found param usage in call function: x0_14#8, mem#6 = 0x400820(x0_13#7) @ mem#5 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1055<br>2025-11-26T12:01:13.003290Z [info     ] End of reverse search, definition: user_len#1 [stackoverflow] analysis_progress=5.4 file_name=analyzer.py line=1193<br>2025-11-26T12:01:13.003477Z [info     ] 0x400a88: Tracing x0_8#3 = &amp;input, instructions to trace: 47 [stackoverflow] analysis_progress=6.8 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.003545Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=6.8 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.003678Z [info     ] 0x400a88: Tracing param: x0_8#3 = &amp;input [stackoverflow] analysis_progress=6.8 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.004036Z [info     ] 0x400a9c: Tracing if (x0_9#4 != 0) then 24 @ 0x400ab4 else 37 @ 0x400aa0, instructions to trace: 44 [stackoverflow] analysis_progress=8.1 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.004159Z [info     ] 0x400a44: Tracing user_len#1 = x0_4#15, instructions to trace: 38 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.004221Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.004357Z [info     ] 0x400a44: Tracing param: user_len#1 = x0_4#15 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.004702Z [info     ] 0x400a50: Tracing param: x1#4 = zx.q(user_len#1) [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.005026Z [info     ] 0x400ae8: Tracing param: x1#5 = ϕ(x1_3#3, x1#4) [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=2974<br>2025-11-26T12:01:13.005274Z [info     ]  Found param usage in sign extension operation: x1_3#3 = zx.q(user_len#1) [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.005401Z [info     ]  Found param usage: user_len#1 = x0_14#8 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.005569Z [info     ]  Found param usage in call function: x0_14#8, mem#6 = 0x400820(x0_13#7) @ mem#5 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1055<br>2025-11-26T12:01:13.005753Z [info     ] End of reverse search, definition: user_len#1 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1193<br>2025-11-26T12:01:13.005979Z [info     ]  Found param usage in sign extension operation: x1#4 = zx.q(user_len#1) [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.006116Z [info     ]  Found param usage: user_len#1 = x0_4#15 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.006332Z [info     ]  Found param usage in call function: x0_4#15, mem#9 = 0x400820(x0_3#14) @ mem#0 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1055<br>2025-11-26T12:01:13.006658Z [info     ] End of reverse search, definition: user_len#1 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1193<br>2025-11-26T12:01:13.007137Z [info     ] 0x400ae8: Tracing param: user_len#2 = ϕ(user_len#0, user_len#1) [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=2974<br>2025-11-26T12:01:13.007611Z [info     ] End of reverse search, definition: user_len#0 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.007983Z [info     ]  Found param: user_len#1 = x0_4#15 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.008270Z [info     ]  Found param: x0_3#14 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.008449Z [info     ]  Found param: x0_3#14 = user_data#1 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.008689Z [info     ]  Found param: user_data#1 = x0_2#13 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.008938Z [info     ]  Found param: x0_2#13 = [x0_1#12 + 8].q @ mem#0 [stackoverflow] analysis_progress=9.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.009248Z [info     ] 0x400a5c: Tracing goto 39 @ 0x400ae8, instructions to trace: 32 [stackoverflow] analysis_progress=10.8 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.009375Z [info     ] 0x400ab4: Tracing x0_11#5 = &amp;input, instructions to trace: 31 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.009459Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.009599Z [info     ] 0x400ab4: Tracing param: x0_11#5 = &amp;input [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.009918Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_12#6, mem#4 = 0x4008a0(x0_11#5, &quot;\n&quot;) @ mem#3 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.010137Z [info     ]  Resolved [strcspn] by address: 0x4008a0 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.010430Z [info     ] Visit [strcspn] function [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=3121<br>2025-11-26T12:01:13.010589Z [info     ] 0x4008a0: First instruction at [strcspn]: x16#1 = 0x420040 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=3145<br>2025-11-26T12:01:13.010817Z [info     ] 0x400abc: Tracing param: x1_2#2 = x0_12#6 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.011132Z [info     ] 0x400ac4: Tracing param: [&amp;input + x1_2#2].b = 0 @ mem#4 -&gt; mem#5 [stackoverflow] analysis_progress=12.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.011453Z [info     ] 0x400ac8: Tracing x0_13#7 = &amp;input, instructions to trace: 27 [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.011522Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.011660Z [info     ] 0x400ac8: Tracing param: x0_13#7 = &amp;input [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.011930Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_14#8, mem#6 = 0x400820(x0_13#7) @ mem#5 [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.012129Z [info     ]  Resolved [strlen] by address: 0x400820 [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.012337Z [info     ] Sink strlen detected  [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=2365<br>2025-11-26T12:01:13.012464Z [info     ] Reverse recursive search for: x0_14#8, mem#6 = 0x400820(x0_13#7) @ mem#5 [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1301<br>2025-11-26T12:01:13.012616Z [info     ] Reverse recursive source param definition search for param: x0_13#7 [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.012787Z [info     ]  Found param: x0_13#7 = &amp;input [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.012941Z [info     ] End of reverse search, src param: &amp;input, forward taint search required [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1364<br>2025-11-26T12:01:13.017978Z [info     ] 0x400acc: x0_13#7 passed to: strlen [stackoverflow] analysis_progress=13.5 file_name=analyzer.py line=1651<br>2025-11-26T12:01:13.018788Z [info     ] 0x400ad0: Tracing user_len#1 = x0_14#8, instructions to trace: 25 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.018935Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.019234Z [info     ] 0x400ad0: Tracing param: user_len#1 = x0_14#8 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.019905Z [info     ] 0x400ae0: Tracing param: x1_3#3 = zx.q(user_len#1) [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.020308Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#8 = 0x400850(x0_16#10, x1_3#3) @ mem#7 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.020530Z [info     ]  Resolved [memcpy_overflow_sink] by address: 0x400850 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.020826Z [info     ]  Found param: x0_16#10 = &amp;input [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.021483Z [info     ]  Found param usage in sign extension operation: x1_3#3 = zx.q(user_len#1) [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.021627Z [info     ]  Found param usage: user_len#1 = x0_14#8 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.021792Z [info     ]  Found param usage in call function: x0_14#8, mem#6 = 0x400820(x0_13#7) @ mem#5 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1055<br>2025-11-26T12:01:13.021982Z [info     ] End of reverse search, definition: user_len#1 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1193<br>2025-11-26T12:01:13.022143Z [info     ] Visit [memcpy_overflow_sink] function [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=3121<br>2025-11-26T12:01:13.022295Z [info     ] 0x400850: First instruction at [memcpy_overflow_sink]: x16#1 = 0x420018 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=3145<br>2025-11-26T12:01:13.022546Z [info     ] 0x400ae8: Tracing param: user_len#2 = ϕ(user_len#0, user_len#1) [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=2974<br>2025-11-26T12:01:13.022709Z [info     ] End of reverse search, definition: user_len#0 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.022906Z [info     ]  Found param: user_len#1 = x0_14#8 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.023153Z [info     ]  Found param: x0_13#7 [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.023368Z [info     ]  Found param: x0_13#7 = &amp;input [stackoverflow] analysis_progress=14.9 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.023786Z [info     ] 0x400ad4: Tracing x0_15#9 = &amp;input, instructions to trace: 24 [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.023977Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.024312Z [info     ] 0x400ad4: Tracing param: x0_15#9 = &amp;input [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.025068Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#7 = 0x400860(x0_15#9) @ mem#6 [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.025330Z [info     ]  Resolved [dangerous_sink] by address: 0x400860 [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.025621Z [info     ]  Found param: x0_15#9 = &amp;input [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.025847Z [info     ] Visit [dangerous_sink] function [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=3121<br>2025-11-26T12:01:13.026023Z [info     ] 0x400860: First instruction at [dangerous_sink]: x16#1 = 0x420020 [stackoverflow] analysis_progress=16.2 file_name=analyzer.py line=3145<br>2025-11-26T12:01:13.026309Z [info     ] 0x400adc: Tracing x0_16#10 = &amp;input, instructions to trace: 22 [stackoverflow] analysis_progress=17.6 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.026379Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=17.6 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.026532Z [info     ] 0x400adc: Tracing param: x0_16#10 = &amp;input [stackoverflow] analysis_progress=17.6 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.026901Z [info     ] 0x400ae4: Tracing goto 39 @ 0x400ae8, instructions to trace: 19 [stackoverflow] analysis_progress=18.9 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.027030Z [info     ] 0x400aa0: Tracing x0_10#11 = 1, instructions to trace: 18 [stackoverflow] analysis_progress=20.3 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.027093Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=20.3 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.027236Z [info     ] 0x400aa0: Tracing param: x0_10#11 = 1 [stackoverflow] analysis_progress=20.3 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.027484Z [info     ] 0x400af0: Tracing param: x0_10#20 = ϕ(x0_10#11, x0_10#19) [stackoverflow] analysis_progress=20.3 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.027739Z [info     ] 0x400af0: Tracing param: return x0_10#20 [stackoverflow] analysis_progress=20.3 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.027913Z [info     ] 0x400aa4: Tracing goto 48 @ 0x400af0, instructions to trace: 17 [stackoverflow] analysis_progress=21.6 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.028143Z [info     ] 0x400ae8: Tracing mem#12 = ϕ(mem#8, mem#11), instructions to trace: 10 [stackoverflow] analysis_progress=23.0 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.028265Z [info     ] 0x400ae8: Tracing x0_10#19 = 0, instructions to trace: 9 [stackoverflow] analysis_progress=24.3 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.028323Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=24.3 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.028469Z [info     ] 0x400ae8: Tracing param: x0_10#19 = 0 [stackoverflow] analysis_progress=24.3 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.028757Z [info     ] 0x400ae8: Tracing goto 48 @ 0x400af0, instructions to trace: 8 [stackoverflow] analysis_progress=25.7 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.028882Z [info     ] 0x400af0: Tracing user_len#3 = ϕ(user_len#0, user_len#2), instructions to trace: 7 [stackoverflow] analysis_progress=27.0 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.029011Z [info     ] 0x400af0: Tracing user_data#3 = ϕ(user_data#0, user_data#2), instructions to trace: 6 [stackoverflow] analysis_progress=28.4 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.029135Z [info     ] 0x400af0: Tracing user_len#3 = ϕ(user_len#0, user_len#2), instructions to trace: 5 [stackoverflow] analysis_progress=29.7 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.029316Z [info     ] 0x400af0: Tracing mem#13 = ϕ(mem#3, mem#12), instructions to trace: 1 [stackoverflow] analysis_progress=31.1 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.029418Z [info     ] End of analysis: main_static2-aarch64-linux-gnu <br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=3809<br>2025-11-26T12:01:13.029587Z [info     ] Start of analysis: libsink-aarch64-linux-gnu.so<br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=3801<br>2025-11-26T12:01:13.029719Z [info     ] 0x40063c: Tracing var_18#1 = user_data#0, instructions to trace: 6 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.029783Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.029947Z [info     ] 0x40063c: Tracing param: var_18#1 = user_data#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.030444Z [info     ] 0x400644: Tracing param: x1#1 = var_18#1 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.030915Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.031221Z [info     ]  Resolved [strcpy] by address: 0x400530 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.031495Z [warning  ] Sink strcpy skipped for return value tracking [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2361<br>2025-11-26T12:01:13.031651Z [info     ] Sink strcpy detected  [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2365<br>2025-11-26T12:01:13.031832Z [info     ] Reverse recursive search for: mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1301<br>2025-11-26T12:01:13.032084Z [info     ] Reverse recursive source param definition search for param: x0#1 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.032403Z [info     ]  Found param: x0#1 = &amp;buf [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.032617Z [info     ] End of reverse search, src param: &amp;buf, forward taint search required [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1364<br>2025-11-26T12:01:13.032807Z [info     ] Reverse recursive source param definition search for param: x1#1 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.032999Z [info     ]  Found param: x1#1 = var_18#1 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.033264Z [info     ]  Found param: var_18#1 = user_data#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.033460Z [info     ] End of reverse search, definition: user_data#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.037295Z [info     ] 0x400648: x0#1 passed to: strcpy [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1651<br>2025-11-26T12:01:13.037528Z [info     ] 0x400648: x1#1 passed to: strcpy as SRC param [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=1632<br>2025-11-26T12:01:13.037611Z [info     ] Checking if vulnerable to stack overflow bug class ... [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2679<br>2025-11-26T12:01:13.037744Z [info     ] Current instruction : mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2682<br>2025-11-26T12:01:13.038413Z [debug    ] Chain for x1#1:                [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.038502Z [debug    ] [&#39;x1#1 = var_18#1&#39;, &#39;var_18#1 = user_data#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.038591Z [debug    ] Found common parameter: {&#39;user_data#0&#39;, &#39;var_18#1&#39;} [stackoverflow] file_name=stack_taint_overflow.py line=1265<br>2025-11-26T12:01:13.038718Z [error    ] Possible type stack overflow detected at 0x400648 | mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] file_name=stack_taint_overflow.py line=1869<br>2025-11-26T12:01:13.038814Z [error    ] Variable x1#1 was computed from a source operation without bounds checking [stackoverflow] file_name=stack_taint_overflow.py line=1872<br>2025-11-26T12:01:13.038896Z [error    ] Dest variable &amp;buf was computed with buffer size 16 [stackoverflow] file_name=stack_taint_overflow.py line=1875<br>2025-11-26T12:01:13.040709Z [info     ] Saved result to libtest/stackoverflow/libsink-aarch64-linux-gnu.so_00001.json [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=4632<br>2025-11-26T12:01:13.041054Z [info     ] Saved result DFG to libtest/stackoverflow/libsink-aarch64-linux-gnu.so_00001_dfg.json [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=4638<br>2025-11-26T12:01:13.041150Z [info     ] <br>-----------------------------------------------------------------------------------------------<br> [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=4639<br>2025-11-26T12:01:13.041484Z [info     ] 0x400640: Tracing x0#1 = &amp;buf, instructions to trace: 5 [stackoverflow] analysis_progress=33.8 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.041650Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=33.8 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.042063Z [info     ] 0x400640: Tracing param: x0#1 = &amp;buf [stackoverflow] analysis_progress=33.8 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.042934Z [info     ] 0x400650: Tracing x1_1#2 = &amp;buf, instructions to trace: 2 [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.043083Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.043280Z [info     ] 0x400650: Tracing param: x1_1#2 = &amp;buf [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.043650Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_1#2, mem#2 = 0x400540(&quot;Copied data: %s\n&quot;, x1_1#2) @ mem#1 [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.043882Z [info     ]  Resolved [printf] by address: 0x400540 [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.044175Z [warning  ] Sink printf skipped for return value tracking [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=2361<br>2025-11-26T12:01:13.044266Z [info     ] Sink printf detected  [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=2365<br>2025-11-26T12:01:13.044413Z [info     ] Reverse recursive search for: x0_1#2, mem#2 = 0x400540(&quot;Copied data: %s\n&quot;, x1_1#2) @ mem#1 [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1301<br>2025-11-26T12:01:13.044734Z [info     ] printf with static param: &quot;Copied data: %s\n&quot; [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1334<br>2025-11-26T12:01:13.044873Z [info     ] Reverse recursive source param definition search for param: x1_1#2 [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.045499Z [info     ]  Found param: x1_1#2 = &amp;buf [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.045699Z [info     ] End of reverse search, src param: &amp;buf, forward taint search required [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1364<br>2025-11-26T12:01:13.048212Z [info     ] 0x40065c: &quot;Copied data: %s\n&quot; passed to: printf [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1651<br>2025-11-26T12:01:13.048509Z [info     ] 0x40065c: x1_1#2 passed to: printf as SRC param [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=1632<br>2025-11-26T12:01:13.048601Z [info     ] stackoverflow module check passed [stackoverflow] analysis_progress=35.1 file_name=analyzer.py line=2601<br>2025-11-26T12:01:13.048718Z [info     ] printf                         [stackoverflow] file_name=argstream.py line=24<br>2025-11-26T12:01:13.048988Z [info     ] 0x400668: Tracing return x0_1#2, instructions to trace: 0 [stackoverflow] analysis_progress=36.5 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.049088Z [info     ] End of analysis: libsink-aarch64-linux-gnu.so <br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=3809<br>2025-11-26T12:01:13.049296Z [info     ] Start of analysis: libmemcpy_overflow-aarch64-linux-gnu.so<br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=3801<br>2025-11-26T12:01:13.049439Z [info     ] 0x40063c: Tracing var_18#1 = user_input#0, instructions to trace: 10 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.049504Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.049676Z [info     ] 0x40063c: Tracing param: var_18#1 = user_input#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.050338Z [info     ] 0x400650: Tracing param: x1_1#2 = var_18#1 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.051129Z [info     ]  Detected operation MLIL_CALL_SSA for instruction mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.051546Z [info     ]  Resolved [memcpy] by address: 0x400510 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.051846Z [warning  ] Sink memcpy skipped for return value tracking [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2361<br>2025-11-26T12:01:13.051945Z [info     ] Sink memcpy detected  [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2365<br>2025-11-26T12:01:13.052125Z [info     ] Reverse recursive search for: mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1301<br>2025-11-26T12:01:13.052331Z [info     ] Reverse recursive source param definition search for param: x0#1 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.052600Z [info     ]  Found param: x0#1 = &amp;local [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.052831Z [info     ] End of reverse search, src param: &amp;local, forward taint search required [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1364<br>2025-11-26T12:01:13.053049Z [info     ] Reverse recursive source param definition search for param: x1_1#2 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.053240Z [info     ]  Found param: x1_1#2 = var_18#1 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.053514Z [info     ]  Found param: var_18#1 = user_input#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.053725Z [info     ] End of reverse search, definition: user_input#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.053919Z [info     ] Reverse recursive source param definition search for param: x2#1 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.054107Z [info     ]  Found param: x2#1 = x1#1 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.054393Z [info     ]  Found param usage in sign extension operation: x1#1 = sx.q(var_1c#1) [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.054526Z [info     ]  Found param usage: var_1c#1 = user_size#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.054925Z [info     ]  Found param: var_1c#1 = user_size#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.055166Z [info     ] End of reverse search, definition: user_size#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1118<br>2025-11-26T12:01:13.059472Z [info     ] 0x400654: x0#1 passed to: memcpy [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1651<br>2025-11-26T12:01:13.059692Z [info     ] 0x400654: x1_1#2 passed to: memcpy as SRC param [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1632<br>2025-11-26T12:01:13.059793Z [info     ] 0x400654: x2#1 passed to: memcpy as SIZE param [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=1637<br>2025-11-26T12:01:13.059870Z [info     ] Checking if vulnerable to stack overflow bug class ... [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2679<br>2025-11-26T12:01:13.060011Z [info     ] Current instruction : mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2682<br>2025-11-26T12:01:13.060410Z [info     ] Size x2#1 is of type MLIL_VAR_SSA [stackoverflow] file_name=stack_taint_overflow.py line=289<br>2025-11-26T12:01:13.060871Z [debug    ] Chain for x1_1#2:              [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.060963Z [debug    ] [&#39;x1_1#2 = var_18#1&#39;, &#39;var_18#1 = user_input#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.061033Z [debug    ] Chain for x2#1:                [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.061088Z [debug    ] [&#39;x2#1 = x1#1&#39;, &#39;x1#1 = sx.q(var_1c#1)&#39;, &#39;var_1c#1 = user_size#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.061143Z [debug    ] No common calculations found.  [stackoverflow] file_name=stack_taint_overflow.py line=1270<br>2025-11-26T12:01:13.061213Z [info     ] Found independent tainted parameters: {&#39;user_size#0&#39;, &#39;user_input#0&#39;} [stackoverflow] file_name=stack_taint_overflow.py line=1274<br>2025-11-26T12:01:13.061334Z [error    ] Possible type stack overflow detected at 0x400654 | mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] file_name=stack_taint_overflow.py line=307<br>2025-11-26T12:01:13.061410Z [error    ] Size x2#1 was computed from a source operation without bounds checking [stackoverflow] file_name=stack_taint_overflow.py line=310<br>2025-11-26T12:01:13.061485Z [error    ] Dest variable &amp;local was computed with buffer size 16 [stackoverflow] file_name=stack_taint_overflow.py line=313<br>2025-11-26T12:01:13.063258Z [info     ] Saved result to libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001.json [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=4632<br>2025-11-26T12:01:13.063552Z [info     ] Saved result DFG to libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001_dfg.json [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=4638<br>2025-11-26T12:01:13.063662Z [info     ] <br>-----------------------------------------------------------------------------------------------<br> [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=4639<br>2025-11-26T12:01:13.064042Z [info     ] 0x400640: Tracing var_1c#1 = user_size#0, instructions to trace: 9 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.064149Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.064439Z [info     ] 0x400640: Tracing param: var_1c#1 = user_size#0 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.065253Z [info     ] 0x400644: Tracing param: x1#1 = sx.q(var_1c#1) [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.065744Z [info     ] 0x40064c: Tracing param: x2#1 = x1#1 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.066304Z [info     ] 0x40065c: Tracing param: x2_1#2 = zx.q(var_1c#1) [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.066722Z [info     ]  Detected operation MLIL_CALL_SSA for instruction x0_1#2, mem#2 = 0x400540(&quot;Copied: %s (len=%d)\n&quot;, x1_2#3, x2_1#2) @ mem#1 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=2160<br>2025-11-26T12:01:13.066985Z [info     ]  Resolved [printf] by address: 0x400540 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=2184<br>2025-11-26T12:01:13.067471Z [warning  ] Sink printf skipped for return value tracking [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=2361<br>2025-11-26T12:01:13.067681Z [info     ] Sink printf detected  [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=2365<br>2025-11-26T12:01:13.068068Z [info     ] Reverse recursive search for: x0_1#2, mem#2 = 0x400540(&quot;Copied: %s (len=%d)\n&quot;, x1_2#3, x2_1#2) @ mem#1 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1301<br>2025-11-26T12:01:13.068797Z [info     ] printf with static param: &quot;Copied: %s (len=%d)\n&quot; [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1334<br>2025-11-26T12:01:13.069070Z [info     ] Reverse recursive source param definition search for param: x1_2#3 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.069467Z [info     ]  Found param: x1_2#3 = &amp;local [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1088<br>2025-11-26T12:01:13.069706Z [info     ] End of reverse search, src param: &amp;local, forward taint search required [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1364<br>2025-11-26T12:01:13.069941Z [info     ] Reverse recursive source param definition search for param: x2_1#2 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1348<br>2025-11-26T12:01:13.070176Z [info     ]  Found param usage in sign extension operation: x2_1#2 = zx.q(var_1c#1) [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1027<br>2025-11-26T12:01:13.070313Z [info     ]  Found param usage: var_1c#1 = user_size#0 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1068<br>2025-11-26T12:01:13.070527Z [info     ] End of reverse search, definition: var_1c#1 [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1193<br>2025-11-26T12:01:13.074662Z [info     ] 0x40066c: &quot;Copied: %s (len=%d)\n&quot; passed to: printf [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1651<br>2025-11-26T12:01:13.075342Z [info     ] 0x40066c: x1_2#3 passed to: printf as SRC param [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1632<br>2025-11-26T12:01:13.075449Z [info     ] 0x40066c: x2_1#2 passed to: printf as VAR_ARGS param [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=1641<br>2025-11-26T12:01:13.075522Z [info     ] stackoverflow module check passed [stackoverflow] analysis_progress=39.2 file_name=analyzer.py line=2601<br>2025-11-26T12:01:13.075619Z [info     ] printf                         [stackoverflow] file_name=argstream.py line=24<br>2025-11-26T12:01:13.075888Z [info     ] 0x400648: Tracing x0#1 = &amp;local, instructions to trace: 7 [stackoverflow] analysis_progress=40.5 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.075979Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=40.5 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.076201Z [info     ] 0x400648: Tracing param: x0#1 = &amp;local [stackoverflow] analysis_progress=40.5 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.076796Z [info     ] 0x400660: Tracing x1_2#3 = &amp;local, instructions to trace: 2 [stackoverflow] analysis_progress=41.9 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.076876Z [info     ] Forward recursive param use search... [stackoverflow] analysis_progress=41.9 file_name=analyzer.py line=3289<br>2025-11-26T12:01:13.077098Z [info     ] 0x400660: Tracing param: x1_2#3 = &amp;local [stackoverflow] analysis_progress=41.9 file_name=analyzer.py line=1825<br>2025-11-26T12:01:13.077527Z [info     ] 0x400678: Tracing return x0_1#2, instructions to trace: 0 [stackoverflow] analysis_progress=43.2 file_name=analyzer.py line=3275<br>2025-11-26T12:01:13.077611Z [info     ] End of analysis: libmemcpy_overflow-aarch64-linux-gnu.so <br>-------------------------------------------------------------------------------------<br><br> [stackoverflow] analysis_progress=44.6 file_name=analyzer.py line=3809<br>2025-11-26T12:01:13.077680Z [info     ] [stackoverflow] analysis_progress=100 file_name=analyzer.py line=3814</pre><p>Now let’s focus on most important parts of the log. I will refer them in parts<br>to be easier to follow</p><pre>2025-11-26T12:01:12.196412Z [debug    ] [stackoverflow] analysis_progress=0 engine_version=0.0.17 file_name=__main__.py line=62<br>Opening main_static2-aarch64-linux-gnu.bndb: 100%|███████| 100/100 [00:00&lt;00:00]<br>2025-11-26T12:01:12.757899Z [info     ] Loaded database: tests/analysis/libload/main_static2-aarch64-linux-gnu.bndb [stackoverflow] line=132<br>Opening libsink-aarch64-linux-gnu.so.bndb: 100%|█████████| 100/100 [00:00&lt;00:00]<br>2025-11-26T12:01:12.772404Z [info     ] Loaded database: /home/h0rac/unpwnable_things/tests/analysis/libload/libsink-aarch64-linux-gnu.so.bndb [stackoverflow] line=132<br>2025-11-26T12:01:12.772614Z [info     ] Loaded external library: ./libsink-aarch64-linux-gnu.so -&gt; /home/h0rac/unpwnable_things/tests/analysis/libload/libsink-aarch64-linux-gnu.so [stackoverflow] line=334<br>Opening libmemcpy_overflow-aarch64-linux-gnu.so.bndb: 100%|█| 100/100 [00:00&lt;00:<br>2025-11-26T12:01:12.788591Z [info     ] Loaded database: /home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so.bndb [stackoverflow] line=132<br>2025-11-26T12:01:12.788922Z [info     ] Loaded external library: ./libmemcpy_overflow-aarch64-linux-gnu.so -&gt; /home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so [stackoverflow] line=334<br>2025-11-26T12:01:12.789175Z [debug    ] Skipping system library libc.so.6 for /home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu [stackoverflow] line=272<br>2025-11-26T12:01:12.857159Z [debug    ] [callconv] Skipping call convention fix (database view: /home/h0rac/unpwnable_things/tests/analysis/libload/main_static2-aarch64-linux-gnu.bndb) [stackoverflow] file_name=analyzer.py line=539</pre><p>First we load the libraries and because I already had CFG build for it load database files to speed up analysis for main binary and libraries. We also skip libc.so.6 from analysis because it is not custom library. Call convention is also skipped because aarch64 does it well.</p><p>Each analysed file is marked with information which file is currently under analysis.<br>Next we detect possible sources and sinks in all files</p><pre>2025-11-26T12:01:12.959899Z [debug    ] func_name: main, func_addr: 0x400a14, func_sinks_number: 3, func_sinks: [&#39;strlen&#39;, &#39;printf&#39;, &#39;strlen&#39;], func_sources_number: 1 func_sources: [&#39;fgets&#39;] [stackoverflow] file_name=analyzer.py line=4018<br>2025-11-26T12:01:12.960007Z [debug    ] func_name: dangerous_sink, func_addr: 0x400634, func_sinks_number: 2, func_sinks: [&#39;strcpy&#39;, &#39;printf&#39;], func_sources_number: 0 func_sources: [] [stackoverflow] file_name=analyzer.py line=4018<br>2025-11-26T12:01:12.960075Z [debug    ] func_name: memcpy_overflow_sink, func_addr: 0x400634, func_sinks_number: 2, func_sinks: [&#39;memcpy&#39;, &#39;printf&#39;], func_sources_number: 0 func_sources: [] [stackoverflow] file_name=analyzer.py line=4018</pre><p>One we detect sources/sinks we start analysis of the files</p><pre>025-11-26T12:01:13.037611Z [info     ] Checking if vulnerable to stack overflow bug class ... [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2679<br>2025-11-26T12:01:13.037744Z [info     ] Current instruction : mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=2682<br>2025-11-26T12:01:13.038413Z [debug    ] Chain for x1#1:                [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.038502Z [debug    ] [&#39;x1#1 = var_18#1&#39;, &#39;var_18#1 = user_data#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.038591Z [debug    ] Found common parameter: {&#39;user_data#0&#39;, &#39;var_18#1&#39;} [stackoverflow] file_name=stack_taint_overflow.py line=1265<br>2025-11-26T12:01:13.038718Z [error    ] Possible type stack overflow detected at 0x400648 | mem#1 = 0x400530(x0#1, x1#1) @ mem#0 [stackoverflow] file_name=stack_taint_overflow.py line=1869<br>2025-11-26T12:01:13.038814Z [error    ] Variable x1#1 was computed from a source operation without bounds checking [stackoverflow] file_name=stack_taint_overflow.py line=1872<br>2025-11-26T12:01:13.038896Z [error    ] Dest variable &amp;buf was computed with buffer size 16 [stackoverflow] file_name=stack_taint_overflow.py line=1875<br>2025-11-26T12:01:13.040709Z [info     ] Saved result to libtest/stackoverflow/libsink-aarch64-linux-gnu.so_00001.json [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=4632<br>2025-11-26T12:01:13.041054Z [info     ] Saved result DFG to libtest/stackoverflow/libsink-aarch64-linux-gnu.so_00001_dfg.json [stackoverflow] analysis_progress=32.4 file_name=analyzer.py line=4638</pre><p>Here we have information that stackoverflow was detected in libsink library and DFG (Data Flow Graph) was saved in working directory</p><p>After that engine is finding new vulnerability in libmemcpy_overflow library and also saves the DFG as file.</p><pre>025-11-26T12:01:13.059870Z [info     ] Checking if vulnerable to stack overflow bug class ... [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2679<br>2025-11-26T12:01:13.060011Z [info     ] Current instruction : mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=2682<br>2025-11-26T12:01:13.060410Z [info     ] Size x2#1 is of type MLIL_VAR_SSA [stackoverflow] file_name=stack_taint_overflow.py line=289<br>2025-11-26T12:01:13.060871Z [debug    ] Chain for x1_1#2:              [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.060963Z [debug    ] [&#39;x1_1#2 = var_18#1&#39;, &#39;var_18#1 = user_input#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.061033Z [debug    ] Chain for x2#1:                [stackoverflow] file_name=stack_taint_overflow.py line=1261<br>2025-11-26T12:01:13.061088Z [debug    ] [&#39;x2#1 = x1#1&#39;, &#39;x1#1 = sx.q(var_1c#1)&#39;, &#39;var_1c#1 = user_size#0&#39;] [stackoverflow] file_name=stack_taint_overflow.py line=1262<br>2025-11-26T12:01:13.061143Z [debug    ] No common calculations found.  [stackoverflow] file_name=stack_taint_overflow.py line=1270<br>2025-11-26T12:01:13.061213Z [info     ] Found independent tainted parameters: {&#39;user_size#0&#39;, &#39;user_input#0&#39;} [stackoverflow] file_name=stack_taint_overflow.py line=1274<br>2025-11-26T12:01:13.061334Z [error    ] Possible type stack overflow detected at 0x400654 | mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0 [stackoverflow] file_name=stack_taint_overflow.py line=307<br>2025-11-26T12:01:13.061410Z [error    ] Size x2#1 was computed from a source operation without bounds checking [stackoverflow] file_name=stack_taint_overflow.py line=310<br>2025-11-26T12:01:13.061485Z [error    ] Dest variable &amp;local was computed with buffer size 16 [stackoverflow] file_name=stack_taint_overflow.py line=313<br>2025-11-26T12:01:13.063258Z [info     ] Saved result to libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001.json [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=4632<br>2025-11-26T12:01:13.063552Z [info     ] Saved result DFG to libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001_dfg.json [stackoverflow] analysis_progress=37.8 file_name=analyzer.py line=4638</pre><p>Now lets look on the saved files structure:</p><pre>➜  unpwnable_things git:(prod) ✗ tree libtest <br>libtest<br>├── main_static2-aarch64-linux-gnu_00001.log<br>└── stackoverflow<br>    ├── libmemcpy_overflow-aarch64-linux-gnu.so_00001_dfg.json<br>    ├── libmemcpy_overflow-aarch64-linux-gnu.so_00001.json<br>    ├── libsink-aarch64-linux-gnu.so_00001_dfg.json<br>    └── libsink-aarch64-linux-gnu.so_00001.json</pre><pre>cat libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001_dfg.json                                         <br>[<br>    {<br>        &quot;taint_dfg&quot;: [<br>            [<br>                &quot;0x400a94&quot;,<br>                &quot;fgets-x0_9#4&quot;,<br>                [<br>                    &quot;x0_8#3&quot;,<br>                    &quot;0x100&quot;,<br>                    &quot;x2#1&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a88&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_8#3 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a8c&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#1 = x1_1#1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a84&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_1#1 = [stdin].q @ mem#2&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#2 = \u03d5(envp#0, x2#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#3 = \u03d5(x2#1, x2#2)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#6 = \u03d5(x1_1#1, x1#5)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae0&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_3#3 = zx.q(user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a44&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#1 = x0_4#15&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a50&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#4 = zx.q(user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#5 = \u03d5(x1_3#3, x1#4)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#2 = \u03d5(user_len#0, user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a3c&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_3#14 = user_data#1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a38&quot;,<br>                &quot;main&quot;,<br>                &quot;user_data#1 = x0_2#13&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a34&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_2#13 = [x0_1#12 + 8].q @ mem#0&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ab4&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_11#5 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ab8&quot;,<br>                &quot;x0_12#6 = strcspn&quot;,<br>                [<br>                    &quot;x0_11#5&quot;,<br>                    &quot;0x400b28&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400abc&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_2#2 = x0_12#6&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ac4&quot;,<br>                &quot;main&quot;,<br>                &quot;[&amp;input + x1_2#2].b = 0 @ mem#4 -&gt; mem#5&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ac8&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_13#7 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400acc&quot;,<br>                &quot;strlen-x0_14#8&quot;,<br>                [<br>                    &quot;x0_13#7&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad0&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#1 = x0_14#8&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae4&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                [<br>                    &quot;x0_16#10&quot;,<br>                    &quot;x1_3#3&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad4&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_15#9 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad8&quot;,<br>                &quot;dangerous_sink&quot;,<br>                [<br>                    &quot;x0_15#9&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400adc&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_16#10 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400aa0&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#11 = 1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#20 = \u03d5(x0_10#11, x0_10#19)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;return x0_10#20&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#19 = 0&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x40063c&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;var_18#1 = user_data#0&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400644&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x1#1 = var_18#1&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400648&quot;,<br>                &quot;strcpy&quot;,<br>                [<br>                    &quot;x0#1&quot;,<br>                    &quot;x1#1&quot;<br>                ],<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400640&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x0#1 = &amp;buf&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400650&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x1_1#2 = &amp;buf&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x40065c&quot;,<br>                &quot;printf-x0_1#2&quot;,<br>                [<br>                    &quot;\&quot;Copied data: %s\\n\&quot;&quot;,<br>                    &quot;x1_1#2&quot;<br>                ],<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x40063c&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;var_18#1 = user_input#0&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400650&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x1_1#2 = var_18#1&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400654&quot;,<br>                &quot;memcpy&quot;,<br>                [<br>                    &quot;x0#1&quot;,<br>                    &quot;x1_1#2&quot;,<br>                    &quot;x2#1&quot;<br>                ],<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400648&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x0#1 = &amp;local&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x40064c&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x2#1 = x1#1&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400644&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x1#1 = sx.q(var_1c#1)&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400640&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;var_1c#1 = user_size#0&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ]<br>        ],<br>        &quot;severity&quot;: &quot;HIGH&quot;,<br>        &quot;instruction&quot;: &quot;mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0&quot;,<br>        &quot;instruction_address&quot;: &quot;0x400654&quot;,<br>        &quot;dest&quot;: &quot;&amp;local&quot;,<br>        &quot;dest_addr&quot;: &quot;0x400648&quot;,<br>        &quot;source&quot;: &quot;x2#1&quot;,<br>        &quot;source_addr&quot;: &quot;0x400654&quot;,<br>        &quot;vuln_description&quot;: &quot;Size [x2#1] was computed from a source operation without bounds checking. Dest variable [&amp;local] was computed with buffer size 16&quot;,<br>        &quot;module&quot;: &quot;stackoverflow&quot;,<br>        &quot;library&quot;: &quot;/home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so.bndb&quot;<br>    }<br>]%                                </pre><p>We have information that fgets is our source of data and our DFG graphs for library and main binary as single flow in the table. We also have detailed description of the detected bug.</p><p>Now lets on the second found bug:</p><pre> cat libtest/stackoverflow/libmemcpy_overflow-aarch64-linux-gnu.so_00001_dfg.json <br>[<br>    {<br>        &quot;taint_dfg&quot;: [<br>            [<br>                &quot;0x400a94&quot;,<br>                &quot;fgets-x0_9#4&quot;,<br>                [<br>                    &quot;x0_8#3&quot;,<br>                    &quot;0x100&quot;,<br>                    &quot;x2#1&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a88&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_8#3 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a8c&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#1 = x1_1#1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a84&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_1#1 = [stdin].q @ mem#2&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#2 = \u03d5(envp#0, x2#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x2#3 = \u03d5(x2#1, x2#2)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#6 = \u03d5(x1_1#1, x1#5)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae0&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_3#3 = zx.q(user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a44&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#1 = x0_4#15&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a50&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#4 = zx.q(user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x1#5 = \u03d5(x1_3#3, x1#4)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#2 = \u03d5(user_len#0, user_len#1)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a3c&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_3#14 = user_data#1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a38&quot;,<br>                &quot;main&quot;,<br>                &quot;user_data#1 = x0_2#13&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400a34&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_2#13 = [x0_1#12 + 8].q @ mem#0&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ab4&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_11#5 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ab8&quot;,<br>                &quot;x0_12#6 = strcspn&quot;,<br>                [<br>                    &quot;x0_11#5&quot;,<br>                    &quot;0x400b28&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400abc&quot;,<br>                &quot;main&quot;,<br>                &quot;x1_2#2 = x0_12#6&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ac4&quot;,<br>                &quot;main&quot;,<br>                &quot;[&amp;input + x1_2#2].b = 0 @ mem#4 -&gt; mem#5&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ac8&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_13#7 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400acc&quot;,<br>                &quot;strlen-x0_14#8&quot;,<br>                [<br>                    &quot;x0_13#7&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad0&quot;,<br>                &quot;main&quot;,<br>                &quot;user_len#1 = x0_14#8&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae4&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                [<br>                    &quot;x0_16#10&quot;,<br>                    &quot;x1_3#3&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad4&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_15#9 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ad8&quot;,<br>                &quot;dangerous_sink&quot;,<br>                [<br>                    &quot;x0_15#9&quot;<br>                ],<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400adc&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_16#10 = &amp;input&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400aa0&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#11 = 1&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#20 = \u03d5(x0_10#11, x0_10#19)&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400af0&quot;,<br>                &quot;main&quot;,<br>                &quot;return x0_10#20&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x400ae8&quot;,<br>                &quot;main&quot;,<br>                &quot;x0_10#19 = 0&quot;,<br>                &quot;main&quot;<br>            ],<br>            [<br>                &quot;0x40063c&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;var_18#1 = user_data#0&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400644&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x1#1 = var_18#1&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400648&quot;,<br>                &quot;strcpy&quot;,<br>                [<br>                    &quot;x0#1&quot;,<br>                    &quot;x1#1&quot;<br>                ],<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400640&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x0#1 = &amp;buf&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x400650&quot;,<br>                &quot;dangerous_sink&quot;,<br>                &quot;x1_1#2 = &amp;buf&quot;,<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x40065c&quot;,<br>                &quot;printf-x0_1#2&quot;,<br>                [<br>                    &quot;\&quot;Copied data: %s\\n\&quot;&quot;,<br>                    &quot;x1_1#2&quot;<br>                ],<br>                &quot;dangerous_sink&quot;<br>            ],<br>            [<br>                &quot;0x40063c&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;var_18#1 = user_input#0&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400650&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x1_1#2 = var_18#1&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400654&quot;,<br>                &quot;memcpy&quot;,<br>                [<br>                    &quot;x0#1&quot;,<br>                    &quot;x1_1#2&quot;,<br>                    &quot;x2#1&quot;<br>                ],<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400648&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x0#1 = &amp;local&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x40064c&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x2#1 = x1#1&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400644&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;x1#1 = sx.q(var_1c#1)&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ],<br>            [<br>                &quot;0x400640&quot;,<br>                &quot;memcpy_overflow_sink&quot;,<br>                &quot;var_1c#1 = user_size#0&quot;,<br>                &quot;memcpy_overflow_sink&quot;<br>            ]<br>        ],<br>        &quot;severity&quot;: &quot;HIGH&quot;,<br>        &quot;instruction&quot;: &quot;mem#1 = 0x400510(x0#1, x1_1#2, x2#1) @ mem#0&quot;,<br>        &quot;instruction_address&quot;: &quot;0x400654&quot;,<br>        &quot;dest&quot;: &quot;&amp;local&quot;,<br>        &quot;dest_addr&quot;: &quot;0x400648&quot;,<br>        &quot;source&quot;: &quot;x2#1&quot;,<br>        &quot;source_addr&quot;: &quot;0x400654&quot;,<br>        &quot;vuln_description&quot;: &quot;Size [x2#1] was computed from a source operation without bounds checking. Dest variable [&amp;local] was computed with buffer size 16&quot;,<br>        &quot;module&quot;: &quot;stackoverflow&quot;,<br>        &quot;library&quot;: &quot;/home/h0rac/unpwnable_things/tests/analysis/libload/libmemcpy_overflow-aarch64-linux-gnu.so.bndb&quot;<br>    }<br>]%    </pre><p>Perfect we have similar flow from source of fgets to the vulnerable memcpy when user is able to control size parameter.</p><p>Hope this example shows you that we seriously finding bugs via ByteRay engine and services. In case of any technical questions please contact me via grzegorz@byteray.co.uk email address</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84b9588d7f80" width="1" height="1" alt=""><hr><p><a href="https://blog.byteray.co.uk/hunting-hidden-gems-in-libraries-84b9588d7f80">Hunting hidden gems in libraries</a> was originally published in <a href="https://blog.byteray.co.uk/">ByteRay</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>