Skip to content
RCE Write-up Intermediate

Airgeddon — ESSID-based Eval Injection and OS Command Injection

ESSID values taken from nearby wireless access points were concatenated into attack command strings and later run through Bash eval, so a crafted network name could inject shell commands. An attacker in wireless range could get arbitrary commands executed with the privileges of the airgeddon process, including root, once the user selects the malicious network and starts an affected attack module.

medium.com

Published on medium.com

Airgeddon

VulnSVNC, on 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. 8 min read.

Context

airgeddon is a Bash-based wireless network security auditing tool, commonly run with root privileges. The affected file is airgeddon.sh in the repository v1s1t0r1sh3r3/airgeddon. The reported affected version is v12.02; the fixed version is given as v12.10, marked as assumed in the report.

The feature at the centre of the finding is the tool's attack command construction. When a user selects a discovered wireless network and launches an attack module, airgeddon builds a shell command string that includes the network's ESSID, the human-readable network name taken from 802.11 beacon and probe frames. That string is handed to manage_output(), which launches the attack in a terminal window. The primary sink is manage_output(); the example call site is exec_wdsconfusion(). The report also lists DoS Pursuit Mode, WIDS/WIPS/WDS Confusion and Beacon Flood as additional affected paths.

The vulnerability class is given as CWE-95 (Eval Injection) leading to CWE-78 (OS Command Injection), severity HIGH, attack vector Adjacent Network (AV:A), privileges required None, user interaction Required. The related public advisory is GHSA-vfg5-33mv-cmrx, titled "Command injection via crafted ESSID in DoS attack command construction".

A note on disclosure: the report says the issue was independently discovered and reported to the maintainers on 31 October. GitHub's advisory for the same root cause was published on 12 November 2026 with credit assigned to a different researcher, OscarAkaElvis. The report points out that the advisory's publish date reflects when the maintainers made it public, not when they received either report, so report ordering cannot be determined from that date alone. It states two possibilities plainly: the same root cause (ESSID to eval to shell) may have been found independently by more than one researcher through different call sites, or the two reports may genuinely overlap. The credit question is left to the maintainers and GitHub's coordinated-disclosure process.

Setup

The real-environment test used the following parameters:

Parameter Value
Operating system Ubuntu
Execution environment Physical machine
Source airgeddon GitHub repository
Branch master
Execution privileges Root
Launch command sudo bash airgeddon.sh
Window management AIRGEDDON_WINDOWS_HANDLING=xterm
Test payload Harmless id command
Target version v12.02

The test used a wireless interface switched into monitor mode, an access point with a crafted ESSID, and airgeddon running as root. No authentication or elevated privileges are needed on the attacker side: the attacker only has to be within wireless range and broadcast a crafted ESSID.

Finding it

During source code analysis the researcher noticed that ESSID values obtained from nearby wireless networks are incorporated into command strings without sufficient input validation or shell escaping. The taint flow is:

Stage Description
Source ESSID values obtained from 802.11 beacon/probe frames through tools such as airodump-ng or wash.
Assignment When a user selects a discovered network, its raw ESSID is assigned to the essid variable without sufficient sanitisation.
Propagation The ESSID is concatenated into an attack command string.
Sink The resulting command string reaches manage_output(), where it is evaluated using Bash eval.

Because an ESSID can be set by an external wireless access point, it has to be treated as untrusted input. The report frames the underlying weaknesses as four points: insufficient input validation of ESSID values before they enter command strings; missing shell escaping before untrusted input reaches the command execution layer; unsafe use of eval, with commands built as strings and evaluated instead of being run through properly quoted Bash argument arrays; and a trust boundary violation, where externally controlled wireless metadata is treated as trusted configuration data.

Exploitation

Step 1: Configure an access point with a crafted ESSID

A wireless access point was configured with an ESSID containing a harmless command-substitution test string. The report does not print the exact ESSID used in the real-environment test.

Step 2: Launch airgeddon as root

Bash
sudo bash airgeddon.sh

airgeddon was started on the test system with root privileges, with AIRGEDDON_WINDOWS_HANDLING=xterm set.

Step 3: Put the interface into monitor mode and scan

The wireless interface was switched into monitor mode, and the target discovery functionality was used to scan nearby access points. The specially crafted ESSID appeared in the discovered network list.

Step 4: Select the network and launch the attack module

The network was selected as the target, and the WIDS/WIPS/WDS Confusion attack module was launched.

Step 5: Inspect the filesystem for the marker

The filesystem was then inspected for the expected test marker:

Text
$ ls -la /tmp/poc_marker.txt-rw-r--r-- 1 root root 40 Oct 31 15:30 /tmp/poc_marker.txt
Text
$ cat /tmp/poc_marker.txtuid=0(root) gid=0(root) groups=0(root)

The file ownership and the command output show that the injected id command ran with root privileges, the same privileges as the airgeddon process.

Isolated harness

To demonstrate the root cause without real wireless hardware, airodump-ng/wash or airgeddon itself, the report includes a local harness, poc_local_airgeddon.sh. It mimics the exec_wdsconfusion() to manage_output() call chain as an isolated copy, reproduces the vulnerable eval line with identical logic, and reports the result by checking whether a PROOF_FILE was created. The INJECTED_ESSID variable is intentionally left as a placeholder, <INJECT_HERE>, and contains no working command-injection string, so the file can be shared publicly without distributing a ready-to-use weaponised payload. Anyone filling in the field and testing with a real command substitution ($() or backticks) should do so only in their own isolated lab environment.

Secondary observation

When an ESSID contained literal double-quote characters, a separate parsing issue appeared, producing a shell parsing error similar to:

Text
unexpected EOF while looking for matching quote

This breaks the affected command execution path and may additionally cause denial of service.

Root cause

The vulnerable sink is manage_output():

Bash
function manage_output() {  ...  xterm_parameters="${1}"  tmux_command_line="${2}"  xterm_command_line="\"${2}\""  ...  case "${AIRGEDDON_WINDOWS_HANDLING}" in    "xterm")      eval "xterm ${xterm_parameters} -e ${xterm_command_line}${command_tail}"      ;;  esac}

The example call site, exec_wdsconfusion(), passes the ESSID into the command string:

Bash
manage_output "+j -bg \"#000000\" -fg \"#FF0000\" -geometry ${g1_topleft_window} \-T \"wids / wips / wds confusion attack\"" \"${mdk_command} ${interface} w -e '${essid}' -c ${channel}" \"wids / wips / wds confusion attack" "active"

The ESSID is initially enclosed in single quotes, but the resulting command string is then processed through eval. That adds a second shell parsing stage, so the original quoting does not reliably protect against command substitution ($(), backticks) or other shell metacharacters. The same general pattern was identified in additional attack execution paths:

  • Approximately lines 5542 and 5554: DoS Pursuit Mode commands involving mdk_command and ESSID values.
  • Approximately line 5817: WIDS/WIPS/WDS Confusion attack.
  • Approximately line 5846: Beacon Flood attack.
  • Approximately line 20096: shared command execution logic in manage_output().

The report notes that these line references are based on the reviewed source snapshot and should be verified against the exact v12.02 release before remediation.

Impact

The report rates the impact as follows:

Security property Impact Description
Confidentiality High Unauthorised access to files and sensitive system information.
Integrity High Modification of system files and application configurations.
Availability High Execution of commands capable of disrupting system services.

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. The attack requires an attacker-controlled access point broadcasting a crafted ESSID, and 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 executed command inherits the privileges of the airgeddon process; if airgeddon runs as root, the impact may extend to full system compromise. The secondary parsing issue can additionally disrupt the command execution path, causing denial of service.

Fix

The report recommends four measures; it does not describe a change that was actually made.

  1. Eliminate unsafe eval usage. The preferred solution is to stop building shell command strings dynamically and use Bash argument arrays to preserve argument boundaries and prevent extra shell parsing:
Bash
cmd=(xterm "${params[@]}" -e "${inner_cmd[@]}")"${cmd[@]}"

All arguments should be passed separately rather than concatenated into a single executable string.

  1. Implement safe input handling. ESSID values must be treated as untrusted external input and should not be interpolated directly into shell commands. Where shell serialisation is genuinely unavoidable, context-specific escaping should be applied, but escaping is not a substitute for removing eval.

  2. Introduce input validation. Centralised validation should cover externally supplied wireless metadata, including ESSID, BSSID, channel information and other values from wireless scanning tools. Validation should follow the application's actual requirements and the relevant IEEE 802.11 field constraints, and legitimate ESSID values should not be rejected merely because they contain special characters.

  3. Centralise secure command execution. A central command execution mechanism should be introduced, with all external process invocations using properly quoted arguments and avoiding shell interpretation wherever possible. This reduces the likelihood of similar injection vulnerabilities in other modules.

Variants to test

  • Other attack modules that embed the ESSID. The report names DoS Pursuit Mode and Beacon Flood alongside WIDS/WIPS/WDS Confusion. A positive result is the same marker file or command output appearing after the module is launched against a crafted ESSID.
  • Other externally supplied wireless metadata. The report recommends validating BSSID and channel information as well as ESSID. A positive result is a crafted BSSID or channel value reaching a command string.
  • Literal double quotes in the ESSID. The report observed a parsing error with this input. A positive result is a reproducible unexpected EOF while looking for matching quote error, or another disruption of the command execution path.
  • Command substitution forms. The report mentions both $() and backticks as the substitution syntaxes that quoting fails to stop. A positive result is either form executing in the isolated harness or in a lab access point's ESSID.
  • Other eval call sites in the same codebase. The report identifies manage_output() as the shared sink and notes that centralising command execution would reduce similar issues elsewhere. A positive result is any other function that passes externally influenced data into eval.

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. 19 min read.

What happened, in plain words

airgeddon is a free program that people who test the security of their own Wi-Fi networks run on a computer. It is written in a language called Bash, which is the language of the command line on Linux systems. It is usually started with a special level of permission called root, which means "allowed to do anything on this computer".

When airgeddon looks around for nearby Wi-Fi networks, it reads the name of each network. That name is called the ESSID. It is the text you see in the list of Wi-Fi networks on your phone, for example "HomeWifi" or "CafeGuest".

The researcher found that airgeddon takes that network name and glues it into a command that the computer will later run. The name is not checked carefully first. The finished command is then handed to a Bash feature called eval, which reads a piece of text and runs it as if it were a command. Because the network name ends up inside that text, someone who controls a Wi-Fi network can put extra instructions into their network name. When a person running airgeddon picks that network and starts an attack module, those extra instructions run on their computer, with the same power airgeddon has. If airgeddon was started as root, that means the attacker can run anything as root.

This kind of bug has a name: an injection. The everyday comparison is a form where you write your name in a box, and the person reading the form treats whatever is in the box as an instruction. If you write "please also send me the keys to the office" in the name box, and the clerk follows it, the form has been abused. Here the "name box" is the Wi-Fi network name, and the "clerk" is eval.

The researcher tested this in a lab with a harmless command, id, which just prints who the computer thinks you are. The test showed the command ran as root. The report also notes a second, smaller problem: a network name containing a double-quote character can break the command and cause an error, which can stop the tool from working.

The product and the feature

airgeddon is described as a Bash-based wireless network security auditing tool, commonly run with root privileges. "Auditing" here means checking your own wireless setup for weaknesses. The affected file is airgeddon.sh in the repository v1s1t0r1sh3r3/airgeddon. A repository is a public folder on a code hosting site (GitHub) where the program's source code lives. The reported affected version is v12.02; the fixed version is given as v12.10, marked as assumed in the report.

The feature at the centre of the finding is the tool's attack command construction. When a user selects a discovered wireless network and launches an attack module, airgeddon builds a shell command string that includes the network's ESSID, the human-readable network name taken from 802.11 beacon and probe frames. A "shell command string" is just a line of text that the computer's command interpreter will read and act on. "802.11" is the technical name of the family of standards that Wi-Fi uses. "Beacon" and "probe" frames are small radio messages that Wi-Fi access points and devices exchange to announce and look for networks; the network name travels inside them.

That string is handed to manage_output(), which launches the attack in a terminal window. A "terminal window" is the black window where you type commands. The primary sink is manage_output(); the example call site is exec_wdsconfusion(). "Sink" means the place where the dangerous action finally happens, like the drain at the bottom of a pipe. "Call site" means the place in the code that calls that function. The report also lists DoS Pursuit Mode, WIDS/WIPS/WDS Confusion and Beacon Flood as additional affected paths. These are names of attack modules inside airgeddon; "DoS" means denial of service, an attack that aims to make something stop working.

The vulnerability class is given as CWE-95 (Eval Injection) leading to CWE-78 (OS Command Injection), severity HIGH, attack vector Adjacent Network (AV:A), privileges required None, user interaction Required. A "vulnerability class" is a category of bug. CWE is a public catalogue of such categories, like a library classification system for software weaknesses. "Eval Injection" means untrusted text reaching eval. "OS Command Injection" means untrusted text reaching the operating system's command runner. "Severity HIGH" is a rating of how bad it is. "Attack vector Adjacent Network" means the attacker has to be physically near, within radio range. "Privileges required None" means the attacker does not need an account on the victim's machine. "User interaction Required" means the victim has to do something, here selecting the network and starting the module.

The related public advisory is GHSA-vfg5-33mv-cmrx, titled "Command injection via crafted ESSID in DoS attack command construction". An "advisory" is an official public notice about a security problem, like a recall notice for a product.

A note on disclosure: the report says the issue was independently discovered and reported to the maintainers on 31 October. "Disclosure" is the process of telling the people who make a product about a bug. "Maintainers" are the people who look after the code. GitHub's advisory for the same root cause was published on 12 November 2026 with credit assigned to a different researcher, OscarAkaElvis. The report points out that the advisory's publish date reflects when the maintainers made it public, not when they received either report, so report ordering cannot be determined from that date alone. It states two possibilities plainly: the same root cause (ESSID to eval to shell) may have been found independently by more than one researcher through different call sites, or the two reports may genuinely overlap. The credit question is left to the maintainers and GitHub's coordinated-disclosure process. "Coordinated disclosure" means the people who found the bug and the people who make the product agree on when to tell the world, so that users have time to update.

Setup

The real-environment test used the following parameters:

Parameter Value
Operating system Ubuntu
Execution environment Physical machine
Source airgeddon GitHub repository
Branch master
Execution privileges Root
Launch command sudo bash airgeddon.sh
Window management AIRGEDDON_WINDOWS_HANDLING=xterm
Test payload Harmless id command
Target version v12.02

Ubuntu is a popular free operating system based on Linux. "Physical machine" means a real computer, not a simulated one. "Branch master" means the main line of development in the code repository. "Payload" means the piece of data the attacker sends in, here a harmless command used only to prove the bug exists. "xterm" is a simple terminal window program; the setting tells airgeddon to use it.

The test needed a wireless interface that could be put into monitor mode, a nearby access point whose ESSID the tester controlled, and airgeddon running as root. "Monitor mode" is a special way of running a Wi-Fi card where it listens to all radio traffic around it instead of just connecting to one network, like holding a microphone up to a room instead of talking to one person. An "access point" is the box that broadcasts a Wi-Fi network. No authentication or elevated privileges are needed on the attacker side: the attacker only has to be within wireless range and broadcast a crafted ESSID. "Authentication" means logging in; "elevated privileges" means extra permissions.

Finding it

During source code analysis the researcher noticed that ESSID values obtained from nearby wireless networks are incorporated into command strings without sufficient input validation or shell escaping. "Source code analysis" means reading the program's text to understand what it does. "Input validation" means checking that data coming from outside looks like what you expect before using it. "Shell escaping" means marking special characters in text so the shell treats them as plain text rather than as instructions.

The taint flow is:

Stage Description
Source ESSID values obtained from 802.11 beacon/probe frames through tools such as airodump-ng or wash.
Assignment When a user selects a discovered network, its raw ESSID is assigned to the essid variable without sufficient sanitisation.
Propagation The ESSID is concatenated into an attack command string.
Sink The resulting command string reaches manage_output(), where it is evaluated using Bash eval.

"Taint flow" is a way of tracing untrusted data through a program, like following a drop of dye through pipes. "Source" is where the untrusted data enters. "Variable" is a named box in a program that holds a value. "Sanitisation" means cleaning data so it is safe to use. "Concatenate" means glue together end to end. airodump-ng and wash are separate tools that scan for Wi-Fi networks; airgeddon uses them to gather network names.

Because an ESSID can be set by an external wireless access point, it has to be treated as untrusted input. The report frames the underlying weaknesses as four points: insufficient input validation of ESSID values before they enter command strings; missing shell escaping before untrusted input reaches the command execution layer; unsafe use of eval, with commands built as strings and evaluated instead of being run through properly quoted Bash argument arrays; and a trust boundary violation, where externally controlled wireless metadata is treated as trusted configuration data. A "trust boundary" is the line between data you control and data someone else controls; crossing it without checking is the violation. "Metadata" here just means data about the network, such as its name.

Exploitation

Step 1: Configure an access point with a crafted ESSID

A wireless access point was configured with an ESSID containing a harmless command-substitution test string. The report does not print the exact ESSID used in the real-environment test. "Command substitution" is a shell feature where a piece of text is replaced by the output of a command; it is written with $() or with backticks. It is the mechanism the attacker abuses.

Step 2: Launch airgeddon as root

Bash
sudo bash airgeddon.sh

Line by line: sudo means "run the following as root". bash is the program that reads and runs Bash scripts. airgeddon.sh is the script file itself. So the whole line means "run the airgeddon script with full administrator power". airgeddon was started on the test system with root privileges, with AIRGEDDON_WINDOWS_HANDLING=xterm set. That setting is an environment variable, a named value the operating system passes to a program; it selects which terminal program airgeddon uses.

Step 3: Put the interface into monitor mode and scan

The wireless interface was switched into monitor mode, and the target discovery functionality was used to scan nearby access points. The specially crafted ESSID appeared in the discovered network list.

Step 4: Select the network and launch the attack module

The network was selected as the target, and the WIDS/WIPS/WDS Confusion attack module was launched.

Step 5: Inspect the filesystem for the marker

The filesystem was then inspected for the expected test marker:

Text
$ ls -la /tmp/poc_marker.txt-rw-r--r-- 1 root root 40 Oct 31 15:30 /tmp/poc_marker.txt

Line by line: $ is the prompt, the symbol the terminal shows before you type. ls lists a file's details. -la are options asking for a long listing including hidden files. /tmp/poc_marker.txt is the file the test expected the injected command to create; /tmp is a temporary folder on Linux. The output line shows the file exists, is owned by root, and was created on Oct 31 at 15:30.

Text
$ cat /tmp/poc_marker.txtuid=0(root) gid=0(root) groups=0(root)

Line by line: cat prints the contents of a file. The contents are uid=0(root) gid=0(root) groups=0(root), which is the normal output of the id command. uid=0 means user number zero, which on Linux is root. gid=0 means group number zero, also root. So the file proves the id command ran as root.

The file ownership and the command output show that the injected id command ran with root privileges, the same privileges as the airgeddon process.

Isolated harness

To demonstrate the root cause without real wireless hardware, airodump-ng/wash or airgeddon itself, the report includes a local harness, poc_local_airgeddon.sh. A "harness" is a small test rig that reproduces just enough of the real thing to show a problem. It mimics the exec_wdsconfusion() to manage_output() call chain as an isolated copy, reproduces the vulnerable eval line with identical logic, and reports the result by checking whether a PROOF_FILE was created. The INJECTED_ESSID variable is intentionally left as a placeholder, <INJECT_HERE>, and contains no working command-injection string, so the file can be shared publicly without distributing a ready-to-use weaponised payload. "Weaponised" means turned into something that actually attacks. Anyone filling in the field and testing with a real command substitution ($() or backticks) should do so only in their own isolated lab environment.

Secondary observation

When an ESSID contained literal double-quote characters, a separate parsing issue appeared, producing a shell parsing error similar to:

Text
unexpected EOF while looking for matching quote

Line by line: this is an error message from the shell. "EOF" means end of file. The shell is saying it reached the end of the text while still waiting for a closing quote, because the extra double quote confused it. This breaks the affected command execution path and may additionally cause denial of service.

Root cause

The vulnerable sink is manage_output():

Bash
function manage_output() {  ...  xterm_parameters="${1}"  tmux_command_line="${2}"  xterm_command_line="\"${2}\""  ...  case "${AIRGEDDON_WINDOWS_HANDLING}" in    "xterm")      eval "xterm ${xterm_parameters} -e ${xterm_command_line}${command_tail}"      ;;  esac}

Line by line: function manage_output() { starts the definition of a function, a named block of code you can call by name. ... marks parts of the code left out of the quote. xterm_parameters="${1}" stores the first thing passed to the function in a variable. tmux_command_line="${2}" stores the second thing passed in. xterm_command_line="\"${2}\"" wraps that second thing in double quotes. case "${AIRGEDDON_WINDOWS_HANDLING}" in starts a choice based on the environment variable. "xterm") is the branch taken when that variable is xterm. The eval line is the dangerous one: it builds a text line starting with xterm, inserts the parameters and the command line, and then eval runs the whole thing as a command. Because the command line contains the network name, anything in the name is treated as part of the command.

The example call site, exec_wdsconfusion(), passes the ESSID into the command string:

Bash
manage_output "+j -bg \"#000000\" -fg \"#FF0000\" -geometry ${g1_topleft_window} \-T \"wids / wips / wds confusion attack\"" \"${mdk_command} ${interface} w -e '${essid}' -c ${channel}" \"wids / wips / wds confusion attack" "active"

Line by line: this is one long call to manage_output with four arguments. The first argument is a set of window options for xterm: +j and -bg and -fg set colours, -geometry sets the window position and size, and -T sets the window title. The second argument is the actual attack command: ${mdk_command} is the attack tool, ${interface} is the wireless card, w is the attack mode, -e '${essid}' passes the network name, and -c ${channel} passes the channel. The third argument repeats the window title, and the fourth is "active". The key part is '${essid}': the network name is placed inside single quotes, which normally tells the shell "treat this as plain text".

The ESSID is initially enclosed in single quotes, but the resulting command string is then processed through eval. That adds a second shell parsing stage, so the original quoting does not reliably protect against command substitution ($(), backticks) or other shell metacharacters. "Metacharacters" are characters with special meaning to the shell, such as $, backtick, ; and |. The comparison: putting a note in an envelope marked "do not open" is fine until someone opens the envelope and reads the note aloud as an instruction.

The same general pattern was identified in additional attack execution paths:

  • Approximately lines 5542 and 5554: DoS Pursuit Mode commands involving mdk_command and ESSID values.
  • Approximately line 5817: WIDS/WIPS/WDS Confusion attack.
  • Approximately line 5846: Beacon Flood attack.
  • Approximately line 20096: shared command execution logic in manage_output().

A "line number" is the position of a line in the source file, like a page number in a book. The report notes that these line references are based on the reviewed source snapshot and should be verified against the exact v12.02 release before remediation. "Remediation" means fixing the problem.

Impact

The report rates the impact as follows:

Security property Impact Description
Confidentiality High Unauthorised access to files and sensitive system information.
Integrity High Modification of system files and application configurations.
Availability High Execution of commands capable of disrupting system services.

These three words are the standard way security people describe damage. "Confidentiality" means keeping secrets secret. "Integrity" means keeping data correct and unaltered. "Availability" means keeping things working when you need them.

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. "Arbitrary command execution" means running any command the attacker chooses. The attack requires an attacker-controlled access point broadcasting a crafted ESSID, and 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 executed command inherits the privileges of the airgeddon process; if airgeddon runs as root, the impact may extend to full system compromise. The secondary parsing issue can additionally disrupt the command execution path, causing denial of service.

Fix

The report recommends four measures; it does not describe a change that was actually made.

  1. Eliminate unsafe eval usage. The preferred solution is to stop building shell command strings dynamically and use Bash argument arrays to preserve argument boundaries and prevent extra shell parsing:
Bash
cmd=(xterm "${params[@]}" -e "${inner_cmd[@]}")"${cmd[@]}"

Line by line: cmd=(...) creates an array, which is a list of separate items rather than one glued string. xterm is the program to run. "${params[@]}" inserts all the window options as separate items. -e tells xterm to run a command. "${inner_cmd[@]}" inserts the attack command as separate items. The final "${cmd[@]}" runs the array. The point is that each item stays in its own slot, so a network name containing special characters is just one item and cannot become an instruction. The comparison: instead of handing someone a sentence to read aloud, you hand them a numbered list of separate words.

All arguments should be passed separately rather than concatenated into a single executable string.

  1. Implement safe input handling. ESSID values must be treated as untrusted external input and should not be interpolated directly into shell commands. "Interpolated" means inserted into the middle of a piece of text. Where shell serialisation is genuinely unavoidable, context-specific escaping should be applied, but escaping is not a substitute for removing eval. "Serialisation" here means turning a list of items into one text string.

  2. Introduce input validation. Centralised validation should cover externally supplied wireless metadata, including ESSID, BSSID, channel information and other values from wireless scanning tools. "BSSID" is the unique hardware address of an access point, like a serial number. "Channel" is the radio frequency slot the network uses. Validation should follow the application's actual requirements and the relevant IEEE 802.11 field constraints, and legitimate ESSID values should not be rejected merely because they contain special characters. "IEEE 802.11" is the standards body's name for the Wi-Fi specification.

  3. Centralise secure command execution. A central command execution mechanism should be introduced, with all external process invocations using properly quoted arguments and avoiding shell interpretation wherever possible. This reduces the likelihood of similar injection vulnerabilities in other modules. "Invocation" means starting a program.

Variants to test

  • Other attack modules that embed the ESSID. The report names DoS Pursuit Mode and Beacon Flood alongside WIDS/WIPS/WDS Confusion. A positive result is the same marker file or command output appearing after the module is launched against a crafted ESSID.
  • Other externally supplied wireless metadata. The report recommends validating BSSID and channel information as well as ESSID. A positive result is a crafted BSSID or channel value reaching a command string.
  • Literal double quotes in the ESSID. The report observed a parsing error with this input. A positive result is a reproducible unexpected EOF while looking for matching quote error, or another disruption of the command execution path.
  • Command substitution forms. The report mentions both $() and backticks as the substitution syntaxes that quoting fails to stop. A positive result is either form executing in the isolated harness or in a lab access point's ESSID.
  • Other eval call sites in the same codebase. The report identifies manage_output() as the shared sink and notes that centralising command execution would reduce similar issues elsewhere. A positive result is any other function that passes externally influenced data into eval.

Glossary

  • Access point: the device that broadcasts a Wi-Fi network.
  • Advisory: an official public notice about a security problem in a product.
  • Arbitrary command execution: the ability to run any command the attacker chooses.
  • Array: a list of separate items in a program, as opposed to one glued string.
  • Attack vector: how an attacker reaches the target, for example over the network or from nearby.
  • Authentication: proving who you are, usually by logging in.
  • Availability: keeping a system working when it is needed.
  • Bash: the command language and shell used on most Linux systems.
  • Beacon frame: a small radio message a Wi-Fi access point broadcasts to announce itself.
  • Branch: a line of development in a code repository; master is usually the main one.
  • BSSID: the unique hardware address of an access point.
  • Call site: the place in code that calls a function.
  • Channel: the radio frequency slot a Wi-Fi network uses.
  • Command substitution: a shell feature that replaces text with the output of a command, written $() or with backticks.
  • Concatenate: glue text together end to end.
  • Confidentiality: keeping secrets secret.
  • Coordinated disclosure: an agreement between finders and maintainers on when to make a bug public.
  • CWE: a public catalogue of software weakness categories.
  • Denial of service (DoS): an attack that aims to make something stop working.
  • Disclosure: the process of telling the people who make a product about a bug.
  • Environment variable: a named value the operating system passes to a program.
  • Escaping: marking special characters so they are treated as plain text.
  • ESSID: the human-readable name of a Wi-Fi network.
  • eval: a Bash feature that reads a piece of text and runs it as a command.
  • Eval Injection: a vulnerability where untrusted text reaches eval.
  • Function: a named block of code you can call by name.
  • Harness: a small test rig that reproduces just enough of a real system to show a problem.
  • Input validation: checking that data from outside looks as expected before using it.
  • Integrity: keeping data correct and unaltered.
  • Interpolation: inserting a value into the middle of a piece of text.
  • Invocation: starting a program.
  • Maintainers: the people who look after a piece of software.
  • Metadata: data about something, such as a network's name.
  • Metacharacters: characters with special meaning to the shell, such as $, backtick, ; and |.
  • Monitor mode: a Wi-Fi card mode that listens to all nearby radio traffic instead of connecting to one network.
  • OS Command Injection: a vulnerability where untrusted text reaches the operating system's command runner.
  • Payload: the data an attacker sends in, here a harmless command used to prove the bug.
  • Privileges: the permissions a program or user has.
  • Probe frame: a small radio message a device sends when looking for Wi-Fi networks.
  • Remediation: fixing a problem.
  • Repository: a public folder on a code hosting site where source code lives.
  • Root: the all-powerful administrator account on Linux.
  • Sanitisation: cleaning data so it is safe to use.
  • Severity: a rating of how bad a vulnerability is.
  • Shell: the program that reads and runs commands you type or that a script contains.
  • Sink: the place in code where a dangerous action finally happens.
  • Source: the place in code where untrusted data enters.
  • Source code analysis: reading a program's text to understand what it does.
  • Taint flow: tracing untrusted data through a program.
  • Terminal window: the window where you type commands.
  • Trust boundary: the line between data you control and data someone else controls.
  • Variable: a named box in a program that holds a value.
  • Vulnerability class: a category of software bug.
  • Weaponised: turned into something that actually attacks.
  • xterm: a simple terminal window program on Linux.

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.