Niska

Admidio has CSRF on Admin Preferences that Triggers Unauthorized Backup, .htaccess Write, and Email Send

  • Ujawniono: 29.04.2026
  • Aktualizacja: 11.10.2026 10:22

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:

php
// 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
<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 .htaccess file, 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

  1. Change backup, test_email, and htaccess operations to require POST requests.
  2. Add CSRF token validation using the existing getFormObject() mechanism.
  3. As defense in depth, set SameSite=Strict on session cookies or add a confirmation step for destructive operations like database backup.

Found by aisafe.io

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Paczka Composer admidio/admidio < 5.0.9 5.0.9

Odnośniki

Ocena CVSS 3.5/10
Wektor CVSS
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L
Słabość (CWE)
CWE-352
Platforma
Composer
Paczka
admidio/admidio
Ujawniono
29.04.2026
Aktualizacja
11.10.2026 10:22

Źródła i licencje

OSV / GitHub Advisory Database - GHSA-rw74-vc9h-534j - CC BY 4.0

Historia podatności: admidio/admidio

Wszystkie opisane podatności tej paczki (Paczka Composer), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkie (50) w archiwum
Wszystkich wpisów
50
Pierwsza → ostatnia
03.2022 07.2026
Bez poprawki
1
Wykorzystywana w atakach
0

Rozkład istotności

  • Krytyczna 3
  • Wysoka 10
  • Średnia 33
  • Niska 4

Ujawnienia w latach

  1. 2022: 3
  2. 2023: 7
  3. 2024: 3
  4. 2025: 1
  5. 2026: 36
Istotność:
  1. Admidio has CSRF on Admin Preferences that Triggers Unauthorized Backup, .htaccess Write, and Email Send ten wpis
    Niska · 3.5 CVE-2026-41663 < 5.0.9 5.0.9
  2. Krytyczna · 9.1 CVE-2026-32817 >= 5.0.0, < 5.0.7 5.0.7
  3. Wysoka · 8.8 CVE-2026-32756 < 5.0.7 5.0.7
  4. Krytyczna · 9.0 CVE-2024-38529 < 4.3.10 4.3.10
  5. Krytyczna · 9.9 CVE-2024-37906 < 4.3.9 4.3.9
  6. Wysoka · 8.2 CVE-2022-0991 < 4.1.9 4.1.9

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.