@strapi/plugin-content-manager
Affected
- introduced
0, fixed4.11.7(semver)
Fixed versions
4.11.7
Fix
- Fixed version
4.11.7npm install @strapi/[email protected]
Advisory
Also known as: CVE-2023-36472
Strapi may leak sensitive user information, user reset password, tokens via content-manager views
Summary
I can get access to user reset password tokens if I have the configure view permissions
b37a6fd9eae06027e7d91266f1908a3d
6c1da5b3bfbb3bca97c8d064be0ecb05
Details
/content-manager/relations route does not remove private fields or ensure that they can't be selected
PoC
Install fresh strapi instance
start up strapi and create an account
create a new content-type
give the content-type a relation with admin users and save
go to Admin panel roles Author and then plugins.
Enable for content-manager collection types the configure view
In the collection time now only give them access to the collection you created for this.
Create a new admin user account with the Author role
Log out and request a password reset for the main admin user.
Login on the newly created account
go to the collection type you created for this test and click the create new entry button,
click in the create new entry view on configure view.
select the admin user relation we created click on resetPasswordToken
Now go back to the create an entry view and when selection the relation we created we now see the reset tokken
Impact
Impact is that the none admin user now has the reset token of the admin users account and can resets its password using that to escalate his privilege's
Still you need the configure view permission to be able to escalate your privilege's
Medium Basis: The source's own band: MODERATE
0, fixed 4.11.7 (semver)4.11.7
4.11.7npm install @strapi/[email protected]0, fixed 4.11.7 (semver)4.11.7
4.11.7npm install @strapi/[email protected]0, fixed 4.11.7 (semver)4.11.7
4.11.7npm install @strapi/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0