PT-2021-3851 · Apache · Apache Sentry+1

Zoltán Borók-Nagy

·

Published

2021-07-22

·

Updated

2022-07-30

·

CVE-2021-28131

CVSS v3.1

7.5

High

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Impala versions prior to 4.0
Description The issue is related to Impala sessions using a 16 byte secret to verify that the session is not being hijacked by another user. However, these secrets appear in the Impala logs, allowing Impala users with access to the logs to use another authenticated user's sessions with specially constructed requests. This enables the attacker 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.
Recommendations 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. 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.

Fix

Insertion into Log File

Authentication Bypass Using an Alternate Path or Channel

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-04208
CVE-2021-28131

Affected Products

Apache Ranger
Apache Sentry