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.2They appear to have been triggered by an attacker looking for the ability to inject code
http://localhost/events/list/?posts_per_page=%2527When
posts_per_pageis 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)
The topic ‘Fatal error caused by posts_per_page being a non-integer’ is closed to new replies.