Summery

WordPress is an open-source CMS written in PHP that uses a database, usually MySQL or MariaDB, to store website content, users, and settings. Its functionality can be extended using themes and plugins.

There are five types of users on a standard WordPress installation:

  1. Administrator: This user has access to administrative features within the website. This includes adding and deleting users and posts, as well as editing source code.
  2. Editor: An editor can publish and manage posts, including the posts of other users.
  3. Author: They can publish and manage their own posts.
  4. Contributor: These users can write and manage their own posts but cannot publish them.
  5. Subscriber: These are standard users who can browse posts and edit their profiles.

Important files and directories

wp-config.php: Database credentials, salts, and configuration.
wp-content/ - Plugins, themes, uploads
wp-content/plugins/ - Installed plugins
wp-content/themes/ - Installed themes
wp-content/uploads/ - Uploaded media files
wp-admin/ - Administrative interface files
wp-includes/ - Core WordPress functionality
wp-login.php - Login page
xmlrpc.php - Remote API, potentially abusable for brute force or pingback attacks

References

wpscan can be used to enumerate vulnerable themes and plugins on a WordPress instance.
Wordpress plugin webshell and CSRF Wordpress admin user creation can be used to further escalate your privilages with Wordpress.
Further reads: WordPress - Discovery & Enumeration
Other tools: droopescan