You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The environment is basically the following Dockerfile :
FROM elasticsearch:7.6.1
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-s3
RUN /usr/share/elasticsearch/bin/elasticsearch-keystore create
Elasticsearch version (bin/elasticsearch --version): 7.6.1
Plugins installed: [ repository-s3 ]
JVM version (java -version): OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)
OS version (uname -a if on a Unix-like system): Linux 97d63e675866 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
When a filtered alias is associated to an index then it is still possible to access to any document by their _id but only when using the GET <index>/_doc/<_id> API.
This is a major security issue for SAAS application for which the _id field is generated by the application.
Steps to reproduce:
Create an index with an alias defining some filter to apply
The environment is basically the following Dockerfile :
Elasticsearch version (
bin/elasticsearch --version
): 7.6.1Plugins installed: [ repository-s3 ]
JVM version (
java -version
): OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.2+8, mixed mode, sharing)OS version (
uname -a
if on a Unix-like system): Linux 97d63e675866 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxDescription of the problem including expected versus actual behavior:
When a filtered alias is associated to an index then it is still possible to access to any document by their _id but only when using the
GET <index>/_doc/<_id>
API.This is a major security issue for SAAS application for which the
_id
field is generated by the application.Steps to reproduce:
customer-foo
to retrieve the matching documentsThis returns only one entry which is what was expected :
customer-foo
to count the matching documentsOnly one document match, this is what was expected
customer-foo
to search by the _idworld
This does not match any document which is correct
GET <index>/_doc/<id>
to access to the document using the alias name :This returns the document even though it does not match the filter associated to the defined alias :
This should not be possible
And yet the document can be removed
The text was updated successfully, but these errors were encountered: