Description
Horde IMP before 7.0.1 contains a path traversal vulnerability in lib/Compose.php that allows authenticated attackers to read arbitrary files from the server filesystem by embedding traversal sequences after a CKEditor path prefix in img src URLs. Attackers can bypass the stripos() prefix validation by appending sequences such as traversal segments after the matching prefix, causing file_get_contents() to read sensitive files whose contents are then exfiltrated as MIME parts in outgoing email; unauthenticated exploitation is also achievable via CSRF against an active authenticated session.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| horde | imp | < 7.0.1 | 7.0.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | php-horde-imp | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php-horde-imp | No fix yet | — |
| Ubuntu 16.04 LTS | php-horde-imp | No fix yet | — |
References
- imp 7.0.1 Release Notes release-notes
- Fix PR issue-tracking patch
- Fix Commit patch
- Project Webpage product
- https://www.vulncheck.com/advisories/horde-imp-path-traversal-via-compose-php-img-src third-party-advisory
- Researcher Disclosure technical-description exploit