CVE-2023-32078: Github.com/gravitl/netmaker Netmaker IDOR Allows User To Vulnerability
HIGHCVE-2023-32078 is a HIGH (CVSS 7.5) netmaker idor allows user to vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/gravitl/netmaker libraries in the Go ecosystem. The issue involves netmaker idor allows user to update other user's password. Remediation is available by upgrading affected packages to version 0.17.1, 0.18.6.
CVE-2023-32078 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2023-32078
To remediate this vulnerability, upgrade all affected Github.com/gravitl/netmaker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/gravitl/netmaker to 0.17.1
Upgrade github.com/gravitl/netmaker to 0.18.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/gravitl/netmaker
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-32078, inspect your project dependencies for Github.com/gravitl/netmaker:
inspect dependencies for github.com/gravitl/netmaker
Analyze the terminal output to locate any version of Github.com/gravitl/netmaker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Github.com/gravitl/netmaker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-32078 Affected Github.com/gravitl/netmaker Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/gravitl/netmaker
|
Go |
< 0.17.1
|
0.17.1
|
|
github.com/gravitl/netmaker
|
Go |
≥ 0.18.0
< 0.18.6
|
0.18.6
|
References
Frequently Asked Questions
What is CVE-2023-32078?
Which Github.com/gravitl/netmaker versions are affected?
What version fixes CVE-2023-32078?
Is github.com/gravitl/netmaker affected?
What is the CVSS score of CVE-2023-32078?
What CWE is associated with CVE-2023-32078?
How can I check Go dependencies for CVE-2023-32078?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-256m-j5qw-38f4",
"modified" : "2023-08-25T18:41:16Z",
"published" : "2023-08-25T18:41:16Z",
"aliases" : [ "CVE-2023-32078" ],
"summary" : "Netmaker IDOR Allows User to Update Other User's Password",
"details" : "### Impact\nAn IDOR vulnerability was found in the user update function. By specifying another user's username it is possible to update the other user's password.\n\n### Patches\nIssue is patched in 0.17.1, and fixed in 0.18.6+.\n\nIf Users are using 0.17.1, they should run \"docker pull gravitl/netmaker:v0.17.1\" and \"docker-compose up -d\". This will switch them to the patched users\n\nIf users are using v0.18.0-0.18.5, they should upgrade to v0.18.6 or later.\n\n### Workarounds\nIf using 0.17.1, can just pull the latest docker image of backend and restart server.\n\n### References\nCredit to Project Discovery, and in particular https://github.com/rootxharsh , https://github.com/iamnoooob, and https://github.com/projectdiscovery",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/gravitl/netmaker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.17.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/gravitl/netmaker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.18.0"
}, {
"fixed" : "0.18.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/gravitl/netmaker/security/advisories/GHSA-256m-j5qw-38f4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32078"
}, {
"type" : "WEB",
"url" : "https://github.com/gravitl/netmaker/pull/2158"
}, {
"type" : "WEB",
"url" : "https://github.com/gravitl/netmaker/commit/b3be57c65bf0bbfab43b66853c8e3637a43e2839"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gravitl/netmaker"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-25T18:41:16Z",
"nvd_published_at" : "2023-08-24T22:15:10Z"
}
}