GHSA-f4qr-f4xx-hjxw
OpenSearch vulnerable to Improper Authorization of Index Containing Sensitive Information
Quick fix
GHSA-f4qr-f4xx-hjxw — org.opensearch.plugin:opensearch-security: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.2.0.0</version> for org.opensearch.plugin:opensearch-securityDetails
### Impact Requests to an OpenSearch cluster configured with advanced access control features ([document level security (DLS)](https://opensearch.org/docs/latest/security-plugin/access-control/document-level-security/), [field level security (FLS)](https://opensearch.org/docs/latest/security-plugin/access-control/field-level-security/), and/or [field masking](https://opensearch.org/docs/latest/security-plugin/access-control/field-masking/)) will not be filtered when the query's search pattern matches an aliased index.
OpenSearch Dashboards creates an alias to `.kibana` by default, so filters with the index pattern of `*` to restrict access to documents or fields will not be applied.
This issue allows requests to access sensitive information when customer have acted to restrict access that specific information.
### Patches OpenSearch 2.2.0+ contains the fix for this issue. OpenSearch Security Plugin 2.2.0.0 is compatible with OpenSearch 2.2.0.
### Workarounds There is no recommended work around.
### References See pull request #1999 for additional details.
### For more information If you have any questions or comments about this advisory we ask that contact AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do **not** create a public GitHub issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
2.0.0.0Fixed in: 2.2.0.0# pom.xml: bump <version>2.2.0.0</version> for org.opensearch.plugin:opensearch-securityReferences
- https://github.com/opensearch-project/security/security/advisories/GHSA-f4qr-f4xx-hjxw[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-35980[ADVISORY]
- https://github.com/opensearch-project/security/pull/1999[WEB]
- https://github.com/opensearch-project/security/commit/7eaaafec2939d7db23a02ffca9cc68e0343de246[WEB]
- https://github.com/opensearch-project/security[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.opensearch.plugin/opensearch-security"]}'