[Bug Report] Trying to access array offset on value of type bool wordfenceURLHoo
-
Looks like it doesn’t handle bad URLs properly in wordfenceURLHoover.php. In the captureURL() function, it assumes that $url is always a valid URL. There needs to be a check to see if parse_url returns false otherwise the preg_match will try to access properties on a boolean. I ran into this when a spam url in some comments tripped it up:
It tried to parse on the following URL and threw that error:
http:///1?Q?rf??c???^[email protected]?
[Sep 08 09:22:03:1694179323.147047:1:error] Trying to access array offset on value of type bool (2) File: /chroot/home/USER/ACCOUNT/html/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php Line: 114
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Bug Report] Trying to access array offset on value of type bool wordfenceURLHoo’ is closed to new replies.