CVE-2021-28131: Apache Impala: Impala logs contain secrets

Related Vulnerabilities: CVE-2021-28131  
                							

                <!--X-Body-Begin-->
<!--X-User-Header-->

oss-sec
mailing list archives
<!--X-User-Header-End-->
<!--X-TopPNI-->

By Date

By Thread

</form>

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
CVE-2021-28131: Apache Impala: Impala logs contain secrets

<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->

From: Zoltán Borók-Nagy &lt;boroknagyz () apache org&gt;

Date: Thu, 22 Jul 2021 09:41:43 +0000

<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->

<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
Severity: high

Description:

Impala sessions use a 16 byte secret to verify that the session is not being hijacked by another user. However, these 
secrets appear in the Impala logs, therefore Impala users with access to the logs can use another authenticated user's 
sessions with specially constructed requests. This means the attacker is able to execute statements for which they 
don't have the necessary privileges otherwise.

Impala deployments with Apache Sentry or Apache Ranger authorization enabled may be vulnerable to privilege escalation 
if an authenticated attacker is able to hijack a session or query from another authenticated user with privileges not 
assigned to the attacker.

Impala deployments with audit logging enabled may be vulnerable to incorrect audit logging as a user could undertake 
actions that were logged under the name of a different authenticated user.

Constructing an attack requires a high degree of technical sophistication and access to the Impala system as an 
authenticated user.

Mitigation: If an Impala deployment uses Apache Sentry, Apache Ranger or audit logging, then users should upgrade to a 
version of Impala with the fix for IMPALA-10600. The Impala 4.0 release includes this fix. This hides session secrets 
from the logs to eliminate the risk of any attack using this mechanism.

In lieu of an upgrade, restricting access to logs that expose secrets will reduce the risk of an attack. Restricting 
access to the Impala deployment to trusted users will also reduce the risk of an attack. Log redaction techniques can 
be used to redact secrets from the logs.

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->

<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->

By Date

By Thread

Current thread:

CVE-2021-28131: Apache Impala: Impala logs contain secrets Zoltán Borók-Nagy (Jul 22)

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->