关联漏洞
描述
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.

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.

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付费,感谢您的支持。