Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#52178 new defect (bug)

Allowed memory size exhausted / url creates new post entry?

Reported by: sgatz's profile sgatz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6
Component: Posts, Post Types Keywords: reporter-feedback
Focuses: Cc:


We get repeated bots (across multiple WP sites) hitting a specific URL pattern, they append a query string onto the end of a wordpress URL like this:

This causes a memory exhausted error here:
/wp/wp-includes/post.php at line 773:

} elseif ( is_object( $post ) ) {
		if ( empty( $post->filter ) ) {
			$_post = sanitize_post( $post, 'raw' );
			$_post = new WP_Post( $_post );    ##<--- HERE
		} elseif ( 'raw' === $post->filter ) {
			$_post = new WP_Post( $post );
		} else {

Change History (3)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Posts, Post Types

This ticket was mentioned in Slack in #core by lukecarbis. View the logs.

3 years ago

#3 @noisysocks
3 years ago

  • Keywords reporter-feedback added

Hi @sgatz! Does this happen when all plugins are deactivated and a default theme is used? I'm unable to recreate the error when I append that query string to a post permalink.

Note: See TracTickets for help on using tickets.