Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33342 closed enhancement (fixed)

check_ajax_referer action only fires on success

Reported by: johnbillion Owned by: egill
Priority: normal Milestone: 4.4
Component: Security Version: 2.1
Severity: normal Keywords: good-first-bug has-patch
Cc: Focuses:

Description (last modified by johnbillion)

In r33017 the check_admin_referer action was moved so it fires on failure as well as success.

The same should be done for the check_ajax_referer action.

Attachments (1)

33342.patch (745 bytes ) - added by egill 11 years ago.
33342.patch

Download all attachments as: .zip

Change History (7)

#1 @johnbillion
11 years ago

  • Description modified (diff)

@egill
11 years ago

33342.patch

#2 @egill
11 years ago

Moved it and added braces. Hopefully that's all there is to it.

#3 @egill
11 years ago

  • Keywords has-patch added; needs-patch removed

#4 @DrewAPicture
11 years ago

  • Owner set to egill
  • Status newassigned

Marking the good-first-bug as "claimed".

#5 @SergeyBiryukov
11 years ago

  • Milestone Future Release4.4

#6 @SergeyBiryukov
11 years ago

  • Resolutionfixed
  • Status assignedclosed

In 33743:

Fire the check_ajax_referer action on failure as well as success.

See [33017] for check_admin_referer.

props egill.
fixes #33342.

Note: See TracTickets for help on using tickets.