Headline
GHSA-6j89-frxc-q26m: @strapi/plugin-content-manager leaks data via relations via the Admin Panel
Summary
- If a super admin creates a collection where an item in the collection has an association to another collection, a user with the Author Role can see the list of associated items they did not create. They should only see their own items that they created, not all items ever created.
Details
At the top level every collection shows blank items for an Author if they did not create the item. This is ideal and works great. However if you associate one private collection to another private collection and an Author creates a new item. The pull down should not show the admins list of previously created items. It should be blank unitl they add their own items.
PoC
- Sign in as Admin. Navigate to content creation.
- Select a collection and verify you have items you created there. And that they have associations to other protected collections.
- Verify role permissions for your collections are set to CRUD if user created.
- Log out and sign in as a unrelated Author.
- Navigate to content management and verify you see collections built by admin but empty for you (as expected)
- Create a new item as an Author and see the card appear with attributes to fill out.
- Use the form pull down for the associations.
- Notice that protected collection items from Admin appear in drop down. These should be hidden
Impact
Security vulnerability where authors have access to protected data created by admin. This could be passwords emails or any other item created for the admin’s collection.
See images below for more context
Permissions set
Good at top level no items seen
Drop down in Author login can see Admin data
- GitHub Advisory Database
- GitHub Reviewed
- CVE-2024-29181
@strapi/plugin-content-manager leaks data via relations via the Admin Panel
Low severity GitHub Reviewed Published Jun 12, 2024 in strapi/strapi • Updated Jun 12, 2024
Package
npm @strapi/plugin-content-manager (npm)
Affected versions
< 4.19.1
Summary
- If a super admin creates a collection where an item in the collection has an association to another collection, a user with the Author Role can see the list of associated items they did not create. They should only see their own items that they created, not all items ever created.
Details
At the top level every collection shows blank items for an Author if they did not create the item. This is ideal and works great. However if you associate one private collection to another private collection and an Author creates a new item. The pull down should not show the admins list of previously created items. It should be blank unitl they add their own items.
PoC
- Sign in as Admin. Navigate to content creation.
- Select a collection and verify you have items you created there. And that they have associations to other protected collections.
- Verify role permissions for your collections are set to CRUD if user created.
- Log out and sign in as a unrelated Author.
- Navigate to content management and verify you see collections built by admin but empty for you (as expected)
- Create a new item as an Author and see the card appear with attributes to fill out.
- Use the form pull down for the associations.
- Notice that protected collection items from Admin appear in drop down. These should be hidden
Impact
Security vulnerability where authors have access to protected data created by admin. This could be passwords emails or any other item created for the admin’s collection.
See images below for more context
Permissions set
Good at top level no items seen
Drop down in Author login can see Admin data
References
- GHSA-6j89-frxc-q26m
- https://nvd.nist.gov/vuln/detail/CVE-2024-29181
- strapi/strapi@e1dfd4d
Published to the GitHub Advisory Database
Jun 12, 2024
Last updated
Jun 12, 2024