| パッケージ | 影響を受けるバージョン | 修正済みバージョン |
|---|---|---|
| redaxo/source | < 5.20.2 | 5.20.2 |
| redaxo | < 5.20.2 | 5.20.2 |
Authenticated users with backup permissions can read arbitrary files within the webroot via path traversal in the Backup addon's file export functionality. <img width="664" height="899" alt="image" src="https://github.com/user-attachments/assets/fd1ca69e-b275-4daf-9a62-621cde6525f5" /> <img width="2358" height="445" alt="image" src="https://github.com/user-attachments/assets/fad81152-9e1b-413e-9823-09540a23e2fb" />
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
<img width="423" height="131" alt="image" src="https://github.com/user-attachments/assets/db8a8bda-cdaf-4dea-812f-1e312da908e2" />Extract and open data/core/config.yml
これらの製品をお使いですか?サイトをスキャンして、脆弱なバージョンが公開されていないか確認しましょう。
無料でサイトをスキャンResult: plaintext database password <img width="2534" height="1198" alt="image" src="https://github.com/user-attachments/assets/218ae917-868a-437e-98b0-6471b82c0b10" />
Full compromise of the REDAXO installation:
CVSS 4.0 vector & score below.
Discovered by: Łukasz Rybak