CVE-2023-37263: Strapi's field level permissions not being respected in relationship title
Summary Field level permissions not being respected in relationship title. If I have a relationship title and the relationship shows a field I don't have permission to see I will still be visible.
Details No RBAC checks on on the relationship the relation endpoint returns
PoC Setup Create a fresh strapi instance Create a new content type in the newly created content type add a relation to the users-permissions user. Save. Create a users-permissions user Use your created content type and create an entry in it related to the users-permisisons user
Go to settings -> Admin panel -> Roles -> Author Give the author role full permissions on the content type your created. Make sure they don't have any permission to see User Save
Create a new admin account with only the author role CVE login on the newly created author acount. go to the content manager to the colection type you created with the relationship to userspermissionsuser You now see a field you don't have permissions to view.
Impact RBAC field level checks leaks data selected by the admin user as relationship title What could be sensitive fields that they should not be allowed to see. by the person having this specific role.
Other sources
Strapi is the an open-source headless content management system. Prior to version 4.12.1, field level permissions are not respected in the relationship title. If an actor has relationship title and the relationship shows a field they don't have permission to see, the field will still be visible. Version 4.12.1 has a fix for this issue.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2023-37263?
CVE-2023-37263 is a vulnerability in the Strapi open-source headless content management system that allows unauthorized users to see fields they do not have permission to see in a relationship title.
What is the severity of CVE-2023-37263?
The severity of CVE-2023-37263 is medium with a CVSS score of 6.8.
How does CVE-2023-37263 affect Strapi?
CVE-2023-37263 affects Strapi versions prior to 4.12.1, specifically in the handling of field level permissions in relationship titles.
Is there a fix for CVE-2023-37263?
Yes, the vulnerability has been fixed in Strapi version 4.12.1.
Where can I find more information about CVE-2023-37263?
More information about CVE-2023-37263 can be found at the following references: [Link to GitHub Advisory](https://github.com/strapi/strapi/security/advisories/GHSA-m284-85mf-cgrc), [Link to Strapi Release](https://github.com/strapi/strapi/releases/tag/v4.12.1), [Link to GitHub Advisory](https://github.com/advisories/GHSA-m284-85mf-cgrc).