PatchClock

PHP security digest · 20 Nov 2026

TeamPass folder re-parenting authorization bypass

High CVE-2026-103035

Package
nilsteampassnet/TeamPass
Fixed in
3.2.2.0
Published
Fri 20 Nov 2026, 14:45 LisbonUpdated Wed 25 Nov 2026, 00:45 Lisbon
Installs on Packagist
30

In plain words

An authenticated TeamPass user who is not read-only can rename or move another team's folders into their own personal space without an administrative role. This exposes credential labels, logins, URLs, email addresses and descriptions, but passwords remain protected by share keys. The moved folders also disappear from the organisation's view, including for administrators, denying their owners access.

Affected versions

PackageAffectedFixed in
nilsteampassnet/TeamPass< 3.2.2.03.2.2.0

How serious is it?

High is a CVSS score of 7.0 to 8.9: serious impact with few preconditions. Plan the update within days, ahead of feature work, and check the logs for signs it was tried.

nilsteampassnet/TeamPass has 30 installs on Packagist, so the advisory reaches a modest number of projects, which does not make yours any safer.

Am I affected?

Check composer.lock for nilsteampassnet/TeamPass below 3.2.2.0, the fixed version. The described attack requires an authenticated user who is not read-only and affects folder management through update_folder in app/sources/folders.queries.php. No additional configuration or database condition is named.

Did you install nilsteampassnet/TeamPass, or did a dependency?

Composer says why a package is in your project:

composer why nilsteampassnet/TeamPass

If the output names your own project, you required nilsteampassnet/TeamPass directly and the update is yours to make. If it names another package, nilsteampassnet/TeamPass came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not nilsteampassnet/TeamPass 3.2.2.0

Every line it prints is a constraint that blocks 3.2.2.0. Update the package it names, or raise your own constraint, and run it again until it prints nothing.

What to do

Check which version you have, then update to a fixed release for your branch (3.2.2.0):

composer show nilsteampassnet/TeamPass | grep versions
composer update nilsteampassnet/TeamPass

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

If you cannot update yet

The advisory suggests adding authorisation checks to update_folder: require both the target folder and submitted parent to belong to the caller's accessible folders, and reject changes to personal status for folders the caller does not own. It also recommends adding the standard session and authorisation gate to folders.queries.php as a whole.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if nilsteampassnet/TeamPass ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated nilsteampassnet/TeamPass, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

nilsteampassnet/TeamPass's record

This is the only advisory for nilsteampassnet/TeamPass since the digest started following Composer packages in September 2026. One advisory says little about a package's quality; what matters is how fast the fix came, and here it is out.

The advisory's description

Summary

Missing authorization in the update_folder action: any authenticated non-read-only user can rename, re-parent and convert to personal any folder in the instance, moving another team's credential subtree into their own personal space and removing it from the organization. Confirmed at HEAD 2f271cdd (3.2.1.1), and present at 3.1.3.1 and 3.1.7.6.

The defect

The folder-management endpoint dispatches an update_folder action that renames and re-parents a folder. Unlike its sibling actions in the same file, it never checks the edited folder id or the submitted parent id against the caller's accessible-folder set, and the file itself performs no session/authorization gate at all. By pointing the new parent at their own personal folder, an authenticated low-privilege user takes ownership of any folder in the instance.

app/sources/folders.queries.php:

  • The file never calls the session/authorization helpers: a grep for checkSession and userAccessPage across the whole file returns zero hits.
  • case 'update_folder' (lines 294-662) contains no reference to the caller's user-accessible_folders set. The only access-related logic is the personal-folder computation at lines 428-468 and the guard at line 503, which short-circuits on (int) $isPersonal === 1.
  • The sibling actions do carry the check: case 'add_folder' validates against user-accessible_folders at line 743, case 'delete_folders' at line 904, and case 'copy_folder' applies the equivalent parent check.

So update_folder is the one folder-mutating action in the file without an authorization predicate on either the target folder id or the new parent id.

Attacker model and trace

An authenticated TeamPass user who is not read-only (no administrative role required). The attacker submits update_folder with the victim folder's id and a parentId pointing at their own personal folder. Because the new parent is personal, the personal-folder computation sets $isPersonal = 1, which satisfies the line 503 guard, and the update writes the new parent and personal_folder = 1 for the target folder.

Consequences: the stolen subtree is added to the attacker's accessible set on their next login, so the item list renders for them, and do_items_list_in_folder exposes the plaintext label, login, url, email and description of every credential in that subtree (item passwords stay sharekey-protected, hence C:L). Because the folder is now flagged personal, it disappears from the organization view for everyone else including administrators (the admin listing selects only personal_folder = 0), so this is also a denial of access to the real owners.

Verification

Source-verified at HEAD: no session/authorization helper anywhere in the file; the update_folder case contains no accessible-folders predicate while add_folder, delete_folders and copy_folder do; the personal-folder short-circuit at line 503. A live TeamPass instance was not stood up.

Secondary (needs a live confirmation before filing): there appears to be an unauthenticated variant. filter_input(INPUT_POST, 'key') returns null when omitted and $session->get('key') is null on a cookie-less session, so the null !== null comparison fails open; encryptClientServer is only set in public/index.php, so prepareExchangedData takes the plaintext-JSON branch. If that holds on a live instance this rises toward 9.4. The sibling actions fail closed on the anonymous path; only update_folder fails open. Please verify live, or report the authenticated variant alone (which stands on the source reading).

Suggested fix

In the update_folder case, verify that both the target folder id and the submitted parentId are members of the caller's user-accessible_folders set (mirroring add_folder and delete_folders) before applying the update, and reject a re-parent that would flip personal_folder for a folder the caller does not own. Adding the standard session/authorization gate to folders.queries.php as a whole is the more durable fix. Note items.queries.php has a second, identically named update_folder case that does perform the accessible-folders check, but that one can only edit title/complexity; the unguarded copy in folders.queries.php is the one the UI calls for re-parenting.

Tooling

AI assistance was used while investigating, but it was confirmed at HEAD that folders.queries.php contains no checkSession/userAccessPage call, that the update_folder case (lines 294-662) contains no accessible-folders predicate while add_folder (line 743) and delete_folders (line 904) do, and that the personal-folder short-circuit sits at line 503.

Weakness: CWE-639 Authorization Bypass Through User-Controlled Key; CWE-862 Missing Authorization. Reported by arpitjain099.

CWE-639. Insecure direct object reference: changing an id in the request reaches another user's record.

CWE-862. Missing authorization: an action checks that you are logged in but not that you are allowed to do it.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.