github ErugoOSS/Erugo v0.4.0
Erugo 0.4.0

40 minutes ago

Erugo 0.4.0

Faster uploads, a new settings page, and a large batch of security fixes. Everyone should upgrade.

Security

This release fixes these problems. Some of the advisories below were fixed in earlier releases and are only being published now, with the version that fixed them.

Fixed in 0.4.0:

  • SSO, tokens, uploads and admin secrets (GHSA-q253-4h8p-j829). With trust_email on, an SSO sign-in could take over an existing account. Password changes now sign out other sessions. Uploads can no longer get past the size limit or fill the disk. Guests and restricted accounts can no longer send reverse-share invites, and admins can no longer send the stored SMTP password or SSO secret to another server.
  • Email templates could run code (GHSA-q2h5-3mgc-5cvj). An admin could read the app's secrets or run commands through a custom email template. Edited templates now render in a sandbox.
  • Unconfirmed email changes (GHSA-mm63-42rw-4x83). A user who changed their email to someone else's could take that person's reverse-share invites or their first SSO sign-in.
  • Email changes without the password (GHSA-65wv-3r93-4v36). Someone with a stolen session could change the account's email, reset the password at the new address and keep the account. Changing your email now needs your current password.
  • Share password guessing (GHSA-6qfx-5v2h-j35j). After 10 wrong passwords for one share, or 30 across shares, that IP has to wait 10 minutes.
  • Share link guessing (GHSA-jh93-hhr3-g6wx). Default share links were two word pairs, few enough to find live shares by guessing. New links end in five random characters, such as dry-haze-soft-shadow-k3x9p, and share lookups are rate limited. Existing links keep working.
  • SVG favicons (GHSA-v5g6-6267-8w74). An uploaded SVG favicon could run script in the browser. SVGs are now served with a strict Content Security Policy.
  • Registration and pending invites (GHSA-3p4c-g7p4-prfr). Registering with someone else's email moved the reverse-share invites they'd been sent to the new account, which broke their invite link. Invites now move only after the email is verified.
  • Setup race (GHSA-9j35-4h6q-qc8g). Two setup requests at the same moment could both create an admin.

Fixed in earlier releases:

  • 0.3.2: password-protected shares showed their file list without the password (GHSA-gx8v-g36q-3pvc).
  • 0.3.0: tusd upload hooks trusted any request from a private IP (GHSA-fmhm-j889-pcxf), and login and password reset had no rate limit (GHSA-2gqx-fhp4-7vph).
  • 0.2.16: any signed-in user could read the SMTP password (GHSA-mc89-m476-2cgx). If you ran 0.2.15 or older with other users on it, change your SMTP password. Self-registered accounts could log in before verifying their email (GHSA-64hq-pv86-x9vj). The image shipped a PHP version with known security bugs (GHSA-434j-p38g-m742).

New

  • Faster uploads. Uploads can now use several connections at once: several files side by side, and files of 256 MB or more in parts. A new admin setting, Parallel Upload Connections, sets how many (default 4, from 1 to 8). If Erugo is behind a proxy with a short timeout and big uploads fail right at the end, set it to 1. Thanks to @Giuseppe-sciarra for tracking down why uploads were slow (#215).
  • Settings has its own page. Settings moves out of the panel over the uploader to /settings, with a side menu, tabs, and a rebuilt System Stats page. Old #settings/... links still work.
  • Erugo 2027 look. A new default theme, logo and background. New installs get them. When you upgrade, a server still on the Erugo 2026 theme switches to Erugo 2027, and the stock logo and background are replaced. If you picked a different theme, edited Erugo 2026, or uploaded your own logo or background, yours stays. Erugo 2026 is still in the theme list.
  • Account status for admins. The user list has a Status column, and each user has a Manage button with all the actions in one place. Admins can now activate an account that was never verified, or send a new verification code. Since 0.2.16, self-registered accounts that never verified their email can't log in, and on some upgraded servers that locked people out. Those people now get sent to the verification screen with a fresh code, and an admin can activate them directly.

Fixes

  • API responses no longer send the invalid header Access-Control-Allow-Origin: /. Thanks @RZA-SF (#320).
  • Resuming an interrupted upload works with the new parallel uploads.
  • Uploaded SVG logos now show. They were accepted but saved as a PNG, so the browser never drew them. A logo uploaded that way before is put right when you upgrade. The app API gets a PNG version at /branding/logo.png.
  • On windows between 500 and 900 pixels wide, the logo now sits above the uploader instead of in the middle of the page.

Before you upgrade

  • Custom email templates. Edited templates now render in a sandbox that allows a fixed list of tags, filters and functions. A custom template that uses anything else will fail to render, and that email won't be sent. The default templates are fine. If you've edited templates, send yourself a test email after upgrading.
  • Changing mail or SSO servers. Changing the SMTP host, port or encryption now needs the SMTP password typed in again. Changing an SSO provider's base URL or tenant needs its client secret again.
  • Microsoft SSO with trust_email. Microsoft emails are only trusted for matching accounts when the provider is set to a single tenant, not common.
  • Email changes. Changing your own email needs your current password, on the web and in the app API (CURRENT_PASSWORD_REQUIRED). Accounts made through SSO have no password they know, so to change their email they need to set one with Forgot password first. After a user changes their own email, that address isn't trusted for SSO matching or reverse-share invites until they use a password reset link sent to it.
  • Signing out. Changing or resetting a password signs out the account's other sessions.
  • iOS app. Changing the password from the app returns new tokens, and changing the email needs current_password. Older app versions sign out after changing the password and can't change the email.
  • Share links. New share links are a little longer. Links already sent keep working.
  • Uploads folder. Erugo now deletes anything in storage/app/uploads older than 7 days. Files move out of that folder when a share is created, so what's left there was abandoned.

Thanks

For reporting security problems: @zyeb, @xxiten, @FathiBenNasr, @kats1123, @carfeii, @5ud0er, @zaara2004, @Rohanlew007, @mega-wave-inc, @ZhangFsn, @Doniyor2510, @jk98-official, @pvaly, @jjrothe1-wq, @chow8386, @wsparks-vc, @kishi78, @hackchang, @tsurutanmen, @postdever, @benchmeister and @0z3xx.

Don't miss a new Erugo release

NewReleases is sending notifications on new releases.