Skip to content

3.2.4.6

Latest

Choose a tag to compare

@nilsteampassnet nilsteampassnet released this 25 Nov 19:19
c4f89c0

What's Changed

This is a security and feature release on the 3.2.4 line. It fixes two authorization weaknesses in folder administration. The recycle bin let managers and HR managers permanently delete any item of the instance, including live items in folders they cannot open, and showed them every recycled element, other users' personal items included. Moving or copying a folder to the root did not require the root-folder right. It also adds file attachments to Secure Send, the server-side policy for the browser extension's offline vault, and a rewritten per-user audit log view. Upgrading is recommended for all installations, and strongly recommended for any installation with manager or HR manager accounts.

This release changes the database schema. UPGRADE_MIN_DATE is raised, so every installation goes through the upgrade wizard once, including installations already running 3.2.4.5.

🔒 Security fixes

  • The recycle bin only lets managers and HR managers act on what they can see (GHSA-4jq3-w38q-6wrq, reported by @Jostar2) — the permanent deletion action of Utilities → Recycle bin passed every posted item id to the hard delete, with no check that the item was in the recycle bin or that the caller could see it. The only gate was access to the Utilities page, which managers and HR managers have. Such an account could therefore permanently delete any live item by its id, with its encryption keys and its history, including items of folders it cannot open and of other users' personal folders. The restore action had the same unfiltered loop. The recycle bin also listed every recycled folder and item of the instance to these accounts. Now only items that are actually in the recycle bin can be purged or restored. Managers and HR managers only see, restore and purge the deleted folders they had access to or that belong to their own personal tree, and the deleted items of folders they can access, minus the items restricted to other users or roles. A deleted folder is purged only when the caller sees every subfolder and every item it contains; otherwise it stays in the recycle bin for an administrator. Administrators keep the whole recycle bin. Installations running 3.0.0.11 or later are affected.
  • Moving or copying a folder to the root requires the root-folder right (GHSA-c2rh-qwj7-9m7j, reported by @gosusnkr) — when a folder was moved to the root, the folder edit action skipped both parent checks, and its final gate accepted the Sub-folders managed by… setting, which only covers subfolders, or the HR manager right. Folder copy had the same exception. An account without the root right could therefore place a folder, or create a copy, at the root. Access in TeamPass is granted per folder and nothing is inherited from the parent, so this changed no one's access to the folder or its items. Both actions now apply the rule of the parent picker: the root is reserved to administrators, managers and accounts holding Can create a folder at root level. The folder edit action also refuses to move a folder under one of its own subfolders, which the API already refused. Installations running 3.0.0.0 or later are affected.

✨ New features

  • File attachments in Secure Send (PR #5473, @guerricv) — a Secure Send note can now carry one local file, with or without text, uploaded by drag and drop, and an item share can include up to ten of the item's existing attachments, none selected by default. Each file is encrypted with its own key and stored in a private subdirectory of the upload directory; its key travels inside the link's encrypted payload. Confirming the link consumes one view and lets the recipient's browser session download or retry the files for five minutes, bounded by the link's expiry. Revocation, expiry, and the end of the last download window remove the encrypted copies, and the scheduled maintenance retries a removal that failed. The administrator's Secure Send log records the number of files at creation, the original attachment ids for item shares, and a download_authorized event for the first authorized download of each file — never a file name, content, key or token. The feature is off by default: enable Allow Secure Send attachments in the Secure sharing options. It is available from the web interface only, not from the API.
  • Offline vault policy for the browser extension — the browser extension can keep a read-only, encrypted copy of a user's items on their computer, for use without a connection to TeamPass. This release adds the server side: Settings → API → Browser extension now holds Allow users to keep an offline vault, the roles allowed, the longest retention without a successful synchronization (14 days by default), the shortest automatic synchronization interval (60 minutes), and whether personal folders and TOTP secrets may be included. The extension reads these limits from the new GET /api/v1/offlineVault/policy endpoint at every synchronization, and erases its copy when the answer says it is no longer allowed. The copy itself is read through the existing item endpoints, so every item delivered is logged as shown, like any other API read. The policy is off by default and always refused to administrators, who have no access to items. See the offline vault documentation.

🛠️ Improvements

  • Rewritten per-user audit log (PR #5474, @guerricv) — the journal opened from Users → See logs now names the selected account and shows the event, its target and its channel (Web or API) in separate columns. It opens on the last 30 days, 25 rows per page. A date range, an activity group, a channel and a text search can be combined, or the whole history shown. The text search matches the titles and activities as they are displayed, including titles stored with legacy HTML entities. The Password access filter includes item exports, since an export file contains the passwords. The server now counts and pages the rows in SQL, caps the page size at 100 and keeps a stable order for events recorded in the same second. The account-scope checks for administrators and managers are unchanged.
  • Users with a quote in their name are displayed correctly in the Users action menu (PR #5474, @guerricv) — the full name stored on each action of the menu is now HTML-escaped, so a quote in a name can no longer break out of its attribute.

🐛 Bug fixes

  • The Bitwarden import keeps custom fields (PR #5475, @jayhemnani9910) — importing a Bitwarden export silently dropped every custom field, where Bitwarden keeps PINs, security answers, account numbers and API keys. Each field with a value is now appended to the item's description as name: value, like the TOTP, card and identity data already were. Linked fields, which have no value of their own, are skipped. The description is not encrypted: after importing, move secret values such as PINs into the password or into an encrypted custom field.

⬆️ Upgrade notes

  • Schema. The upgrade creates the secure_send_attachments table, adds the attachment_count and attachment_ids columns to secure_send_audit, and seeds the secure_send_allow_attachments setting and six offline_vault_* settings, all off or at their documented defaults. Every installation goes through the upgrade wizard once, or through app/scripts/upgrade-cli.php.
  • Recycle bin. Managers and HR managers now see a smaller recycle bin, limited to what they can see in the vault. A deleted folder they cannot fully see stays in the bin until an administrator purges it.
  • Folders at the root. Accounts that relied on Sub-folders managed by… or on the HR manager right to move or copy a folder to the root can no longer do it. Grant Can create a folder at root level to the accounts that need it.
  • Secure Send attachments are off until Allow Secure Send attachments is enabled. The upload directory must be writable by PHP and outside the public document root; on several PHP hosts, the encrypted storage must be shared by all of them.
  • Offline vault is off until Allow users to keep an offline vault is enabled, and also requires API access with the read right for the users concerned.
  • Translations. The new strings are provided in English and French. Other languages fall back to English until they are translated on POEditor.
  • Back up your database before upgrading, as always.

Full Changelog: 3.2.4.5...3.2.4.6

Important

  • Requires at least PHP 8.2

Languages

Please join Teampass v3 translation project on Poeditor and translate it for your language.

Installation

Follow instructions from Documentation.

Upgrade

Follow instructions from Documentation.

Ideas and comments

Are welcome ... please use Discussions.

Help others find TeamPass

If TeamPass serves your team well, a ⭐ on this repository, a like on AlternativeTo or a short review on SourceForge helps other administrators find it.

Download TeamPass