目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-40799 PoC — D-Link DNR-322L 安全漏洞

来源
关联漏洞
标题: D-Link DNR-322L 安全漏洞 (CVE-2022-40799)
Description:D-Link DNR-322L是中国友讯(D-Link)公司的一款网络视频录像机。 D-Link DNR-322L 2.60B15及之前版本存在安全漏洞,该漏洞源于备份配置中的数据完整性问题,允许经过身份验证的攻击者在设备上执行操作系统级别的命令。
Description
D-Link DNR-322L - Authenticated Remote Code Execution
介绍
# CVE-2022-40799

Title: D-Link DNR-322L - Authenticated Remote Code Execution  
CVE: [CVE-2022-40799](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40799)  
Advisory: https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10305  
Affected: <= 2.60B15  
Blogpost: https://blog.mkiesel.ch/posts/dlink_dnr322/

![screenshot](img.png)

# Vulnerability
Inside the configuration backup from "Maintenance/System/Configuration Settings" is the bash script "rc.init.sh". The device does not check the integrity of a restored configuration backup which enables editing of set bash script. This bash script will be executed when the device boots. 

# Usage
```
usage: exploit.py [-h] -U USERNAME [-P PASSWORD] -t TARGET -l LHOST -p LPORT

options:
  -h, --help            show this help message and exit
  -U USERNAME, --username USERNAME
                        Username, ex: admin
  -P PASSWORD, --password PASSWORD
                        Password for the specified user
  -t TARGET, --target TARGET
                        IP of the target, ex: 192.168.99.99
  -l LHOST, --lhost LHOST
                        IP for the reverse shell to connect back to, ex: 123.123.123.123
  -p LPORT, --lport LPORT
                        Port for the reverse shell to connect back to, ex: 8443
```

# Known Bugs
If the device is sleeping, the download of the backup works but the upload creates a connection error. Just execute the exploit twice. 

# Legal
This code is provided for educational use only. If you engage in any illegal activity the author does not take any responsibility for it. By using this code, you agree with these terms.
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →