ghsa-gggm-66rh-pp98
Vulnerability from github
Summary
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Access to information you should not have access to when the permissions rely on $CURRENT_USER
for filtering.
Details
The permission filters (i.e. user_created IS $CURRENT_USER
) are not properly checked when using GraphQL subscription resulting in unauthorized users getting event on their subscription which they should not be receiving according to the permissions.
This can be any collection but out-of-the box the directus_users
collection is configured with such a permissions filter allowing you to get updates for other users when changes happen.
An example:
graphql
subscription {
directus_users_mutated {
event
data {
id
last_access
last_page
}
}
}
Patches
https://github.com/directus/directus/pull/19155
Workarounds
Disable GraphQL Subscriptions
References
{ "affected": [ { "package": { "ecosystem": "npm", "name": "directus" }, "ranges": [ { "events": [ { "introduced": "10.3" }, { "fixed": "10.5.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2023-38503" ], "database_specific": { "cwe_ids": [ "CWE-200", "CWE-863" ], "github_reviewed": true, "github_reviewed_at": "2023-07-25T23:31:10Z", "nvd_published_at": "2023-07-25T23:15:10Z", "severity": "MODERATE" }, "details": "### Summary\n\nCWE-200: Exposure of Sensitive Information to an Unauthorized Actor\nAccess to information you should not have access to when the permissions rely on `$CURRENT_USER` for filtering.\n\n### Details\n\nThe permission filters (i.e. `user_created IS $CURRENT_USER`) are not properly checked when using GraphQL subscription resulting in unauthorized users getting event on their subscription which they should not be receiving according to the permissions.\nThis can be any collection but out-of-the box the `directus_users` collection is configured with such a permissions filter allowing you to get updates for other users when changes happen.\n\nAn example:\n```graphql\nsubscription {\n directus_users_mutated {\n event\n data {\n id\n last_access\n last_page\n }\n }\n}\n```\n\n### Patches\nhttps://github.com/directus/directus/pull/19155\n\n### Workarounds\nDisable GraphQL Subscriptions\n\n### References\n\n", "id": "GHSA-gggm-66rh-pp98", "modified": "2023-07-25T23:31:10Z", "published": "2023-07-25T23:31:10Z", "references": [ { "type": "WEB", "url": "https://github.com/directus/directus/security/advisories/GHSA-gggm-66rh-pp98" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38503" }, { "type": "WEB", "url": "https://github.com/directus/directus/pull/19155" }, { "type": "PACKAGE", "url": "https://github.com/directus/directus" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Incorrect Permission Checking for GraphQL Subscriptions" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.