Description (CNA)
NetBox through 4.7.0 fails to redact sensitive data source backend credentials in REST and GraphQL API responses. Authenticated users with only view permission can retrieve plaintext passwords and secret keys for Git and Amazon S3 backends through API endpoints, gaining unauthorized access to external repositories and storage buckets.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| netbox-community / netbox | affected 0 through 4.7.0 |
CWE
CWE-522
References
- https://github.com/geo-chen/oss/blob/main/netbox.md#finding-2-netbox-data-source-backend-credentials-git-password--s3-secret-key-returned-in-plaintext-via-rest-api-and-graphql-to-users-with-only-view-permission-incomplete-fix-of-12625
- https://github.com/netbox-community/netbox/blob/v4.7.0/netbox/core/api/serializers_/data.py#L26-L32
- https://github.com/netbox-community/netbox/blob/v4.7.0/netbox/core/graphql/types.py#L30-L38
- https://github.com/netbox-community/netbox/blob/v4.7.0/netbox/core/data_backends.py#L80
- https://github.com/netbox-community/netbox/issues/12625
- https://github.com/netbox-community/netbox
- https://www.vulncheck.com/advisories/netbox-through-4.7.0-credential-disclosure-via-rest-and-graphql-apis
ADP enrichment
No English description supplied.
No references supplied.