Fatal error caused by posts_per_page being a non-integer
-
I’ve been investigating a series of fatal errors on a site using
the-events-calendar=6.6.0.2
They appear to have been triggered by an attacker looking for the ability to inject code
https://localhost/events/list/?posts_per_page=%2527
When
posts_per_page
is not an integer, the following cause a php fatal error:PHP Fatal error:? Uncaught TypeError: Unsupported operand types: string + int in /var/www/html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php:1340
PHP Fatal error:? Uncaught TypeError: Unsupported operand types: string * int in /var/www/html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php:1409
PHP Fatal error:? Uncaught TypeError: array_slice(): Argument #3 ($length) must be of type ?int, string given in /var/www/html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Hooks.php:215
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.