github ErugoOSS/Erugo v0.3.1

38 minutes ago

Erugo 0.3.1

A bug fix and security release on top of 0.3.0. If you're running 0.3.0, please upgrade. Two of the fixes are for problems that let people see or reach things they shouldn't.

The parallel uploads work from #309 isn't in this release. It changes how every upload works, so it's coming in 0.4.0.

Thanks

  • @vcazsdk (#252) found that password-protected shares showed their contents without the password, and that reverse-share invite links stopped working too early.
  • @benediktpenner (#188) fixed single-file downloads from password-protected shares.
  • @SIMVIA-lucas-sovre (#256, #258) tracked down the hang where the whole app stopped responding, down to the exact place Caddy and PHP were waiting on each other.

Security fixes

  • Password-protected shares no longer show what's in them before you enter the password. Anyone with the link could see the share's name, file names, message and the sender's name. The password was only checked when downloading. Now the share page asks for the password first and shows nothing else until it's right.
  • SMTP passwords and SSO client secrets are no longer sent to the admin settings page. Any admin could read them by switching the password box to plain text in the browser's inspector. The page now shows whether a secret is set, but never its value.
  • tusd is updated from 2.6.0 to 2.10.4. The old version was built with an outdated Go and old copies of its libraries. It accounted for about 200 of the issues an image scanner reports in 0.3.0, including 21 of the 23 marked critical. sudo is also gone from the image, since nothing used it.
  • A few half-sent requests can no longer take the whole app down. A client that started sending a request and then stopped held one of PHP's 5 workers until the container restarted. Five of those, whether from flaky connections or on purpose, and nothing answered. Caddy now reads the request body itself before passing it to PHP. It does this for bodies up to 16 MB, which covers everything except a very large background video upload.

Fixed

  • Clicking a single file in a password-protected share downloads it. Before, it always failed with "Password required", even after the password was entered.
  • Reverse-share invite links work for the full 7 days, and can be opened again. The link in the email stopped working after an hour. It was also used up the moment it was opened, so if the upload failed or the tab was closed, the person had to ask for a new invite. Now it keeps working until something is actually uploaded.
  • The "untrusted proxy" warning no longer shows on installs with no proxy. Since 0.3.0, plain Docker installs saw a warning about forwarded headers from 172.17.0.1. It came from Caddy inside the container, not from a real proxy. If you already see it, it can stay for up to 24 hours after upgrading, until the cached check expires.
  • Emails no longer go out with "null" as the sender name. Saving settings stored empty fields as the text "null". On a fresh install, the first save did this to the SMTP host, username and sender details. Existing "null" values are cleared when you upgrade.
  • Upgrading from 0.1.x no longer overwrites a theme you saved. On installs that started on 0.1.x, the first theme saved in the editor had the same ID that 0.2.0 later gave the bundled Erugo 2026 theme. That saved theme had its colours replaced on every start, and Erugo 2026 never appeared. Saved themes are now left alone, and Erugo 2026 is added on the next start. If your theme was already overwritten, its original colours can't be recovered, so you'll need to set them again.

Things that behave differently

  • SMTP password and SSO client secret boxes are empty in settings. Leave them empty to keep the saved value, or type a new one to replace it. The SMTP password has a "Remove saved password" link if you want to clear it.
  • Scripts that read protected shares from the API. GET /api/shares/{id} now returns "locked": true and no details for a password-protected share, unless the password is sent in an X-Share-Password header. A wrong password gets a 401. Downloads work the same as before.

Upgrading

Back up your storage volume, then pull the new image and restart:

docker compose pull
docker compose up -d

The image is ghcr.io/erugooss/erugo:0.3.1, also tagged 0.3, 0 and latest, for amd64 and arm64. It's on Docker Hub as wardy784/erugo with the same tags.

Don't miss a new Erugo release

NewReleases is sending notifications on new releases.