High

TeamPass folder re-parenting authorization bypass

  • Disclosed: 20.11.2026
  • Updated: 23.11.2026 00:07

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.

What to do

Upgrade nilsteampassnet/teampass to version 3.2.2.0 or later.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package nilsteampassnet/TeamPass < 3.2.2.0 3.2.2.0

References

CVSS score 8.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
Weakness (CWE)
CWE-639, CWE-862
Platform
Composer
Package
nilsteampassnet/TeamPass
Disclosed
20.11.2026
Updated
23.11.2026 00:07

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - GHSA-66q9-mxf2-xqw6 - CC BY 4.0

Vulnerability history: nilsteampassnet/TeamPass

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (43) in the archive
Total entries
43
First → latest
07.2021 11.2026
Without a fix
11
Exploited in attacks
0

Severity breakdown

  • Critical 6
  • High 16
  • Medium 21

Disclosures per year

  1. 2021: 2
  2. 2022: 18
  3. 2023: 19
  4. 2024: 3
  5. 2025: 0
  6. 2026: 1
Severity:
  1. TeamPass folder re-parenting authorization bypass this entry
    High · 8.3 CVE-2026-103035 < 3.2.2.0 3.2.2.0
  2. Critical · 5.4 CVE-2024-50703 < 3.1.3.1 3.1.3.1
  3. High · 7.5 CVE-2023-3553 < 3.0.10 3.0.10
  4. High · 7.6 CVE-2023-3552 < 3.0.10 3.0.10
  5. Critical · 9.1 CVE-2023-3551 < 3.0.10 3.0.10
  6. High · 8.1 CVE-2023-3531 < 3.0.10 3.0.10
  7. Critical · 9.0 CVE-2023-3086 < 3.0.9 3.0.9
  8. High · 8.1 CVE-2023-3084 < 3.0.9 3.0.9
  9. High · 8.7 CVE-2023-3083 < 3.0.9 3.0.9
  10. High · 7.1 CVE-2023-2859 < 3.0.9 3.0.9
  11. High · 7.1 CVE-2023-2591 < 3.0.7 3.0.7
  12. High · 7.5 CVE-2023-1545 < 3.0.0.22 3.0.0.22
  13. High · 7.1 CVE-2023-1070 < 3.0.0.23 3.0.0.23
  14. High · 8.8 CVE-2020-12479 <= 2.1.27.36 no fix
  15. High · 7.5 CVE-2020-12478 = 2.1.27.36 no fix
  16. Critical · 9.8 CVE-2015-7564 < 2.1.25 2.1.25
  17. Critical · 9.8 CVE-2017-9436 < 2.1.27.5 2.1.27.5
  18. High · 7.5 CVE-2017-15054 < 2.1.27.9 2.1.27.9
  19. High · 8.1 CVE-2017-15055 < 2.1.27.9 2.1.27.9
  20. Critical · 9.8 CVE-2019-1000001 <= 2.1.27 no fix
Show more (2) Showing 20 of 22

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.