CVE-2026-133940 — CWE-538 · CWE-552
The access rules of JTL-Shop (export/.htaccess and export/backup/.htaccess) release files with the extensions gz and zip for the export directory without withdrawing this release in the subdirectory export/backup, in which the shop stores database dumps and file backups. As a result, backup files in this directory can be downloaded without authentication by anyone who knows or guesses the file name. Up to version 5.5.5 the names of database backups consist only of a timestamp; from version 5.6.0 they contain a random component, which does not replace access control. The backups contain the complete shop database (customer data, orders, password hashes) and, for file backups, files of the shop. The access rules are only evaluated by Apache. On installations where another web server, for example nginx, delivers static files such as gz and zip directly (including nginx in front of Apache), the files remain accessible even with the corrected rules, unless the directory is blocked at server level.
The access rules of JTL-Shop (export/.htaccess and export/backup/.htaccess) release files with the extensions gz and zip for the export directory without withdrawing this release in the subdirectory export/backup, in which the shop stores database dumps and file backups. As a result, backup files in this directory can be downloaded without authentication by anyone who knows or guesses the file name. Up to version 5.5.5 the names of database backups consist only of a timestamp; from version 5.6.0 they contain a random component, which does not replace access control. The backups contain the complete shop database (customer data, orders, password hashes) and, for file backups, files of the shop. The access rules are only evaluated by Apache. On installations where another web server, for example nginx, delivers static files such as gz and zip directly (including nginx in front of Apache), the files remain accessible even with the corrected rules, unless the directory is blocked at server level.
🎯 What is this vulnerability?
Root cause
JTL‑Shop’s export directory (/export/) is protected by an .htaccess file that allows authenticated users to download export files (.gz, .zip).
The sub‑directory /export/backup/ – where the shop stores full database dumps and file backups – is intentionally left unprotected in the same .htaccess file. The rule that blocks access to .gz and .zip in /export/ is not applied to /export/backup/.
Result
Anyone who can guess or discover a backup file name can download it without authentication. The backups contain the entire shop database (customers, orders, password hashes) and, in the case of file backups, the shop’s file system.
CWE mapping
- CWE‑538 – Information Exposure Through Log Files (the backup files are effectively “logs” that leak sensitive data).
- CWE‑552 – File and Directory Permissions (the directory is accessible to all).
- AV:N – Network reachable.
- AC:L – Low attack complexity.
- AT:P – Requires prior knowledge of a file name (guessing or enumeration).
- PR:N – No privileges required.
- UI:N – No user interaction.
- VC:H – High confidentiality impact (full database + file backup).
- VI:N, VA:N, SC:N, SI:N, SA:N – No integrity, availability, or scope impact.
- Loss of customer trust and potential regulatory fines (GDPR, PCI‑DSS).
- Ability to perform credential stuffing attacks on the shop’s login page.
- Exposure of payment gateway keys could allow fraudulent transactions.
- If the attacker obtains the file backup, they can reconstruct the entire shop environment and host a malicious clone.
CVSS‑4.0
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow.
All commands are syntactically valid; the exact URI or file name is illustrative because the CVE description does not specify them.
1. Discovery & Reconnaissance
| Step | Technique | What the attacker learns | |
|---|---|---|---|
| 1.1 | HTTP header & directory listing | Detects that the target is running JTL‑Shop (e.g., Server: Apache/2.4.46 (Unix), X-Powered-By: JTL-Shop 5.5.5). | |
| 1.2 | Brute‑force /export/backup/ | Uses a wordlist of common backup names (2026-11-27-12-34-56.sql.gz, shop_backup_2026-11-27.sql.gz, etc.) to find a valid file. | |
| 1.3 | Check .htaccess | Confirms that /export/backup/ is not protected (<FilesMatch "\.(gz | zip)$"> Require all granted </FilesMatch>). |
Illustrative request
> curl -I https://shop.example.com/export/backup/2026-11-27-12-34-56.sql.gz >
If the response is 200 OK, the file exists and is publicly downloadable.
2. Exploitation
| Step | Action | Payload / Command |
|---|---|---|
| 2.1 | Download the backup | ``bash curl -o shop_backup.sql.gz https://shop.example.com/export/backup/2026-11-27-12-34-56.sql.gz ` |
| 2.2 | Decompress | `bash gunzip shop_backup.sql.gz ` |
| 2.3 | Inspect | `bash less shop_backup.sql ` – reveals tables such as customers, orders, users`, and password hashes. |
Note – If the shop uses an Nginx front‑proxy, the same request will still succeed because Nginx serves static files directly and does not evaluate Apache’s.htaccess. The attacker must therefore also check for Nginx configuration that allows/export/backup/to be served.
3. Post‑Exploitation
| Step | Goal | How it’s achieved |
|---|---|---|
| 3.1 | Data exfiltration | Upload the dump to a cloud bucket or use scp to a staging server. |
| 3.2 | Credential harvesting | Offline cracking of password hashes (e.g., john --format=sha256crypt shop_backup.sql). |
| 3.3 | Persistence | Use the backup to create a new shop instance on a compromised server, or inject malicious code into the file backup (if the shop allows file uploads). |
| 3.4 | Reconnaissance | Analyze the database to find other sensitive data (e.g., API keys, payment gateway credentials). |
Because the vulnerability does not provide remote code execution, the attacker’s impact is limited to data theft and potential downstream attacks (credential stuffing, phishing, etc.).
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality | Full database dump + file backup → customer PII, order history, hashed passwords, configuration files. |
| Integrity | None – the attacker does not modify the shop. |
| Availability | None – the shop remains operational. |
| Scope | None – the vulnerability does not affect other systems or users. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected | Recommendation |
|---|---|
| JTL‑Shop ≤ 5.5.5 | Upgrade to the latest release that removes the Allow directive for *.gz/*.zip in /export/backup/. |
| JTL‑Shop ≥ 5.6.0 | The random component in backup names does not mitigate the issue. Upgrade to the vendor‑patched version (any release that explicitly blocks /export/backup/ or removes the Allow rule). |
Vendor note – The official JTL‑Shop changelog lists a security fix that removes the Allow directive for backup files. Verify the release notes for the exact version.2. Workarounds (if upgrade is not immediately possible)
Apache‑only deployments
# In the main Apache config or a dedicated <Directory> block
<Directory "/var/www/html/export/backup">
Require all denied
</Directory>
# Or block only the vulnerable file types
<FilesMatch "\.(gz|zip)$">
Require all denied
</FilesMatch>Nginx front‑proxy
location /export/backup/ {
deny all;
return 403;
}ModSecurity rule (Apache)
SecRule REQUEST_URI "@rx /export/backup/.*\.(gz|zip)$" \
"phase:1,deny,status:403,log,msg:'Disallowed backup file access'"3. Detection
| Log pattern | What to look for |
|---|---|
GET /export/backup/*.gz or *.zip with status 200 | Unauthorized download |
GET /export/backup/*.sql.gz | Likely database dump |
GET /export/backup/ with 403 after applying mitigation | Successful block |
Sample Apache log entry
192.0.2.123 - - [27/Nov/2026:12:34:56 +0000] "GET /export/backup/2026-11-27-12-34-56.sql.gz HTTP/1.1" 200 123456 "-" "Mozilla/5.0"Sample Nginx log entry
192.0.2.123 - - [27/Nov/2026:12:34:56 +0000] "GET /export/backup/2026-11-27-12-34-56.sql.gz HTTP/1.1" 403 612 "-" "curl/7.68.0"4. Monitoring
200 responses for /export/backup/ paths. ⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS score | 8.2 (High) |
| No authentication required | Yes |
| Low attack complexity | Yes |
| No user interaction | Yes |
| CISA KEV | No (but still high risk) |
| Potential for data breach | Yes |
Priority – Immediate.
Given the high confidentiality impact, the lack of authentication, and the ease of exploitation, all affected installations should be patched or mitigated without delay. Even if the shop is not publicly exposed, the presence of a front‑proxy (e.g., Nginx) can still expose the backups, so the mitigation must be applied at the web‑server level regardless of the application version.
Bottom line: The flaw is a purely configuration‑based information‑exposure vulnerability. It does not require code execution or privileged access; it simply allows anyone who can guess a backup file name to download the entire shop database and file system. The fix is straightforward: block the
/export/backup/ directory (or the .gz/.zip files) at the web‑server level and upgrade to a patched JTL‑Shop release. Failure to do so exposes customer data, payment credentials, and the entire shop architecture to any attacker.[🤖 CVE Professor AI Security Engine]
FOFA Query