[wp-trac] [WordPress Trac] #30959: race condition in wp_insert_user()

WordPress Trac noreply at wordpress.org
Thu Jan 8 22:22:34 UTC 2015


#30959: race condition in wp_insert_user()
--------------------------+-----------------------------
 Reporter:  hanelyp       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30959>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list