Admin username leaking through wp-json links in head
-
In the source code of 2 sites I find wp-json links in the head:
<head> ..... <link rel="alternate" type="application/json+oembed" href="https://www.site.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.site.com%2F" /> <link rel="alternate" type="text/xml+oembed" href="https://www.site.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.site.com%2F&format=xml" />
These seem to be inserted by WordPress as they remain if I disable all plugins and activate the Twenty-Sixteen theme.
The links reveal not only the nickname but also the WordPress admin username:
..... "author_name":"nickname","author_url":"http:\/\/www.site.com\/author\/admin-username\/" ...... ..... <author_name>nickname</author_name><author_url>https://www.site.com/author/admin-username/</author_url> .....
(where nickname and admin-username are the actual ones used)
While I know that strong passwords are the main line of defence, and I use login protection to prevent brute force attacks, it seems a little odd that the admin username is so easily found. Isn’t the idea of setting a nickname to protect the admin username is being undermined here?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Admin username leaking through wp-json links in head’ is closed to new replies.