Make WordPress Core

Opened 7 years ago

Last modified 3 years ago

#30959 new defect (bug)

race condition in wp_insert_user()

Reported by: hanelyp Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1
Component: Users Keywords:
Focuses: Cc:


Possibility exists for a user record insert between check if a user name already exists and actual database insert. A unique index on wp_users.user_login would prevent this, and allow the code to operate without a separate database query to check for an existing user.

Change History (2)

#1 @SergeyBiryukov
7 years ago

  • Component changed from General to Users

#2 @chriscct7
6 years ago

Related (and possible solution): #33376

Note: See TracTickets for help on using tickets.