CVE-2022-31022: Missing Role Based Access Control for the REST handlers in bleve/http package
(updated )
What kind of vulnerability is it? Who is impacted?
Bleve includes HTTP utilities under bleve/http package, that are used by its sample application. (https://github.com/blevesearch/bleve-explorer) These HTTP methods paves way for exploitation of a node’s filesystem where the bleve index resides, if the user has used bleve’s own HTTP (bleve/http) handlers for exposing the access to the indexes. For instance, the CreateIndexHandler (http/index_create.go) and DeleteIndexHandler (http/index_delete.go) enable an attacker to create a bleve index (directory structure) anywhere where the user running the server has the write permissions and to delete recursively any directory owned by the same user account.
Users who have used the bleve/http package for exposing access to bleve index without the explicit handling for the Role Based Access Controls(RBAC) of the index assets would be impacted.
References
- github.com/advisories/GHSA-9w9f-6mg8-jp7w
- github.com/blevesearch/bleve/commit/1c7509d6a17d36f265c90b4e8f4e3a3182fe79ff
- github.com/blevesearch/bleve/commit/af9e3111dadfedf9d30f0448506b4a57fecc8550
- github.com/blevesearch/bleve/security/advisories/GHSA-9w9f-6mg8-jp7w
- nvd.nist.gov/vuln/detail/CVE-2022-31022
- pkg.go.dev/vuln/GO-2022-0470
Code Behaviors & Features
Detect and mitigate CVE-2022-31022 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 →