POC详情: a78e2c58a2d470170d4756a9eee425a190785bb4

来源
关联漏洞
标题: Buffalo LS210D 安全漏洞 (CVE-2023-49038)
描述:Buffalo LS210D是日本巴比禄(Buffalo)公司的一个硬盘驱动器。 Buffalo LS210D 1.78-0.03版本存在安全漏洞。远程攻击者利用该漏洞以 root 身份将任意命令注入到 NAS。
描述
CVE-2023-49038
介绍
# CVE-2023-49038 Command Injection in Ping Utility on Buffalo LS210D Version 1.78-0.03
Christopher J. Pace and Ryan Miller

The Buffalo LS210D is a Network Attached Storage (NAS) server designed and marketed towards small-businesses and individuals.  Within the LS210D’s admin interface, there exists a built-in ping utility.  This utility uses client-side JavaScript to sanitize input that is directly appended to the system’s ping command.  Unfortunately, server-side filtering is not used, meaning an attacker can inject arbitrary text that will be appended to the name of a host within the ping command.  To exploit this vulnerability, an attacker will need to be an admin of the NAS.

Entering the ping utility, a potential attacker is initially unable to enter special characters, or letters into the “Target IP Address” field.  

![burp](https://github.com/christopher-pace/CVE-2023-49038/assets/22531478/f24c39c2-1d02-4ffa-b096-0218b2b002ef)

In this screenshot, the IP address has been appended with ‘;ping 9.9.9.9’.  On the right side of the screenshot is an SSH session into the NAS running the command ‘watch -n 1 ps -a|grep ping’.  As you can see via this screenshot, arbitrary text can be injected into the NAS’ built-in ping utility.

This is a screenshot of the responsible Perl script, located at /www/buffalo/www/dynamic/system/maint/BufPing.pm, which shows the variable VARIABLE not filtered for arbitrary characters before use in the system ping command.

![code](https://github.com/christopher-pace/CVE-2023-49038/assets/22531478/7e80ef6e-027c-40bc-b664-2e01c9840096)

To resolve this vulnerability, we recommend implementing server-side filtering that matches the filter used for the existing client-side JavaScript.
文件快照

[4.0K] /data/pocs/a78e2c58a2d470170d4756a9eee425a190785bb4 └── [1.7K] README.md 0 directories, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。