Skip to main content

Admidio CVE-2026-47232

| EUVDEUVD-2026-57209 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-05-29 https://github.com/Admidio/admidio GHSA-4rgq-38mh-9xqg
4.3
CVSS 3.1 · Vendor: https://github.com/Admidio/admidio
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enumerate target SSO key UUID from administrator UI
  2. Delivery
    Host malicious page with auto-submitting hidden POST form
  3. Exploit
    Deliver phishing link to Admidio administrator
  4. Execution
    Administrator browser auto-POSTs to export endpoint with session cookie
  5. Persist
    Server executes KeyService::exportToPkcs12() without CSRF check
  6. Impact
    PKCS#12 bundle streamed to administrator browser as file download

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must hold an active Admidio administrator session at the time the CSRF request fires - the CVSS PR:N refers to the attacker's own privilege level (none required), not the victim's role. The SSO key management feature must be deployed and at least one SSO key pair must exist; the attacker must also know or enumerate the target key UUID, which is visible in the admin UI. User interaction is required (UI:R): the administrator must visit an attacker-controlled page that triggers the forged POST. Same-origin policy prevents the attacker from reading the .p12 response content across origins, so the private key is downloaded to the administrator's browser rather than sent directly to the attacker - this is the primary factor limiting practical exfiltration severity. No non-default server configuration is required beyond the SSO module being in use.

Impact

The CVSS 4.3 Medium score (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N) accurately reflects the UI:R constraint - the attack requires luring a logged-in administrator to an attacker-controlled page - and the C:L rating, which accounts for same-origin policy blocking direct cross-origin response reading. However, the qualitative sensitivity of the exported asset (an SSO private key) meaningfully exceeds what C:L typically connotes: if the key file reaches the attacker through secondary means (phishing the download, filesystem access after export, or admin machine compromise), the downstream impact could include SSO token forgery. No EPSS score was provided in the available intelligence data, so exploitation probability cannot be expressed as an empirical figure. This CVE is not listed in the CISA KEV catalog, confirming no confirmed active exploitation at time of analysis. A working proof-of-concept Python script is published in the vendor's own GitHub security advisory (GHSA-4rgq-38mh-9xqg), which lowers the exploitation barrier to near-zero for actors with access to an administrator's session context. There is no conflict between the CVSS vector and the description: the network attack vector and UI:R are entirely consistent with a browser-driven CSRF pattern.

Exploit ScenarioDerived

An attacker crafts a malicious HTML page containing a hidden auto-submitting form that POSTs to /modules/sso/keys.php?mode=export&uuid=<target-key-uuid> with a chosen key_password value, then lures an authenticated Admidio administrator to visit the page. The administrator's browser executes the forged request using the existing session cookie, and the server streams a PKCS#12 bundle back to the administrator's browser without validating a CSRF token. A publicly available proof-of-concept Python script published in GHSA-4rgq-38mh-9xqg demonstrates the same export flow using a direct authenticated session, confirming the endpoint processes export requests absent any token check.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Missing CSRF protection on the PKCS#12 private key export endpoint in Admidio v5.0.9 allows a network-based attacker to force an authenticated administrator's browser to trigger an unauthorized SSO private key export. The SecurityUtils::validateCsrfToken() call in modules/sso/keys.php was commented out on the 'export' case, permitting forged cross-site POST requests to invoke KeyService::exportToPkcs12() without a valid form token. While same-origin policy prevents the attacker from reading the streamed .p12 response directly, a working proof-of-concept is publicly documented in the GitHub security advisory and a vendor-confirmed fix is available in version 5.0.10.

RemediationAI

Upgrade Admidio to version 5.0.10, which restores the CSRF token validation call (SecurityUtils::validateCsrfToken($_POST['adm_csrf_token'])) in the 'export' case of modules/sso/keys.php. The fix is confirmed by the vendor advisory at https://github.com/Admidio/admidio/security/advisories/GHSA-4rgq-38mh-9xqg and by Composer package metadata marking <= 5.0.9 as vulnerable and 5.0.10 as the patched release. If immediate upgrade is not possible, restrict access to /modules/sso/keys.php via web server ACLs to trusted administrator IP ranges only - this reduces attack surface but does not eliminate CSRF risk for administrators browsing from within an allowed range. The vendor additionally recommends requiring re-authentication or current-password confirmation before any private key export as a defense-in-depth measure; note that this requires additional development effort and is not present in the default application.

Affected VersionsENISA

admidio < 5.0.10

Affected Packages

composer admidio/admidio fix: 5.0.10
euvd admidio fix: 5.0.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Admidio is an open-source PHP membership management application whose SSO module manages cryptographic key pairs for single sign-on federation. The vulnerable component spans two files: modules/sso/keys.php (the request dispatcher) and src/SSO/Service/KeyService.php (which calls PHP's native openssl_pkcs12_export() to bundle the private key and certificate into a PKCS#12 container and streams it as a browser download). CWE-352 (Cross-Site Request Forgery) identifies the root cause: the application processes a sensitive, state-affecting action - exporting secret key material - without verifying that the request originated from the application's own UI via a bound anti-CSRF token. The CPE package identifier is pkg:composer/admidio/admidio, and the flaw is pinned to the v5.0.9 codebase per vendor-published source references at https://github.com/Admidio/admidio/blob/v5.0.9/modules/sso/keys.php#L83-L94 and https://github.com/Admidio/admidio/blob/v5.0.9/src/SSO/Service/KeyService.php#L108-L150.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/Admidio/admidio) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Primary rating from Vendor (https://github.com/Admidio/admidio) · only source for this CVE.

CVSS VectorVendor: https://github.com/Admidio/admidio

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The sensitive mode=export action in modules/sso/keys.php exports a PKCS#12 bundle containing the configured private key and certificate, but the CSRF validation line is commented out. A forged cross-site POST from an administrator session can therefore trigger private key export without a valid form token.

Vulnerable Code Links

  • https://github.com/Admidio/admidio/blob/v5.0.9/modules/sso/keys.php#L83-L94
  • https://github.com/Admidio/admidio/blob/v5.0.9/src/SSO/Service/KeyService.php#L108-L150

Vulnerable Code

php
// modules/sso/keys.php
case 'export':
// SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
$keyService = new KeyService($gDb);
$password = admFuncVariableIsValid($_POST, 'key_password', 'string');
$keyService->exportToPkcs12($getKeyUUID, $password);
break;
php
// src/SSO/Service/KeyService.php
public function exportToPkcs12(string $keyUUID, string $password = '') {
$ssoKey = new Key($this->db);
$ssoKey->readDataByUuid($keyUUID);
...
openssl_pkcs12_export($certificate, $pkcs12, $privateKey, $password, ["friendly_name" => $name]);
header('Content-Type: application/x-pkcs12');
header('Content-Disposition: attachment; filename="' . $filename . '.p12"');
echo $pkcs12;
exit;
}

What Does The Code Mean

The export route accepts a key UUID and export password from the request, then returns a PKCS#12 bundle containing the private key material and certificate as a direct browser download.

Why The Code Is Vulnerable

The route is a sensitive action and should require a valid anti-CSRF token. Because the validation call is commented out, any attacker-controlled page can force an authenticated administrator’s browser to perform the export request.

Verification Environment

  • Application: Admidio v5.0.9
  • Runtime: Dockerized Admidio + MariaDB on http://localhost:18080
  • Validation mode: real deployed application, not isolated unit tests

Steps To Reproduce

  1. Log in as an administrator.
  2. Create or seed an SSO key pair.
  3. Send a POST request to /modules/sso/keys.php?mode=export&uuid=<key-uuid> with only key_password=ExportPass123! and no adm_csrf_token.
  4. Verify that the response returns application/x-pkcs12 and that the returned file parses successfully with OpenSSL.

PoC Script

python
import os
from pathlib import Path

from helpers import BASE_URL, login, new_session, save_json, save_text


KEY_UUID = os.environ["ADMIDIO_KEY_UUID"]


def main():
session = new_session()
login_result = login(session, "admin", "AdminPass123!")
resp = session.post(
    f"{BASE_URL}/modules/sso/keys.php?mode=export&uuid={KEY_UUID}",
    data={"key_password": "ExportPass123!"},
)
resp.raise_for_status()

Path("/home/ubuntu/bughunting/admidio/runtime_validation/output/exported_key.p12").write_bytes(resp.content)
save_json(
    "pkcs12_export_csrf_result.json",
    {
        "login": login_result,
        "status_code": resp.status_code,
        "content_type": resp.headers.get("Content-Type"),
        "content_length": len(resp.content),
        "content_disposition": resp.headers.get("Content-Disposition"),
    },
)


if __name__ == "__main__":
main()

PoC Output

text
{
  "content_disposition": "attachment; filename=\"Runtime_Test_Key.p12\"",
  "content_length": 2644,
  "content_type": "application/x-pkcs12",
  "login": {
"cookies": {
  "ADMIDIO_admidio_adm_SESSION_ID": "jpk70tcvbaq3gof7lqdq6penkb"
},
"csrf": "ztUJwMPATEKBdu2Qw3oJlnD0WeWLcn",
"json": {
  "status": "success",
  "url": "http://localhost:18080/modules/overview.php"
},
"status_code": 200
  },
  "status_code": 200
}

MAC: sha256, Iteration 2048
MAC length: 32, salt length: 8
PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC, Iteration 2048, PRF hmacWithSHA256
Certificate bag
PKCS7 Data
Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC, Iteration 2048, PRF hmacWithSHA256

Impact

A cross-site request can trigger private key export in an administrator browser context. Same-origin policy normally prevents direct cross-site reading of the response, so the practical impact is lower than a direct exfiltration bug, but the application still performs a sensitive secret-export action without CSRF protection.

Remediation And Suggestions

Restore CSRF validation and require a POST body token before exporting private key material.

php
case 'export':
SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
$keyService = new KeyService($gDb);
$password = admFuncVariableIsValid($_POST, 'key_password', 'string');
$keyService->exportToPkcs12($getKeyUUID, $password);
break;

For additional hardening, consider requiring re-authentication or current-password confirmation before any private-key export.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy