Docs › Releases › 1.17 › Release notes
Recurnix 1.17 release notes
Released 2026-07-31. Recurnix 2.11 is newer.
You upload a logo. Recurnix puts it on the internet, at your own address.
That is the whole feature, and it is a perfectly reasonable one. The problem is what counts as a logo.
An SVG is not a picture. It is a document, and it can contain <script>, an onload= handler, a javascript: link, or a <foreignObject> holding arbitrary HTML. Drawn through an <img> tag none of that runs — which is precisely why a weaponised logo looks completely ordinary on every page of the admin panel. But the file also has a URL of its own, and opening that URL runs it, on your billing system's domain, with your staff's session sitting right there.
an SVG containing <script> and onload=, uploaded as the logo
accepted YES
stored at https://…/uploads/branding/logo-20260731134002.svg
served as 200 image/svg+xml
Content-Security-Policy (none)
The second thing in the same twelve lines
While measuring the first, the row underneath it was wrong too:
a PNG, offered by the browser as "logo.sh"
mimes: png,jpg,jpeg,webp,gif,svg passes
written to disk as logo-20260731134002.sh
what the bytes actually are .png
mimes: sniffs the bytes. It says nothing whatsoever about the filename. The extension on disk came from getClientOriginalExtension() — the name the browser sent — so the person uploading chose what the file in your web root would be called. logo.php was already refused, but by Laravel's own upload block, not by anything Recurnix decided.
We went looking for a way to turn that into code execution and did not find one: Laravel refuses the entire php/phtml/phar family by client extension. The release notes say so rather than implying otherwise.
The third thing, found by looking
public/uploads/ had no .htaccess. With none in place, a PHP file sitting in public/uploads/branding/ executes — checked, 200, output from the interpreter. Nothing in the branding upload could put one there. Anything else that ever wrote to that directory could have.
And it could not have been fixed by simply adding the file, because /public/uploads/ was ignored wholesale in .gitignore. A guard could exist on one machine and be missing from every install, silently. Git will not let a ! rule re-include a file whose directory is excluded, so the pattern itself had to change.
Refusing, not cleaning
The obvious fix is a sanitiser that strips the dangerous parts. It is the wrong instinct, and worth saying why.
Doing it correctly means beating namespace aliases, entity expansion, CDATA sections, and every encoding trick anybody invents afterwards. A sanitiser that is 95% right is a vulnerability with a reassuring name on it. Refusing is a decision that cannot be half-made — and the person on the other side is an administrator who can export a PNG.
So App\Support\SvgSafety takes a string and returns a verdict. It names the construct it found, because an administrator whose design tool helpfully embedded a script needs to know what to remove:
That SVG contains a
<script>element, so it will not be accepted — a file served from your own address can run it. Export the logo as a PNG, or remove that part and try again.
There is one deliberate imprecision, and it is tested so it stays deliberate. The handler pattern matches on<word>= anywhere in the file, including inside a text label — so a logo containing the words "use only=brand" is refused. The tighter version, matching only inside a tag, is bypassable: a > inside a quoted attribute value is legal XML and does not close the tag, so the check stops early and the browser runs the handler anyway. The loose pattern stays.
And a second line, in case
The upload check is the fix. The .htaccess is what stands behind it if a file ever arrives some other way — and it now ships, tracked, rather than existing by luck on whichever machine somebody remembered.
before after
GET the uploaded SVG 200 200 (an <img> still renders)
Content-Security-Policy (none) default-src 'none'; … sandbox
Content-Disposition (none) inline
GET a .php in uploads 200 EXECUTED 404, not executed
How this was checked
Both halves, against the code actually on disk, before and after — and every row printed rather than the interesting ones. The v1.16 wildcard bug survived one round of testing precisely because a row nobody doubted was never printed.
before after
a clean SVG logo accepted accepted
an SVG carrying script ACCEPTED, live URL refused, nothing written
a PNG called "logo.sh" stored as .sh stored as .png
a PNG called "logo.php" refused (by Laravel) refused
public/uploads/.htaccess absent, and ignored present, and shipped
The clean logo is first in that table on purpose. The check runs against Livewire's real TemporaryUploadedFile, not a stand-in, because the whole fix leans on extension() returning what the bytes are: it returns svg, mimes: passes, and SvgSafety says safe. A guard that quietly broke a working feature would be worse than the hole it closes.
156 committed tests, 530 assertions. The rule takes a string and returns a verdict — no files, no upload, no framework — so it is tested on its own, one case per construct, plus the two halves of the false-positive decision.
Only staff who can reach Settings could do any of this. It is not a client-facing hole and not an account takeover. It is a way for one staff account to run script in another's browser, on the real domain, and that is enough.