Description
Papermerge Core through 3.5.3 contains a missing authorization vulnerability that allows authenticated users to list other groups' tags and document types by supplying a group_id parameter. Attackers who know a group's UUID can query GET /tags/all or GET /document-types/all, which skip the user_belongs_to check, to disclose metadata of groups they do not belong to.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| papermerge | papermerge-core | ≤ 3.5.3 | — |
References
- https://github.com/papermerge/papermerge-core/issues/1291 issue-tracking
- https://github.com/papermerge/papermerge-core/blob/3.5.3/papermerge/core/features/tags/router.py#L39-L64 technical-description
- https://github.com/papermerge/papermerge-core/blob/3.5.3/papermerge/core/features/document_types/router.py#L37-L62 technical-description
- https://github.com/papermerge/papermerge-core/commit/0fd469102b05b5ebeb5ee39b3f73ff76991ab269 patch
- VulnCheck Advisory: Papermerge Core through 3.5.3 Missing Authorization via /tags/all and /document-types/all third-party-advisory