CVE-2026-41663: Admidio has CSRF on Admin Preferences that Triggers Unauthorized Backup, .htaccess Write, and Email Send
Summary Several administrative operations in Admidio's preferences module (database backup, test email, htaccess generation) fire via GET requests with no CSRF token validation. Because SameSite=Lax cookies travel with top-level GET navigations, an attacker forces an authenticated admin to trigger these actions from a malicious page.
Published Apr 29, 2026 · Updated May 8, 2026
Affected packages
admidio/admidio
- Ecosystem
- Composer (PHP)
- Affected
- <= 5.0.8
- Fixed in
- 5.0.9
- Check
composer show admidio/admidio
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Several administrative operations in Admidio's preferences module (database backup, test email, htaccess generation) fire via GET requests with no CSRF token validation. Because SameSite=Lax cookies travel with top-level GET navigations, an attacker forces an authenticated admin to trigger these actions from a malicious page.
Details
In modules/preferences.php, the backup, test_email, and htaccess modes accept GET parameters with no CSRF token check:
// modules/preferences.php - backup mode
case 'backup':
// Creates full database dump and serves as download
// No CSRF token validation
$backupFile = $gDb->backup();
// ... sends file to client
break;
case 'test_email':
// Sends test email from the server
// No CSRF token validation
break;
case 'htaccess':
// Writes .htaccess file to disk
// No CSRF token validation
break;The save mode in the same file validates CSRF via getFormObject(), confirming the developers intended CSRF protection but did not apply it to these other modes.
Because these are GET requests, SameSite=Lax browsers include session cookies on top-level cross-origin navigations, making CSRF exploitation trivial.
Proof of Concept
Simplified attacker page (csrf.html hosted on attacker origin):
<html>
<body>
<h1>Loading...</h1>
<!-- Trigger backup creation on victim's browser -->
<script>window.location = 'https://target-admidio.example.com/adm_program/modules/preferences.php?mode=backup';</script>
</body>
</html>When an administrator visits this page, the browser navigates to the Admidio backup URL with full session cookies. The server generates a database dump and serves it as a download to the victim's browser. Note: the backup downloads to the victim's machine, not to the attacker. The attacker cannot read the response cross-origin.
For htaccess mode, the CSRF overwrites the .htaccess file on the server, disrupting the application. For test_email mode, it triggers email sends from the server, which an attacker can abuse for spam or to probe internal email infrastructure.
Impact
An attacker tricks an Admidio administrator into visiting a malicious page that triggers state-changing operations on the server:
- Backup creation: forces the server to generate a full database dump. The backup downloads to the victim's browser, not to the attacker. However, repeated backup triggers can cause disk I/O and storage pressure on the server.
- htaccess modification: overwrites the server's
.htaccessfile, breaking URL routing or disabling security headers. - Test email: fires email sends from the server, usable as a spam relay or to probe internal mail configuration.
The core issue is that state-changing operations run via unprotected GET requests. The victim only needs to visit a single attacker-controlled page while logged in.
Recommended Fix
- Change
backup,test_email, andhtaccessoperations to require POST requests. - Add CSRF token validation using the existing
getFormObject()mechanism. - As defense in depth, set
SameSite=Stricton session cookies or add a confirmation step for destructive operations like database backup.
--- *Found by aisafe.io*
Credited to adrgs, aisafe-bot.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-53760
Admidio: CSRF on Plugin Install, Uninstall, and Update via Unprotected GET Requests
medium5.2No fixJul 9, 2026CVE-2026-47226
Admidio: Authorization bypass in file_delete enables cross-folder file removal by authenticated users without delete privileges
medium6.5May 29, 2026CVE-2026-47227
Admidio module-administrator can delete or reorder categories owned by other modules via dead authorization check in `modules/categories.php`
medium6.5May 29, 2026CVE-2026-47228
Admidio's CSRF in registration `send_login` mode resets arbitrary user passwords
medium5.2May 29, 2026CVE-2026-47229
Admidio: CSRF in SSO client `enable` action toggles SAML/OIDC clients without token validation
medium5.4May 29, 2026CVE-2026-47230
Admidio: IDOR in documents-files.php allows cross-folder file rename and description changes by unauthorized uploaders
medium6.5May 29, 2026
