Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-10562 PoC — Dasan GPON家庭路由器命令注入漏洞

Source
Associated Vulnerability
Title:Dasan GPON家庭路由器命令注入漏洞 (CVE-2018-10562)
Description:An issue was discovered on Dasan GPON home routers. Command Injection can occur via the dest_host parameter in a diag_action=ping request to a GponForm/diag_Form URI. Because the router saves ping results in /tmp and transmits them to the user when the user revisits /diag.html, it's quite simple to execute commands and retrieve their output.
Description
Python exploit for Remote Code Executuion on GPON home routers (CVE-2018-10562). Initially disclosed by VPNMentor (https://www.vpnmentor.com/blog/critical-vulnerability-gpon-router/), kudos for their work.
Readme
# RCE on GPON home routers (CVE-2018-10561)

## Vulnerability
Many routers today use GPON internet, and  a way to bypass all authentication on the devices (**CVE-2018-10561**) was found by [VPNMentor](https://www.vpnmentor.com/blog/critical-vulnerability-gpon-router/). With this authentication bypass, it's also possible to unveil another command injection vulnerability (**CVE-2018-10562**) and execute commands on the device.

At the time it was written almost ONE MILLION of these devices are exposed to the Internet, according to [Shodan](https://www.shodan.io/search?query=title%3A%22GPON+Home+Gateway%22).


## Dependencies required
`requests`

`urllib2`

## Tested on 
`Kali Linux`

`Ubuntu 17.10 Server`


## Usage

```
python gpon_rce.py TARGET_URL COMMAND

```
e.g.
```
python gpon_rce.py http://192.168.1.15 'id'

```

## Screenshots
<p align="center">
  <img width="460" src="https://cdn1.imggmi.com/uploads/2018/5/7/f1210b72c5a5349f8aa5cbf310c3c7d6-full.png">
</p>


<p align="center">
  <img width="460" src="https://cdn1.imggmi.com/uploads/2018/5/7/981fdc2cdce43511a89135f2fca7f474-full.png">
</p>
File Snapshot

[4.0K] /data/pocs/21bef35f636cc8b5a6b470f46f6a26088885bab8 ├── [2.1K] gpon_rce.py.py └── [1.1K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →