Contributors: SudoWP, WP Republic
Original Authors: Frank Bültge, Inpsyde
Tags: adminer, database, security, cve-2021-21311, ssrf-patch
Requires at least: 5.8
Tested up to: 6.7
Stable tag: 1.5.0
License: GPLv2 or later
This is a security-hardened fork of the "Adminer" WordPress plugin.
The Threat: Standard Adminer installations often allow Server-Side Request Forgery (SSRF). Attackers can use the login form to force the server to connect to internal services (e.g., AWS Metadata, internal APIs), leading to information disclosure.
The Solution:
SudoWP Adminer enforces a "Localhost Only" policy. It hardcodes the connection to the WordPress database defined in wp-config.php, completely mitigating the SSRF vector.
** Important Security Notice:** This plugin uses Adminer core version 4.2.4 (2015). While CVE-2021-21311 is patched, the older core may have other known vulnerabilities. The admin-only, localhost-only security model significantly reduces risk. See SECURITY.md for details.
Recommended Use:
- Development and staging environments
- Trusted, private WordPress installations
- Use with caution in production environments
SudoWP Adminer provides a powerful database management interface (similar to phpMyAdmin) but secured specifically for WordPress environments.
-
SSRF Prevention:
- The "Server", "Username", and "Password" fields are removed.
- Connection is strictly limited to the local
DB_HOST,DB_USER, andDB_PASSWORD.
-
Access Control:
- Admins Only: The tool strictly checks for
current_user_can('manage_options')before loading. - Direct Access Block: Attempting to access the
.phpfiles directly via the browser returns a 403 Forbidden error.
- Admins Only: The tool strictly checks for
-
Auto-Login:
- Authentication is handled via the WordPress session. If you are logged into WP Admin, you are logged into the database.
- Download the repository.
- Important: Deactivate and delete any existing Adminer plugins.
- Upload the
sudowp-adminerfolder to your/wp-content/plugins/directory. - Activate the plugin.
- Access via the SudoWP Adminer menu item.
- Security Fix: Patched Critical SSRF Vulnerability (CVE-2021-21311).
- Security Fix: Implemented "Zero Trust" access control (Admins Only).
- UX: Added seamless auto-login.
- Rebrand: Forked as SudoWP Adminer.
Maintained by the SudoWP Security Project.