A WordPress site of mine was hacked twice in the last two days. I am trying to find out where the vulnerability might be.
WordPress is on version 5.8.1 and Pro is on 5.0.8.
The attackers manage to create an administrator user and add content to the home page.
What I noticed, the newly created user has a very high user ID in the database. Currently there are 347 users in the user table, but the newly created user has an ID with 9952! Also the AUTO_INCREMENT value in the database is at this high values.
To me it doesn’t look like normal WordPress functions are used here to create the user, otherwise it would have to be number 348 normally, am I right?
The site is still under development and the “under construction plugin” with the password bypass is enabled, so there is actually little attack surface for an SQL injection. I have already asked the wordpress.org support forum about this and they also think that it could be an SQL injection.
So there is only the /wp-admin login and the bypass password field. Could the password field somehow be vulnerable to SQL injection?