Vulnerabilities > CVE-2023-31417 - Information Exposure Through Log Files vulnerability in Elastic Elasticsearch
Summary
Elasticsearch generally filters out sensitive information and credentials before logging to the audit log. It was found that this filtering was not applied when requests to Elasticsearch use certain deprecated URIs for APIs. The impact of this flaw is that sensitive information such as passwords and tokens might be printed in cleartext in Elasticsearch audit logs. Note that audit logging is disabled by default and needs to be explicitly enabled and even when audit logging is enabled, request bodies that could contain sensitive information are not printed to the audit log unless explicitly configured.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Fuzzing and observing application log data/errors for application mapping An attacker sends random, malformed, or otherwise unexpected messages to a target application and observes the application's log or error messages returned. Fuzzing techniques involve sending random or malformed messages to a target and monitoring the target's response. The attacker does not initially know how a target will respond to individual messages but by attempting a large number of message variants they may find a variant that trigger's desired behavior. In this attack, the purpose of the fuzzing is to observe the application's log and error messages, although fuzzing a target can also sometimes cause the target to enter an unstable state, causing a crash. By observing logs and error messages, the attacker can learn details about the configuration of the target application and might be able to cause the target to disclose sensitive information.
References
- https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479
- https://security.netapp.com/advisory/ntap-20231130-0006/
- https://www.elastic.co/community/security
- https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479
- https://www.elastic.co/community/security
- https://security.netapp.com/advisory/ntap-20231130-0006/