BUG: Wordfence causes some Woocommerce customer registration to fail
-
There is a bug in the wooRegistrationFilter() function in \lib\wordfenceClass.php
This function looks for usernames like “admin” and then changes them to be something else based on the user’s email address. The issue is that Wordfence never checks if the new username it creates is unique or not.
In my case I have a few customers registering with auto-generated usernames and emails with the pattern “[email protected]”. because Wordfence doesnt take into account email addresses with more than one dot, it picks the “co” as the thing to append onto the username so we end up with multiple users with usernames of “adminco” and then the registration fails with “Sorry, that username already exists!”
- The topic ‘BUG: Wordfence causes some Woocommerce customer registration to fail’ is closed to new replies.