Authenticated users with backup permissions can read arbitrary files within the webroot via path traversal in the Backup addon's file export functionality.
The Backup addon does not validate the EXPDIR POST parameter against the UI-generated allowlist of permitted directories.
An attacker can supply relative paths containing ../ sequences (or even absolute paths inside the document root) to include any readable file in the generated .tar.gz archive.
Vulnerable code:
redaxo/src/addons/backup/pages/export.php (lines 72-76) – directly uses $_POST['EXPDIR']redaxo/src/addons/backup/lib/backup.php (lines ~413 & ~427) – concatenates unsanitized user input with base pathThis allows disclosure of sensitive files such as:
redaxo/data/core/config.yml → database credentials + password hashes of all backend users.env, custom configuration files, logs, uploaded malicious files, etc.≤ 5.20.1 (confirmed working)
None (as of 2025-12-09)
EXPDIR[] value to ../../../../var/www/html/redaxo/data/coreSend request → download archive
Extract and open data/core/config.yml
Result: plaintext database password
Full compromise of the REDAXO installation:
CVSS 4.0 vector & score below.
Discovered by: Łukasz Rybak
{
"cwe_ids": [
"CWE-22",
"CWE-24"
],
"github_reviewed": true,
"github_reviewed_at": "2026-01-05T20:02:58Z",
"nvd_published_at": "2026-01-07T23:15:50Z",
"severity": "HIGH"
}