Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Command Injection in Dasan GPON Home Routers diag_Form

IdentifiersCVE-2018-10562CWE-78· Improper Neutralization of Special…

CVE-2018-10562 is a command injection vulnerability in Dasan GPON home routers. The flaw is reachable via the dest_host parameter in a diag_action=ping request sent to the /GponForm/diag_Form URI. Insufficient sanitization of user-controlled input allows shell metacharacters or injected commands to be processed by the underlying system command used for the diagnostic ping function. The router stores ping results in /tmp and later returns those results when the user revisits /diag.html, which provides a straightforward channel to retrieve command output. Supporting context also indicates this issue has been widely characterized as a root remote code execution flaw on affected GPON routers, especially when paired with CVE-2018-10561 authentication bypass.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows remote attackers to execute arbitrary OS commands on the affected router, with reported root-level impact in observed attack chains. This can result in full device compromise, botnet enrollment, configuration manipulation, persistence, traffic interception or redirection, and use of the router as a foothold for further network attacks. The vulnerability has been repeatedly observed in mass exploitation by botnets including Mirai variants, Mozi, Hajime, Satori, Mettle, Muhstik, Zergeca, Aquabot-related activity, and others.

Mitigation

If you can’t patch tonight, do this now.

If no patch is available, disable remote administration and block public Internet access to the router’s management interface, especially the web UI and diagnostic endpoints such as /GponForm/diag_Form and /diag.html. Restrict management access to trusted internal hosts or a dedicated management network, and enforce firewall rules to prevent WAN-side access. Monitor for suspicious requests containing diag_action=ping or crafted dest_host values, inspect /tmp and device logs for signs of exploitation, and replace exposed end-of-life devices where secure firmware is unavailable.

Remediation

Patch, then assume compromise.

Apply the vendor-provided firmware update or official fix from DASAN Zhone Solutions if available for the affected GPON model. Because this vulnerability has commonly been exploited together with CVE-2018-10561, remediation should address both flaws simultaneously. If supported by the platform, upgrade to a firmware release that removes the command injection condition in /GponForm/diag_Form and corrects the associated authentication weaknesses. Validate after upgrade that diagnostic endpoints are no longer externally reachable and that command injection via dest_host is not possible.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).

VALID 1 / 3 TOTALView more in app
Pingpon-ExploitMaturityPoCVerified exploit

This repository contains a Python exploit script (Pingpon.py) and a README.md. The script automates the exploitation of a remote code execution vulnerability (CVE-2018-10562) in GPON home routers. It uses the Shodan API to search for internet-exposed GPON routers, then sends a crafted POST request to the '/GponForm/diag_Form?images/' endpoint on each discovered device, injecting arbitrary Linux commands via the 'dest_host' parameter. The script then retrieves the output of the executed command from the '/diag.html?images/' endpoint. The user must provide a valid Shodan API key (stored in 'api.txt') and the Linux command to execute. The README provides usage instructions and prerequisites. The exploit is operational, allowing mass exploitation of vulnerable routers for arbitrary command execution.

649Disclosed May 15, 2018pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DasannetworksGpon Router Firmwareoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence3

Every observed campaign linking this CVE to a named adversary.

Associated malware8

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.

Command Injection in Dasan GPON Home Routers diag_Form (CVE-2018-10562) | Mallory