Poweradmin, a PHP web front end for managing DNS zones and users, resolves the address submitted to its password-reset form with a plain WHERE users.email = :email comparison. On MySQL and MariaDB installations running the default collation, that comparison folds accents and case, so jose@gmail.com matches a stored josé@gmail.com. The reset link goes to the submitted address, and the token check repeats the same lookup. Tracked as CVE-2026-115467 / GHSA-pcx2-9rwj-rj4r, this lets an unauthenticated attacker take over any SQL-authenticated account with an ownable variant of its email address, superusers included.
01Background: an unauthenticated reset flow over a collated column
Poweradmin keeps users in a relational database and supports local SQL authentication (auth_method='sql') alongside identities provisioned through OIDC or SAML. Password reset is optional. It exists only when security.password_reset.enabled is true. Once enabled, POST /password/forgot answers without authentication and runs through ForgotPasswordController, which is constructed with no auth requirement.
The controller checks the submitted address with filter_var($email, FILTER_VALIDATE_EMAIL) after trimming it. That is the whole filter. No lowercasing, no Unicode NFC normalization, no canonical form. From that point the application and the database disagree about what "same email" means.
02Root cause: the email column has no explicit collation
sql/poweradmin-mysql-db-structure.sql declares users.email without a COLLATE clause, so the column inherits the server default. MySQL 8.x defaults to utf8mb4_0900_ai_ci; MariaDB defaults to uca1400_ai_ci. The ai and ci suffixes mean accent-insensitive and case-insensitive matching. Useful for search, wrong for identity.
The lookup sits in DbUserRepository::getUserByEmail():
SELECT users.* ... WHERE users.email = :email LIMIT 1
No BINARY cast, no COLLATE utf8mb4_bin, no PHP-side comparison afterwards. PasswordResetService::canUserResetPassword() and createResetRequest() both resolve the account through this method, so the equality being tested is the collation's, not byte equality.
Two details turn the mismatch into an exploit. sendResetEmail($email, ...) receives the attacker-submitted string, the token row stores that string, and the link carries no user id; the account is only resolved when the token is redeemed. Then PasswordResetService::validateToken() calls getUserByEmail($tokenData['email']) again, with the same collation-dependent comparison and no byte-exact re-check of the stored address. The guards are countUsersByEmail(...) > 1, itself collation-dependent and equal to 1 here, and the external auth method check. resetPassword() finishes with UPDATE users SET password = ? WHERE id = ? on the victim's row.
03Exploit: register the ASCII twin of the victim's address
The preconditions are ordinary. security.password_reset.enabled = true. A MySQL or MariaDB backend on its default collation. A victim using SQL authentication whose stored email has an accent or case variant, say josé@gmail.com. The attacker owns jose@gmail.com and submits it to the public form.
POST /password/forgotwithemail=jose@gmail.com. The value passesFILTER_VALIDATE_EMAILbecause it is pure ASCII.getUserByEmail()resolves the victim's row under the accent-insensitive collation. A token is created forjose@gmail.com, and the link is mailed tojose@gmail.com, the attacker's mailbox.- The attacker opens
/password/reset?token=....validateToken()resolves the victim's row again (count guard 1, auth methodsql) and accepts the token. - The attacker sets a new password. The victim's row is updated.
- The attacker logs in with the victim's username and the new password. The session carries superuser rights when the victim has them, since the flow contains no superuser exclusion.
PHP blocks the accented form earlier than SQL does. On PHP 8.3 and 8.4, filter_var('josé@gmail.com', FILTER_VALIDATE_EMAIL) returns false. The attacker does not need it. The ASCII variant passes validation on its own, and the collation supplies the match.
The report verified this on mysql:8.4 with the exact schema from sql/poweradmin-mysql-db-structure.sql. It inserted a user with josé@gmail.com, then queried:
SELECT id FROM users WHERE email = 'jose@gmail.com';
-- returns the row storing josé@gmail.com
Case variants returned the same row.
Nothing here depends on a particular Poweradmin release. The defect follows from the schema and the server default, which is why three branches needed the same fix.
04Impact
An unauthenticated attacker gains full control of any SQL-authenticated account whose email has an ownable variant. The victim does not need to click anything; the account only has to exist. No superuser exclusion applies, so administrative accounts are in scope.
A superuser account extends the damage past Poweradmin itself. The panel manages DNS zones, so the attacker can rewrite records (MX, SPF and DKIM hijacks, ACME challenge records) and manage other users. That is enough to intercept or redirect mail for hosted domains and to issue certificates for names those zones cover.
Accounts provisioned through OIDC or SAML are not exposed the same way, because the flow checks the authentication method before allowing a reset. The risk sits with credentials stored in Poweradmin's own database.
05Affected versions
| Package | Affected | Patched |
|---|---|---|
poweradmin/poweradmin (Composer) | >= 4.0.0, < 4.2.7 | 4.2.7 |
poweradmin/poweradmin (Composer) | >= 4.3.0, < 4.3.6 | 4.3.6 |
poweradmin/poweradmin (Composer) | >= 4.4.0, < 4.4.2 | 4.4.2 |
Three maintained branches are covered. The 4.2 line ends at 4.2.7, the 4.3 line at 4.3.6, the 4.4 line at 4.4.2. Earlier 4.x releases fall under the same ranges.
06Remediation
Upgrade to 4.4.2, 4.3.6 or 4.2.7 for the branch in use. The fix closes a reset path the maintainer had already covered elsewhere. DbUserRepository::findByUsername() and the OIDC/SAML provisioning code call DbCompat::accentSensitiveEquals() to force an accent-sensitive comparison, an approach added for the earlier GHSA-cmwh-g2h8-c222 report. The password-reset flow had not been brought in line with it.
If an upgrade has to wait:
- Set
security.password_reset.enabled = falseuntil a patched release is deployed. That removes the unauthenticated entry point. - Give
users.emailan explicit binary collation such asutf8mb4_binand normalise addresses on write, so SQL equality means byte equality. - Audit accounts for addresses that differ only by case or accents. Those are the rows this bug can reach.
A lasting fix normalises the submitted address once (lowercase plus Unicode NFC) and then requires a byte-exact match on that canonical form, instead of inheriting whatever collation the database happens to use.
07Timeline
- 2026-09-08Report opened privately by Buggs777, with the collation test on
mysql:8.4against the project's own schema. - 2026-10-20Advisory
GHSA-pcx2-9rwj-rj4rpublished as High, with fixes on the 4.2, 4.3 and 4.4 branches.