GHSA-x287-5c68-36wp: OpenWISP IPAM has broken object-level authorization: ExportSubnetView lets a member of one organization export another organization's subnet and all its IP addresses
OpenWISP IPAM is multi-tenant: every Subnet belongs to an organization, and API access is scoped to the organizations a user belongs to. The CSV export endpoint, ExportSubnetView, omits the organization-membership check that its import sibling performs, and loads the subnet by primary key with no organization filter. An authenticated user who is a member of one organization can therefore export a subnet belonging to another organization — its name, CIDR, organization slug and every IP address in it — by issuing an export request for that subnet’s id.
References
- github.com/advisories/GHSA-x287-5c68-36wp
- github.com/openwisp/openwisp-ipam/commit/04a2ef949498c6591f9ac35713d7451fb9f75362
- github.com/openwisp/openwisp-ipam/commit/a4b272461bfa7a1762baf0b1fd76b4f5b681586b
- github.com/openwisp/openwisp-ipam/pull/220
- github.com/openwisp/openwisp-ipam/releases/tag/1.2.1
- github.com/openwisp/openwisp-ipam/security/advisories/GHSA-x287-5c68-36wp
Code Behaviors & Features
Detect and mitigate GHSA-x287-5c68-36wp with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →