CVE-2026-104783e107inc/e107 Path Traversal
NVD
Vulnerability Summary
Summary `thumb.php`, e107's current thumbnailer, is public by design. It decided which file to open by refusing five URL schemes and deleting the substring `..`, and never compared the resolved path against a list of permitted directories. An absolute path was simply opened, and the `id=` parameter carried path constants such as `{e_SYSTEM}` past the request sanitisation every other parameter gets. A visitor with no account could therefore have it re-encode and return any file the web-server account can read that decodes as an image, from anywhere on the volume. This was first described in an August 2026 amendment to GHSA-87hm-vh32-7c3r, whose download-handler fix it sits beside. It is a different endpoint in a different subsystem with its own fix, so it is published on its own. Details The report, and therefore the fix, was scoped to the download handler. `e_file::send()` is the chokepoint for that route, and it was fixed properly: `isAbsolutePath()` (`e107_handlers/file_class.php#L652`), `isSafeRelativePath()` (`#L678`), `getSendRoots()` (`#L724`) and `resolveSendPath()` (`#L759`) were added and are consumed by `send()` at `#L1419`, and the by-name branches of `request.php` became database lookups. e107 ships two other unauthenticated entry points that read a caller-named path off disk and return its contents. Neither goes through `e_file::send()`, so neither was touched. The current thumbnailer `e_thumbnail::checkSrc()` decided what it would open with a scheme deny-list and a substring removal, and never canonicalised the result: ```php // e107_handlers/e_thumbnail_class.php:201-215 @ v2.3.10 if(preg_match('#^(https?|ftps?|file)://#i', $this->_request['src'])) { return false; } ... // convert to relative server path $path = $tp->replaceConstants(str_replace('..', '', $this->_src)); //should be safe enough if(is_file($path) && is_readable($path)) { $this->_src_path = $path; return true; } ``` - https://github.com/e107inc/e107/blob/v2.3.10/e107_handlers/e_thumbnail_class.php#L201 - https://github.com/e107inc/e107/blob/v2.3.10/e107_handlers/e_thumbnail_class.php#L213 - https://github.com/e107inc/e107/blob/v2.3.10/e107_handlers/e_thumbnail_class.php#L215 One missing containment test, and two routes around the checks that stood in for it: - No containment. There is no root list and no `realpath()` comparison. Deleting the substring `..` stops traversal relative to the site, and does nothing at all about an absolute path, which is simply opened. The trailing comment, `//should be safe enough`, is the whole of the reasoning. - A deny-list where an allow-list belongs. Five scheme names are refused. The question that matters is not "is this one of the five schemes we thought of" but "is this a scheme at all". - The `id=` parameter routes around e107's own request sanitisation. `e107::set_request()` (`e107_handlers/e107_class.php#L6064`) strips `{`, `}` and their percent-encoded forms from `e_QUERY` at `#L6104` and `htmlspecialchars()` the result at `#L6107`. But `parseRequest()` replaces the whole query string with `base64_decode($_GET['id'])` (`e107_handlers/e_thumbnail_class.php#L136-L139`), which never passed through any of it, so a `src` naming a path constant such as `{e_SYSTEM}` survives into `replaceConstants()` intact. What this endpoint discloses is narrower than the download handler. The bytes are re-encoded by Intervention Image, so it serves files that decode as images, not `e107_config.php`. What it does reach is every image outside the published tree that the web server account can read, including private media, avatars, and forum and PM attachments. The deny-list and the `id=` route are consequences of the missing containment, not separate defects: once the resolved path must fall inside an explicit root list, neither a scheme nor a path constant can reach outside it. Also hardened on this endpoint These are not part of the vulnerability and are listed so that a reader backporting the fix knows they exist. - Unbounded dimensions and an unchecked type. `w`, `h`, `aw` and `ah` reached GD unbounded, and `type` became a cache-file extension unchecked. - Error handlers that described the server. `thumb.php#L27-L33` echoed the exception message, and `#L35-L52` echoed the error string with the absolute file path and line number. On the unreleased `master` branch (the v2.4 line) it is worse: the handler there `var_dump()`s the message, the file, the line and the full stack trace to the caller. Impact A visitor with no account reads every image outside the published tree that the web-server account can read: private media, avatars, and forum and private message attachments. The bytes are re-encoded, so files that do not decode as images, `e107_config.php` among them, are not served. Severity `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`, 5.3 Medium. `PR:N` because the endpoint is public. `C:L` because what is served is limited to files that decode as images, re-encoded. Workarounds None short of upgrading. Patches Fixed in e107 2.3.11. - Contains the current thumbnailer to an explicit root list. `realpath()` containment against `e_MEDIA`, `e_AVATAR`, `e_IMAGE`, `e_THEME`, `e_PLUGIN` and `e_WEB`, reusing `resolveSendPath()` from the v2.3.10 fix but deliberately not `getSendRoots()`, whose set exists for downloads and includes `e_SYSTEM`. - Replaces the scheme deny-list with an allow-list. Anything matching a scheme grammar at all is refused, rather than five names. - Reads `id=` through the same path as every other parameter, so it can no longer carry a path constant around `set_request()`. The dimensions it encodes still work. - Clamps `w`, `h`, `aw` and `ah`, allow-lists `type`, and replaces the trace-printing handler with an opaque 500 plus an `error_log()` entry. A site poisoned before the patch can still be carrying an attacker-written `.htaccess` inside an `e107_media` subdirectory. Apache merges a child directory's rules after the parent's, so nothing e107 writes at the media root can override one. Detecting that needs a recursive audit rather than a request-path change; if you believe your site was exploited, walk `e107_media/` for `.htaccess` files e107 did not write. Related - GHSA-wmqr-5mw9-hx7x: the same endpoint ignored the media library's `media_userclass`. - GHSA-wq9c-9fw4-3fg2: the legacy 0.8 thumbnailer, which read a caller-named path verbatim. - GHSA-87hm-vh32-7c3r: the download handler's path traversal, fixed in 2.3.10. Credits Found and fixed by e107help.
CVSS v3.1 Base Metrics — Score 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- e107inc/e107 <= 2.3.10
- e107inc/e107 2.3.11
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run e107inc/e107 and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Sep 25, 2026Published
- Sep 25, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new e107inc/e107 CVEsYou are reading CVE-2026-104783. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 25, 2026 14:00 UTC