Security
A complete security review of the core, modules, widgets and themes. No critical flaw; everything it found is fixed in this release.
- Signed updates and marketplace. The core update manifests and the marketplace catalog are now signed (Ed25519); a site refuses a file whose signature is missing or does not match. Until now only each archive's hash was checked, and it came from the same server as the archive.
- The content security policy stops an injected script. The nonce is no longer added to every
<script>on the page: only scripts written by the site carry it, and reloaded windows and lists run only those. The policy is now also sent on pages that have no script. - Uploaded files. A
.jsor.cssfile dropped in the uploads is never interpreted by the server; an image is saved under the extension of its real type; files a browser would run (.js,.css,.xml…) are refused; renaming in the file manager can no longer change to a refused extension; file manager files are no longer served directly, but by the site, according to the right to read them. - Installation. The installation wizard belongs to the browser that started it: another visitor can no longer finish it in its place.
- Login and sessions. A two-factor code works only once, within a tighter window; the database no longer keeps the session identifier itself, only its hash, and it changes on logout; attempt limits count correctly even under simultaneous attempts; behind a declared proxy, the visitor's address can no longer be forged.
- Administration. Installing an addon from an archive asks for the webmaster password; links in e-mails always start from the site address set at installation.
- Stripe payments. A payment is credited only once the money is received: a SEPA debit or a bank transfer is credited on arrival, no longer as soon as checkout ends.
- Forum and private messages. A message removed by moderators can no longer be posted again by its author, nor a reported message edited before review; a topic with replies from other members can now only be deleted by moderators; mentions are capped and notify only those who can read the topic; posting is rate-limited; a third person can no longer be invited into a one-to-one conversation.
- Polls. Voting is restricted to logged-in members.
- Widgets. The name announced by a game server or TeamSpeak is escaped; a game server that is down no longer slows pages; TeamSpeak, Twitch and YouTube secrets are stored encrypted and never shown again; game server and TeamSpeak widgets refuse a private address.
- Also: texts escaped on display (gallery, comments, titles, usernames); an approved classified ad that is edited goes back to moderation; a scheduled page stays hidden until its date; click counters can no longer be inflated; the members CSV export no longer lets a formula through; the guestbook no longer keeps signers' IP addresses; search is rate-limited; webhooks only target ports 80 and 443.
Changed
- To do after updating:
- every member logs in once more: sessions opened before the update are no longer recognised;
- if you accept Stripe payments, add the
checkout.session.async_payment_succeededevent to the webhook declared at Stripe (the payments administration reminds you).
- The command-line installer requires
--site-url. - For theme and addon authors: a
<script>written in a view carries the nonce,<script<?php echo nf_nonce_attr() ?>>; without it, the browser refuses it. Scripts served by the site (src) do not need it. - Dependencies updated (league/commonmark 2.10.7 and the libraries it uses);
docker-compose.yml, meant for development, now only listens on the machine itself.
Documentation
- The documentation home page no longer repeats the “Read in another language” line five times; the documentation check now rejects a paragraph that copies the one before it.