GHSA-m284-85mf-cgrc

Suggest an improvement
Source
https://github.com/advisories/GHSA-m284-85mf-cgrc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-m284-85mf-cgrc/GHSA-m284-85mf-cgrc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m284-85mf-cgrc
Aliases
Related
Published
2023-09-13T16:31:43Z
Modified
2023-11-08T04:13:00.429745Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Strapi's field level permissions not being respected in relationship title
Details

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.

Database specific
{
    "nvd_published_at": "2023-09-15T19:15:08Z",
    "cwe_ids": [
        "CWE-200",
        "CWE-400"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-09-13T16:31:43Z"
}
References

Affected packages

npm / @strapi/plugin-content-manager

Package

Name
@strapi/plugin-content-manager
View open source insights on deps.dev
Purl
pkg:npm/%40strapi/plugin-content-manager

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12.1