-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Description
Note that this issue relates to warnings generated via abnormal and unexpected requests.
We had a number of PHP warnings following someone using a vulnerability scanner against a site we run.
PHP Warning: Undefined property: stdClass::$name in /var/www/html/wp-includes/general-template.php on line 1610
PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/class-wp-hook.php on line 324
PHP Warning: Undefined property: stdClass::$name in /var/www/html/wp-includes/general-template.php on line 3284
PHP Warning: Undefined property: stdClass::$term_id in /var/www/html/wp-includes/general-template.php on line 3287
I could eventually reproduce the issue by appending ?x=&cat=1
to an author page for a guest author (using co-authors-plus) but not a system author. I suspect the cat=
argument is causing is_category()
to return true, but I can't see where the logic issue is, so I don't know if this is a bug in core or the plugin.
http://localhost/author/guest/?x=&cat=1
Triggering a stack dump:
#0 /var/www/html/wp-includes/general-template.php(1610): errHandle()
#1 /var/www/html/wp-includes/general-template.php(1229): single_term_title()
#2 /var/www/html/wp-includes/general-template.php(1311): wp_get_document_title()
#3 /var/www/html/wp-includes/class-wp-hook.php(324): _wp_render_title_tag()
#4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /var/www/html/wp-includes/general-template.php(3064): do_action()
#7 /var/www/html/wp-content/themes/example/layouts/main.php(18): wp_head()
#8 /var/www/html/wp-includes/template-loader.php(106): include('...')
#9 /var/www/html/wp-blog-header.php(19): require_once('...')
#10 /var/www/html/index.php(17): require('...')
Metadata
Metadata
Assignees
Labels
No labels