DEV Community

johnettagaweraks
johnettagaweraks

Posted on

TastyIgniter's Media Manager accepted the file that rewrote PHP handling

TastyIgniter's Media Manager accepted the file that rewrote PHP handling

TastyIgniter's Media Manager accepted an Apache .htaccess file in affected releases. The file did not need to look like a web shell. It only needed to tell Apache to send a chosen extension to the PHP handler. Once that directive reached the upload directory, an ordinary file could become executable code.

GitHub rates the issue as Critical and tracks it as CVE-2026-69179. The advisory lists versions through 4.2.4 as affected and 4.3.1 as patched. The demonstrated path starts with an authenticated administrator, so this is not a pre-login exploit. That distinction matters, but it does not make the upload boundary harmless. Restaurant sites often have several administrators, contractors and hosting users. An account that can manage media may not be intended to control server code.

How the upload became code execution

The advisory shows the upload of a .htaccess file containing a FilesMatch block. The block associates .jpg files with application/x-httpd-php. An attacker can then upload a .jpg file whose contents are PHP, request it from the media path, and have the web server execute it.

The important failure is the absence of a filename policy at the point where the file enters persistent storage. Checking the MIME type alone would not close the path because the attack abuses server configuration rather than a parser. The upload function needs to reject protected configuration names, normalize the path, and store untrusted files where configuration overrides cannot apply.

Exposure depends on more than the TastyIgniter version

The advisory does not show that every affected installation is remotely exploitable. The attacker first needs a route to administrator functionality. That can come from reused passwords, a phishing page, a shared contractor account, a vulnerable plugin, or a compromised browser session. The severity remains high because administrators are expected to upload assets, and the resulting write changes the execution model of the web server.

Teams should also review the web server's AllowOverride policy. If an upload directory allows .htaccess files, application-level filename checks become a second line of defense rather than the only one. Apache's AllowOverride documentation explains that these files can change directory-level behavior. A directory that stores customer images should not have permission to redefine handlers.

What to check after upgrading

Upgrade to TastyIgniter 4.3.1 or later. Then inspect the media directory for dotfiles, double extensions, unexpected PHP content, and recently modified .htaccess files. Search web-server logs for requests to uploaded files that returned 200 from a PHP-enabled path. Check administrator accounts created near the suspected activity and rotate credentials and sessions if the review finds an unexplained upload.

Add a deployment rule that denies serving dotfiles from uploads and disables script execution in the media tree. Keep the application and web-server rules in version control so a future image update does not restore permissive defaults. Back up the directory before cleanup so evidence is preserved.

Finally, separate content-management permission from release permission. A person who can update a restaurant menu should not automatically be able to change server configuration. That separation will not fix the CVE, but it makes a stolen editor account less likely to become an executable upload primitive.

References

Top comments (0)