CVE-2026-32755: Admidio is Missing CSRF Protection on Role Membership Date Changes

Published Mar 16, 2026
·
Updated

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

2 affected componentsFixes available
composer/admidio/admidio<=5.0.6
5.0.7
Admidio Admidio<5.0.7

Event History

Mar 16, 2026
Advisory Published
via GitHub·09:17 PM
Data Sourced
via GitHub·09:17 PM
DescriptionSeverityWeaknessAffected Software
Mar 19, 2026
CVE Published
via MITRE·10:53 PM
Data Sourced
via MITRE·10:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-32755?

To resolve CVE-2026-32755, ensure that the `save_membership` action validates the CSRF token properly.

3

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.

4

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.

5

Is any user data at risk with CVE-2026-32755?

Yes, CVE-2026-32755 can put user role information at risk, enabling unauthorized modifications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203