rainpwn

    01  Alessandro Sgreccia / rainpwn

    I get curious. Then I get stuck.

    CVEs assigned
    20
    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. All 20 CVEs are 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.

    04  Featured research

    Featured research.

    Four findings in detail. The CVE identifier stays as metadata.

    Command injection2026

    From DDNS to root

    An unsanitised parameter in the DDNS profile configuration reaches command execution with root privileges on ATP and USG firewalls.

    CVE
    Target
    CVE-2025-11730
    ZYXEL ATP/USG
    Class
    CVSS
    OS Command Injection
    7.2 · High
    Read research →
    Authorization bypass2025

    The second 2FA step

    A low-privileged, semi-authenticated attacker reaches the device configuration through zysh-cgi without completing the second factor.

    CVE
    Target
    CVE-2025-9133
    USG/ATP Series
    Class
    CVSS
    Authorization Bypass
    8.2 · High
    Read research →
    Firmware · services2025

    The database that answered

    On FLEX H uOS firmware, a PostgreSQL service reachable through an SSH tunnel accepts commands, and the account running it holds more permissions than it needs.

    CVE
    Target
    CVE-2025-1731 / 1732
    FLEX H · uOS 1.31
    Class
    CVSS
    Incorrect Permission Assignment
    7.8 · High
    Read research →
    AI security2025

    A chatbot with too much access

    Prompt injection testing against the Nebula AI assistant, checking whether instructions placed in the data it reads change what it discloses.

    CVE
    Target
    ZYXEL Nebula AI
    Class
    CVSS
    Prompt injection
    Research note
    Read research →

    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

    20+Coordinated disclosuresreported to the vendor
    13Technical writeupspublished on rainpwn.blog
    7Proof of concept exploitsPython, public

    08  Lab

    Work that doesn’t become a CVE.

    Experiments, tooling and notes that stay here.

    Active

    Prompt injection against management assistants

    How a chatbot embedded in a network management console behaves when instructions arrive in the data rather than from the user. First note published on Nebula AI.

    Active

    Exploit development

    7 Python proof-of-concepts: token theft, RCE through web-auth, 2FA bypass, RCE through DDNS, and an unauthenticated PostgreSQL service over an SSH tunnel.

    Archive

    Reverse engineering · CTF

    Reversing challenges solved and documented step by step, working from the binary alone.

    Archive

    File upload on cloud services

    A flawed upload mechanism in the Configuration Migration Tool allowed arbitrary PHP upload and execution.

    09  About

    Alessandro Sgreccia, online as rainpwn. Security researcher working on vulnerability research, reverse engineering, exploit development and coordinated disclosure.

    Part of the Hackerhood team since July 2023. The published work is almost entirely network security appliances: firewalls, access points, security routers, and the firmware underneath them.

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