Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister account (or use existing)
-
DeliveryAuthenticate to Admidio
-
ExploitNavigate to ecard form
-
InstallExtract CSRF token from form HTML
-
C2Modify ecard_template parameter to ../config.php
-
ExecuteSubmit POST request to ecard_preview.php
-
ImpactTrigger path traversal in ECard::getEcardTemplate()
-
Step 8Read config.php file contents
-
Step 9Extract database credentials from response
-
Step 10Connect to database directly
-
Step 11Compromise all user data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires four specific conditions that significantly constrain but do not eliminate real-world risk: (1) The attacker must be a registered user with authenticated access to Admidio-this cannot be bypassed, but many deployments allow public self-registration; (2) The ecard preview functionality must be enabled and accessible (modules/photos/ecard_preview.php must exist and be callable), which is enabled by default in standard Admidio installations; (3) The target file must be readable by the web server process user, which is true for config.php in default deployments where web server runs as www-data or similar and config.php is world-readable; (4) The attack succeeds only against paths accessible relative to the ecard_templates directory-arbitrary system file reads like /etc/passwd require the directory structure and file permissions to permit traversal far outside the data directory (typically achievable with 5-6 ../ sequences). These conditions are not edge-cases-they represent the default security posture of most Admidio deployments. The lack of admin privilege requirement and the presence of public registration on many installations make this exploitable by any user willing to create an account. Only the authentication requirement provides meaningful protection, and even that is minimal if registration is unrestricted. |
| Impact | This vulnerability presents critical real-world risk despite the moderate CVSS 6.5 score. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) correctly indicates network accessibility, low attack complexity, and requirement for authenticated access, but understates impact because it only scores confidentiality impact while ignoring the downstream compromise enabled by credential disclosure. The authentication requirement (PR:L) limits exposure to registered users only, but most Admidio deployments allow public registration, making the practical barrier to exploitation low. The high confidentiality impact (C:H) is justified-database credentials exposed in config.php directly enable complete database compromise including user password hashes, personal data, and financial records if present. The absence of integrity or availability impact in the CVSS vector is misleading because leaked credentials enable follow-up attacks including SQL injection, privilege escalation, and potentially remote code execution if database privileges are misconfigured. Source code disclosure through arbitrary PHP file reads further aids reconnaissance for secondary vulnerabilities. No EPSS score, KEV status, or public exploit code was provided in the input data, but the presence of a working proof-of-concept in the GitHub advisory and the relative simplicity of the attack (single POST request with path traversal payload) strongly suggests this will become actively exploited once the patch is released and version comparison becomes trivial. Priority should be CRITICAL for any Admidio deployment storing sensitive data in the database. |
| Exploit ScenarioDerived | A registered user with a member account (no admin privileges required) logs into Admidio and navigates to the ecard functionality to send a greeting card from a photo album. After the form loads, the user intercepts the HTTP request to ecard_preview.php and modifies the ecard_template POST parameter from a legitimate template filename like greeting.php to ../config.php. The request includes a valid CSRF token extracted from the form, bypassing CSRF protection. The vulnerable endpoint processes the path traversal string without validation, concatenates it into the file path, and returns the contents of adm_my_files/config.php rendered within the ecard preview HTML. The attacker extracts database credentials from the response and uses them to connect directly to the database server, compromising all user data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Path traversal in Admidio ecard_preview.php allows authenticated users to read arbitrary server files including database credentials by bypassing filename validation on the ecard_template POST parameter. An authenticated attacker can supply path traversal payloads such as ../config.php to read adm_my_files/config.php containing unencrypted database host, username, and password, or traverse further to access system files. Exploitation requires only a regular member account with no special privileges, making this a high-impact vulnerability accessible to any registered user.
RemediationAI
Update Admidio to version 5.0.9 or later immediately-this is the vendor-released patch that adds filename validation to ecard_preview.php matching the existing validation in ecard_send.php. The patch implements the recommended fix by calling admFuncVariableIsValid() with 'file' type validation on the ecard_template parameter before passing it to getEcardTemplate(), blocking any path traversal sequences. If immediate patching is not feasible, implement compensating controls: (1) Use web server configuration (Apache mod_rewrite or nginx rewrite rules) to block POST requests to ecard_preview.php containing ../ in the request body, though this is fragile; (2) Restrict database user permissions to only the minimum required tables, limiting the impact if config.php is leaked and credentials are compromised; (3) Implement strict file permissions so adm_my_files/config.php is not world-readable and rotate database credentials immediately; (4) Consider disabling the ecard feature entirely via Admidio's module management if ecards are not essential to your deployment. The most effective interim measure is credential rotation plus strict file permission hardening, as the vulnerability cannot be fully mitigated without the code patch. Reference vendor advisory for patch instructions: https://github.com/Admidio/admidio/security/advisories/GHSA-m3vp-3jjm-gpmx
Affected VersionsENISA
Affected Packages
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's ecard preview functionality processes electronic greeting card templates through the ecard_preview.php endpoint. The vulnerability stems from incomplete input validation in the form processing pipeline. When the ecard form is submitted, the ecard_template parameter passes through FormPresenter::validate() which applies only strStripTags() sanitization to select box values-a function designed to remove HTML tags but not to restrict path traversal characters like ../ and /. This contrasts with ecard_send.php which explicitly calls admFuncVariableIsValid() with 'file' type validation that invokes strIsValidFileName() to reject any path containing directory traversal sequences. The unvalidated filename is then concatenated directly into a file path in ECard::getEcardTemplate() and passed to PHP's fopen() function, allowing the ../ sequences to escape the intended ecard_templates directory and access parent directories including the sensitive config.php file. CWE-22 (Path Traversal) is the root cause-insufficient canonicalization or restriction of paths containing special elements.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
The ecard_preview.php endpoint does not validate that the ecard_template POST parameter is a safe filename before passing it to ECard::getEcardTemplate(). An authenticated user can supply a path traversal payload (e.g., ../config.php) to read arbitrary files accessible to the web server process, including adm_my_files/config.php which contains database credentials.
Details
Root Cause: The ecard_template parameter is a select box whose value is only sanitized via strStripTags() during form validation, which does not restrict path traversal characters. Unlike ecard_send.php which explicitly validates the template name as a safe filename, ecard_preview.php omits this check entirely.
Code Path:
modules/photos/ecards.php:143-152- The form creates a select box with template filenames fromadm_my_files/ecard_templates/. The form object is stored in the session.modules/photos/ecard_preview.php:33-34- The POST request is validated against the stored form object:
$categoryEditForm = $gCurrentSession->getFormObject($_POST['adm_csrf_token']);
$formValues = $categoryEditForm->validate($_POST);src/UI/Presenter/FormPresenter.php:2190-2243- Thevalidate()method appliesStringUtils::strStripTags()to all values and performs type-specific checks forcaptcha,date,editor,email,number,url, anduuid- but has no validation case for select box values. The attacker-controlled value../config.phppasses through unchanged.modules/photos/ecard_preview.php:48- The unvalidated value is passed directly togetEcardTemplate():
$ecardDataToParse = $funcClass->getEcardTemplate($formValues['ecard_template']);src/Photos/ValueObject/ECard.php:67-77- The filename is concatenated into the path and opened:
public function getEcardTemplate(string $tplFilename, string $tplFolder = ''): ?string
{
if ($tplFolder === '') {
$tplFolder = ADMIDIO_PATH . FOLDER_DATA . '/ecard_templates/';
}
// ...
$fileHandle = @fopen($tplFolder . $tplFilename, 'rb');With $tplFilename = '../config.php', this resolves to ADMIDIO_PATH/adm_my_files/ecard_templates/../config.php → ADMIDIO_PATH/adm_my_files/config.php.
Why ecard_send.php is NOT vulnerable: At line 35, it independently validates the template name:
$postTemplateName = admFuncVariableIsValid($_POST, 'ecard_template', 'file', array('requireValue' => true));This calls strIsValidFileName() which checks basename($filename) !== $filename, blocking any path traversal. The preview endpoint lacks this check.
PoC
# Step 1: Log in and visit the ecard form to create a session with a form object
# Navigate to: /modules/photos/ecards.php?photo_uuid=<valid_album_uuid>&photo_nr=1
# Extract the adm_csrf_token from the rendered form HTML
# Step 2: Send path traversal payload to read config.php (contains DB credentials)
curl -b 'PHPSESSID=<session_cookie>' \
-X POST 'https://target/modules/photos/ecard_preview.php' \
-d 'adm_csrf_token=<csrf_token>&ecard_template=../config.php&ecard_message=test&photo_uuid=<valid_uuid>&photo_nr=1&submit_action=preview'
# The response body will contain the contents of adm_my_files/config.php
# rendered inside the ecard preview HTML, including:
# $g_adm_srv (database host)
# $g_adm_db (database name)
# $g_adm_usr (database username)
# $g_adm_pw (database password)
# To traverse further outside adm_my_files:
# ecard_template=../../system/bootstrap/constants.php (reads PHP source)
# ecard_template=../../../../../etc/passwd (reads system files)Impact
- Database credential disclosure: Any authenticated user can read
adm_my_files/config.php, exposing database host, name, username, and password. If the database is network-accessible, this enables full database compromise. - Source code disclosure: Arbitrary PHP files can be read, revealing application logic, internal paths, and potentially other secrets.
- System file disclosure: With sufficient traversal depth (
../../../../../etc/passwd), system files can be read, aiding further attacks. - Low barrier to exploit: Only requires a regular member account - no admin privileges needed.
Recommended Fix
Add filename validation to ecard_preview.php before passing the template name to getEcardTemplate(), matching the validation already present in ecard_send.php:
// In modules/photos/ecard_preview.php, add BEFORE line 48:
$postTemplateName = admFuncVariableIsValid(
$formValues, 'ecard_template', 'file', array('requireValue' => true)
);
$ecardDataToParse = $funcClass->getEcardTemplate($postTemplateName);Alternatively, add select box value validation to FormPresenter::validate() to verify that submitted select box values match one of the predefined options, which would protect all select boxes across the application:
// In src/UI/Presenter/FormPresenter.php, inside the switch statement in validate():
case 'select':
if (isset($element['values']) && !array_key_exists($fieldValues[$element['id']], $element['values'])) {
throw new Exception('SYS_FIELD_INVALID_INPUT', array($element['label']));
}
break;Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-28263
GHSA-m3vp-3jjm-gpmx
NVD
CVE.org
EPSS
Exploit-DB