rainpwn

    01  Alessandro Sgreccia / rainpwn

    Most of it is reading. The findings are in what nobody documented.

    CVEs assigned
    21
    highest CVSS
    9.8
    Hall of Fame
    ZYXEL

    02  How I work

    Most findings are in what one layer assumes about another.

    Scope

    Almost entirely ZYXEL network appliances: USG/ZyWALL and ATP firewalls, USG FLEX and FLEX H, access points and security routers. Firmware from ZLD 5.35 to 5.41, and uOS 1.31.

    Method

    Reading the management interface against the CLI it drives, then against the services and binaries underneath. That means comparing what one layer claims to enforce with what the layer below actually checks.

    Disclosure

    Every issue is reported to the vendor and published after a fix ships. Every CVE here is on NVD with a matching vendor advisory.

    03  CVE timeline

    20 CVEs, 2022 to 2026.

    One bar per CVE, height is the CVSS score.

    2022
    2 CVEs

    Web and authentication

    Authentication bypass in the CGI program and a reflected XSS. CVE-2022-0342 scored 9.8, still the highest.

    2023
    8 CVEs

    CLI, files, buffers

    Command injection through the administration shell, two buffer overflows in CLI functions, and file and token access from limited accounts.

    2024
    3 CVEs

    Tokens and privileges

    Privilege escalation on access points, further CLI command injection, and authentication token theft on the FLEX H series.

    2025
    5 CVEs

    Firmware and services

    PostgreSQL permissions on uOS firmware, code execution over an SSH tunnel, and an authorization bypass in zysh-cgi.

    2026
    2 CVEs

    DDNS to root

    A field in the DDNS profile configuration reaching command execution with root privileges on ATP and USG firewalls.

    05  Depth

    Findings at all nine layers.

    The layers of a ZYXEL appliance, from the unauthenticated surface down to uid=0.

    1. 01Surface

      What the device exposes before authentication.

      • CVE-2022-40603Reflected XSS in a CGI endpoint
    2. 02Web

      The CGI programs that turn an HTTP request into a system action.

      • CVE-2022-0342Web authentication bypass · CVSS 9.8
      • Migration ToolArbitrary PHP upload and execution
    3. 03Auth

      Login, session tokens and the second factor.

      • CVE-2025-9133Authorization bypass · 2FA skipped · CVSS 8.2
      • CVE-2024-9677Authentication token theft · CVSS 7.8
    4. 04CLI

      zysh, the administration shell, and the parameters it accepts.

      • CVE-2023-27991Command injection · CVSS 8.8
      • CVE-2024-7203Command injection · CVSS 7.2
      • CVE-2025-8078Undocumented parameter of web-auth
    5. 05Services

      Processes listening on the device that the management interface doesn't cover.

      • CVE-2025-1731PostgreSQL over an SSH tunnel · CVSS 7.8
    6. 06Binary

      Memory handling in the compiled CLI functions.

      • CVE-2023-37926Buffer overflow in the log dump
      • CVE-2023-4397Buffer overflow via the CLI
    7. 07Firmware

      uOS and ZLD, where service permissions are set.

      • CVE-2025-1731 / 1732FLEX H · uOS 1.31
      • ZLD 5.35 → 5.41Six versions analysed
    8. 08Privilege

      What separates limited-admin, guest and admin accounts.

      • CVE-2023-37925System files readable by limited-admin
      • CVE-2023-5960Sensitive files readable by guest
      • CVE-2025-1732Local privilege escalation
    9. 09Root

      Command execution as uid=0.

      • CVE-2025-11730DDNS field to uid=0 · CVSS 7.2

    06  Output

    13Technical writeupspublished on rainpwn.blog
    7Proof of concept exploitsPython, public

    09  About

    Alessandro Sgreccia, online as rainpwn. Part of the Hackerhood team since July 2023.