Open post
Boosted by @fedicat@pc.cafe
<p>Our latest patch version contains several <strong>critical security fixes</strong>, including one for an authentication bypass that let unauthenticated attackers use the API as another user. It also fixes several other issues around federation, private blogs, and access control. We recommend all admins update to this version as soon as possible. [...]</p>
Version 0.17.3
Our latest patch version contains several critical security fixes, including one for an authentication bypass that let unauthenticated attackers use the API as another user. It also fixes several other issues around federation, private blogs, and access control. We recommend all admins update to this version as soon as possible.
This release also updates our Web Monetization support to the latest version of the standard, and includes a handful of bug fixes and improvements for users and admins.
Security
Critical: Fix authentication bypass via API access tokens (reported and fixed by @diaoqi129, GHSA-7jv7-gf23-wcqq)
Fix private and password-protected blog content exposed via the ActivityPub outbox (by @thebaer, reported by @awanawana, GHSA-cx5r-gg25-76ph)
Fix server-side request forgery (SSRF) via WebFinger lookups (by @thebaer, reported by @tikket1, GHSA-wvrr-gx9p-xvxm)
Fix unauthenticated SSRF via ActivityPub inbox actor / object resolution (by @thebaer, reported by @iaohkut-from-NightWolf-Team, GHSA-7635-vx4w-qww7)
Fix IPv6 transition address bypass of SSRF protections in federation (by @thebaer, reported by @tonghuaroot, GHSA-22qx-x758-m72p)
Add CSRF protection to account settings endpoints (/me and /api/me) (by @thebaer, reported by @hacktivat0r and coordinated by @u9000-Nine, GHSA-mp2f-3fq8-r9vj)
Enforce the maximum blogs per user limit when creating blogs via the API (by @thebaer, reported by @tonghuaroot, GHSA-g4m9-5p4q-ch24)
Prevent users from changing settings on another user's blog via the API (by @thebaer, reported by @N0el4kLs, GHSA-7mmq-gh5f-97p3)
Prevent users from changing metadata on blogs they don't own (by @thebaer, GHSA-wqc7-9ph9-m5fm)
Fix stored XSS via unsanitized post slugs in RSS, email, and ActivityPub output (by @thebaer, reported by @geo-chen, GHSA-cwxm-8ch5-j2vh)
Prevent users from pinning or unpinning other users' posts (by @thebaer, reported by @5ud0er, GHSA-hwfg-mg9c-cvgf)
Enforce signup checks consistently across all registration paths, extending the invite code validation from v0.17.2 to API and OAuth signups, by @thebaer in https://github.com/writefreely/writefreely/pull/1748
User-Facing Changes
Update Web Monetization support by @thebaer in https://github.com/writefreely/writefreely/pull/1784
Include image alt text in fediverse attachment data by @thebaer in https://github.com/writefreely/writefreely/pull/1729
Fix password-protected blogs not unlocking after cookie expires by @thebaer in https://github.com/writefreely/writefreely/pull/1727
Normalize usernames on signups via OAuth by @thebaer in https://github.com/writefreely/writefreely/pull/1730
Fix bad navigation on collection customize page by @snullp in https://github.com/writefreely/writefreely/pull/1738
Admin-Facing Changes
Output more helpful error messages at startup by @thebaer in https://github.com/writefreely/writefreely/pull/1731
Support serving robots.txt on single-user instances by @thebaer in https://github.com/writefreely/writefreely/pull/1736
Developer-Facing Changes
Hide first property in followers/following collections when 0 items by @thebaer in https://github.com/writefreely/writefreely/pull/1733
Update Docker and release builds to Go 1.26 by @thebaer in https://github.com/writefreely/writefreely/commit/95e1918e10414e51a38afbd9bf9a1948d39f686c
Dependencies and minor fixes
Bump alpine from 3.18.4 to 3.24.3 in the Docker image by @dependabot[bot] in https://github.com/writefreely/writefreely/pull/1786
Remove deprecated -d flag from go get in Makefile by @thebaer in https://github.com/writefreely/writefreely/commit/50dedcd05a31a5679cd34b8aea3bbc82501595b1
Prefer local lessc install over global when building stylesheets by @thebaer in https://github.com/writefreely/writefreely/commit/37d5e01013f9ee00c078a7eed7d3c7ce78809f9a
Fix Dependabot Docker update directory by @thebaer in https://github.com/writefreely/writefreely/commit/5906aa9f93f4a7b20f15ffc5b0ef7cdfc0ff64a5
Bump golang.org/x/crypto from 0.54.0 to 0.58.0 by @dependabot[bot] in https://github.com/writefreely/writefreely/pull/1780
Bump github.com/writeas/web-core from 1.7.0 to 1.8.0 by @dependabot[bot] in https://github.com/writefreely/writefreely/pull/1714
Bump docker/login-action from 4.3.0 to 4.6.0 by @dependabot[bot] in https://github.com/writefreely/writefreely/pull/1712
Upgrading from v0.17.x or earlier
Download the latest release for your operating system and architecture
Stop running your writefreely server
Replace all files in your installation (except for the keys directory) with the ones in the archive
(Only when upgrading from < v0.17.0) Update your database by running:
writefreely db migrate
Start your writefreely server again
(Recommended) Revoke existing API access tokens, as described below
If you're upgrading from a much earlier version, follow the instructions in each previous release.
Recommended: revoke existing API access tokens
Upgrading closes the authentication bypass (GHSA-7jv7-gf23-wcqq), but doesn't invalidate API access tokens that already exist. As an extra precaution, in case any were exposed before you upgraded, we recommend revoking all existing tokens once your upgraded instance is running.
Doing this will sign all users out of apps and tools that use WriteFreely's API, such as mobile apps, command-line clients, and other integrations. They'll need to log in to those again. People signed in to WriteFreely on the web stay signed in.
There's no writefreely command for this, so you'll need to clear the accesstokens table directly. Use the database details from your config.ini:
SQLite
sqlite3 /path/to/writefreely.db "DELETE FROM accesstokens;"
MySQL / MariaDB
mysql -u -p -e "DELETE FROM accesstokens;"
Optionally, to invalidate web sessions, you can also regenerate your session keys using the steps below. This will require all users to log in again, and for readers to re-enter passwords for any password-protected blogs.
Stop WriteFreely
Back up your keys folder temporarily
Delete keys/cookies_auth.aes256 and keys/cookies_enc.aes256 (do not delete keys/email.aes256)
Run writefreely keys generate as the same user as your server
Start WriteFreely again
Full Changelog: https://github.com/writefreely/writefreely/compare/v0.17.2...v0.17.3
#WriteFreely #release
0
0
1
0












