TastyIgniter wave (4 GHSAs): email template editor executes PHP and .htaccess files upload¶
Source: GitHub Security Advisories published 2026-11-25T21:52-22:54Z for tastyigniter/tastyigniter (Laravel-based restaurant/ordering CMS). All four fixed in 4.3.1. Every advisory ships a full HTTP PoC against a stock local install.
Wave in one line: the mail-template editor compiles @php ... @endphp blocks so any admin with Admin.MailTemplates gets code execution through a test-render handler invoked by request header, the Media Manager accepts .htaccess so a benign .jpg becomes PHP on Apache, the upload request carries the destination directory as client data (/ swapped for /../../), and SVGs upload with live <script>.
Authorized lab validation only
Run every leg against your own disposable TastyIgniter 4.3.0 (or earlier) install. The .htaccess and traversal legs write files into the web root: use marker payloads, delete them after capture, and never plant handler configs or drop files on a production or customer host.
Advisory table¶
| GHSA | CVE | Sev. | Boundary |
|---|---|---|---|
| GHSA-743w-g9pf-8p94 | CVE-2026-69178 | critical | Mail template SSTI to RCE: POST /admin/mail_templates/edit/{id} stores a template body containing @php echo shell_exec('id'); @endphp with zero validation or sanitization, then X-IGNITER-REQUEST-HANDLER: onTestTemplate triggers a server-side render of the stored body = arbitrary PHP execution. Trigger and persistence are two different requests |
| GHSA-7wwv-x6mc-pxqx | CVE-2026-69179 | critical | .htaccess is an uploadable file type in Media Manager (POST /admin/media_manager): a file containing <FilesMatch "\.jpg$"> SetHandler application/x-httpd-php </FilesMatch> turns any accepted .jpg upload into PHP = RCE on Apache. The extension allowlist never applies to a name with no extension |
| GHSA-rj59-9f77-mvg5 | CVE-2026-69181 | high | Destination directory is client-supplied: the same Media Manager upload accepts a path field; changing / to /../../ writes arbitrary files outside media/uploads/. The image/content validation runs on the file, the write lands wherever the request says |
| GHSA-mqg7-fw3f-mhp7 | CVE-2026-69177 | medium | Stored XSS via SVG: media manager accepts an SVG carrying <script>; served from the same origin under media/uploads/ |
Why this is worth an operator page¶
- Header-dispatched AJAX handlers are an entry-point catalog. TastyIgniter descends from the October/Winter CMS lineage where every controller method named
on*is invocable via theX-IGNITER-REQUEST-HANDLERrequest header (plus sibling headersX-IGNITER-FILEUPLOADselecting the upload validation profile andX-IGNITER-REQUEST-PARTIALSshaping the response). The RCE trigger here is not a documented endpoint: it isonTestTemplate, a test-render button handler. Hunting rule for any October/Winter/TastyIgniter-derived app (and any framework with a convention-based AJAX handler protocol, e.g. Livewireset-property/callMethodpayloads, Laravel Filamentactionkeys): grep the frontend JS and vendor code for handler-name strings, then call each one directly via header with your own parameters. UI-invisible handlers (onTest*,onPreview*,onImport*,onDryRun*) render or parse stored attacker data without the normal send/publish flow, and they are exactly where late-binding sinks hide. - A "test" button that server-side-renders stored content is a second execution trigger you must probe separately. The SSTI persists with a template save and fires on test render, not on real mail send. If you only wait for an order-confirmation email you will score the field as "stored, unverified". Validation step on every notification/email/template editor (mail templates, invoice templates, receipt themes, ticket autoresponder bodies): save an inert engine probe, then hunt for every handler/route that renders without sending (test, preview, preview-template, dry-run). This is the same compiled-vs-stored verdict table as the Sept 20 openEQUELLA FreeMarker leg and the Oct 8 Solspace Freeform leg, with the extra twist that the render trigger is a header-selected handler.
.htaccessis not an extension, so extension allowlists structurally miss it. The Media Manager filter is a filename-extension list;.htaccess(and on other stacks.user.ini,web.config,.env) has no extension to check. Pairing a permissive content dir with ApacheAllowOverrideturns "can upload benign files" into "runs PHP" viaSetHandler/AddType, without ever uploading a.php. Server-software check comes first on every upload engagement: fingerprint Apache vs nginx vs IIS (banner, error shapes,Serverheader), because this primitive is live on Apache, a silent no-op on nginx (the inverse of the Sept 19 BackWPup lesson, where.htaccessprotection failed open on nginx; same axis, attacker side). On php-fpm/nginx hosts pivot the battery to.user.ini(auto_prepend_file) if the dir is also ainclude_path/cwd target, and toweb.confighandler mappings on IIS. Twin precedents: Oct 8 Bricksforge validated-GIF-plus-attacker-urland June 11 CodeIgniterext_in(validation of one field, preservation of another).- Sweep the co-submitted destination fields, not just the file. The traversal leg is the validation-target-vs-write-target mismatch in its plainest form: content checks inspect the upload, the path field in the same request picks the landing directory, and no code re-validates it. Request-capturing proxy habit on every upload: list all non-file parameters (
path,folder,dir,name,type,context) and mutate the directory-shaped ones with/../../and encoded variants while keeping a valid image. Admin-role requirement does not price it low: an admin-panel foothold from any weaker leg (the SVG XSS, a CSRF on this form) chains with it into web-root placement, and combined with the.htaccessleg it places the handler config next to the payload in one feature. - SVG upload with live script tags is the standing same-origin sink on media features. Media managers that accept SVG for logos/favicons serve it same-origin unless a sanitizer or dedicated asset domain intervenes; run the SVG-sanitizer battery (this repo's SVG sanitizer bypass testing) and capture the serve-origin + CSP headers as the evidence, same as the Nov 18 Atomic Server inline-render battery.
Validation workflow (authorized scope only)¶
- Lab first. Disposable TastyIgniter <= 4.3.0 with its own DB; record version from the admin footer/about endpoint before and after any update.
- Handler enumeration. Capture the admin UI through Burp; extract every
X-IGNITER-REQUEST-HANDLERvalue; diff againston*method names grepped from vendor source (grep -rn "public function on" vendor/tastyigniter/). Replay each handler directly with a crafted body from a low-privilege test admin; the decision table (handler x role x verdict) is the finding surface. - Template probe. In your own lab, save a mail template containing a marker-only expression probe (e.g.
@php echo file_put_contents('/tmp/probe','x'); @endphpor a{{7*7}}/?new()per-engine probe set per the Sept 20 page), then invokeonTestTemplatevia header. Compiled-vs-stored verdict per field; RCE claim only via marker output on your instance. - Config-upload battery. Upload (a) an inert
.htaccesscontaining a comment only, (b) aFilesMatchhandler variant, (c) a.user.inimarker, (d) aweb.config. For each: does the upload accept it (validation gap), and does it take effect (server topology)? Evidence =GET /media/uploads/<name>.jpgexecuting aphpinfo()-free marker page on Apache, and a documented no-op on nginx. Delete all planted files after capture. - Traversal canary. Same valid image bytes, path field set to
/../../canary-dir/; prove write location by URL-fetching the planted marker outsidemedia/uploads/. Never overwrite app files; choose new filenames. - SVG check. Inert SVG marker upload; fetch served URL; record
Content-Type, CSP,Content-Disposition, serve-origin. No script execution needed against anything you don't own. - Report as one wave. All four legs share one root cause family: the media/template admin features trust request-supplied metadata (template body, filename-without-extension, destination path, SVG markup). Grouping raises triage priority; note the whole-wave fix is 4.3.1.
Related pages¶
- Sept 20 media-pipeline edge surfaces for the compiled-vs-stored template-field sweep and chunk/branch validation asymmetries
- Sept 19 WP alternate-surface wave for the
.htaccess-vs-nginx topology fail-open axis (defensive side of the same fact) - Sept 19 shortcode/hidden-field upload wave for validated-file-plus-attacker-destination parameter-pair mismatches (Bricksforge leg)
- June 11 CodeIgniter upload extension boundary for MIME-vs-filename validation pairs
- SVG sanitizer bypass testing for the stored-XSS leg