Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#36361 closed enhancement (fixed)

check_ajax_referer() lacks a _doing_it_wrong() call when the $action parameter is omitted

Reported by: johnbillion Owned by: johnbillion
Priority: normal Milestone: 4.7
Component: Security Version: 3.2
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

If the $action parameter is omitted when calling check_admin_referer(), a call to _doing_it_wrong() is triggered. See [18195].

The same is not true for check_ajax_referer().

Attachments (1)

36361.patch​ (649 bytes ) - added by johnbillion 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @johnbillion
11 years ago

  • Keywords has-patch added

#2 @johnbillion
10 years ago

  • Milestone Future Release → 4.7

#3 @johnbillion
10 years ago

  • Owner set to johnbillion
  • Resolution → fixed
  • Status new → closed

In 38420:

Security: Trigger a _doing_it_wrong() when check_ajax_referer() is called without its first parameter. This brings it inline with check_admin_referer().

Fixes #36361

Note: See TracTickets for help on using tickets.