
Dry-run-first Python PoC for Craft CMS CVE-2026-55794 signed-referrer SSTI, authenticating and confirming signed redirects before optional command execution.
A control-panel user who can edit an entry can place unsandboxed Twig in the HTTP
Referer. The entry edit response signs that referral URL as a redirect value; saving
the entry renders the signed value through renderObjectTemplate() and executes Twig.
The PoC is dry-run-first: it authenticates, requests an existing edit page with the
crafted referrer, and confirms that a signed redirect was returned. --execute is
required to resubmit the unchanged form and trigger the blind command.
python3 -m pip install -r requirements.txt
python3 poc.py https://target.example editor admin/entries/123 id
python3 poc.py https://target.example editor admin/entries/123 id --execute
This path was not live-tested in an environment with the required editable-entry fixture and entry-edit permission.
For authorized security testing only. Use a snapshot and verify that the edit form
preserves all deployment-specific fields before enabling --execute.