Menu

Allowed to view the Location, handed the Device: a GraphQL permission gap in Nautobot (GHSA-mfwj-pjgx-22v2)
📰

Allowed to view the Location, handed the Device: a GraphQL permission gap in Nautobot (GHSA-mfwj-pjgx-22v2)

DEV Community: appsec·Santosh Kumar Puppala·9 days ago
#3RoNSpTy
#devtoappsec#devto#dev#nautobot#graphql
Reading 0:00
15s threshold

TL;DR

What: Nautobot 's GraphQL API enforced object permissions at the root of a query but not when a query traversed into related models. In my local test on v3.1.4, an account with view permission on Location and no device permission got a 403 from the REST device list and an empty list from a top-level devices query. A nested query through location.devices returned the device's id and name .

Impact: per the advisory, users with access to some models but not others could retrieve fields from models they were not meant to reach. It needs a valid account, and it is read-only. Rated Moderate 6.5 ( CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N ). CWE-200 and CWE-285.

Fixed in 2.4.38 and 3.2.0 , advisory GHSA-mfwj-pjgx-22v2 . The advisory reads: "Credit for this discovery goes to Habibullo Izzatilloyev. It was also reported by Santosh Kumar Puppala."

Why you should care

Nautobot describes itself as a Network Source of Truth and Network Automation Platform.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.