Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-41918: Merge pull request from GHSA-wmx7-x4jp-9jgg · opensearch-project/security@f7cc569

OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana. There is an issue with the implementation of fine-grained access control rules (document-level security, field-level security and field masking) where they are not correctly applied to the indices that back data streams potentially leading to incorrect access authorization. OpenSearch 1.3.7 and 2.4.0 contain a fix for this issue. Users are advised to update. There are no known workarounds for this issue.

CVE
#auth

@@ -69,6 +69,7 @@

import org.opensearch.security.user.User;

import static org.opensearch.cluster.metadata.IndexAbstraction.Type.ALIAS;

import static org.opensearch.cluster.metadata.IndexAbstraction.Type.DATA_STREAM;

public class ConfigModelV7 extends ConfigModel {

@@ -769,20 +770,22 @@ public Set<String> getResolvedIndexPattern(final User user, final IndexNameExpre

final ImmutableSet.Builder<String> resolvedIndices = new ImmutableSet.Builder<>();

final WildcardMatcher matcher = WildcardMatcher.from(unresolved);

boolean includeDataStreams = true;

if (!(matcher instanceof WildcardMatcher.Exact)) {

final String[] aliasesForPermittedPattern = cs.state().getMetadata().getIndicesLookup().entrySet().stream()

.filter(e -> e.getValue().getType() == ALIAS)

final String[] aliasesAndDataStreamsForPermittedPattern = cs.state().getMetadata().getIndicesLookup().entrySet().stream()

.filter(e -> (e.getValue().getType() == ALIAS) || (e.getValue().getType() == DATA_STREAM))

.filter(e -> matcher.test(e.getKey()))

.map(e -> e.getKey())

.toArray(String[]::new);

if (aliasesForPermittedPattern.length > 0) {

final String[] resolvedAliases = resolver.concreteIndexNames(cs.state(), IndicesOptions.lenientExpandOpen(), aliasesForPermittedPattern);

resolvedIndices.addAll(Arrays.asList(resolvedAliases));

if (aliasesAndDataStreamsForPermittedPattern.length > 0) {

final String[] resolvedAliasesAndDataStreamIndices = resolver.concreteIndexNames(cs.state(),

IndicesOptions.lenientExpandOpen(), includeDataStreams, aliasesAndDataStreamsForPermittedPattern);

resolvedIndices.addAll(Arrays.asList(resolvedAliasesAndDataStreamIndices));

}

}

if (Strings.isNotBlank(unresolved)) {

final String[] resolvedIndicesFromPattern = resolver.concreteIndexNames(cs.state(), IndicesOptions.lenientExpandOpen(), unresolved);

final String[] resolvedIndicesFromPattern = resolver.concreteIndexNames(cs.state(), IndicesOptions.lenientExpandOpen(), includeDataStreams, unresolved);

resolvedIndices.addAll(Arrays.asList(resolvedIndicesFromPattern));

}

Related news

GHSA-wmx7-x4jp-9jgg: OpenSearch has issue with fine-grained access control of indices backing data streams

### Impact There is an issue with the implementation of fine-grained access control rules (document-level security, field-level security and field masking) where they are not correctly applied to the indices that back data streams potentially leading to incorrect access authorization. This issue can only be triggered by authenticated users authorized to read those data streams which are backed by the impacted indexes. Additionally, existing privileged users cannot access random indexes within these clusters; they can only access indexes to which they have already been granted permission. ### Patches OpenSearch 1.3.7 and 2.4.0 contain a fix for this issue. ### Workarounds There is no recommended work around. ### For more information If you have any questions or comments about this advisory, please contact AWS/Amazon Security via our issue reporting page (https://aws.amazon.com/security/vulnerability-reporting/) or directly via email to [email protected]. Please do not create a ...

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907