Apache Polaris: could broaden vended S3 credentials through wildcard-bearing namespace or table names
Apache Software Foundation Apache Polaris
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.polaris:polaris-core Maven |
|
|
Original description
Apache Polaris accepts literal `*` characters in namespace and table names. When it later builds temporary S3 access policies for delegated table access, those same characters appear to be reused unescaped in S3 IAM resource patterns and `s3:prefix` conditions.
In S3 IAM policy matching, `*` is treated as a wildcard rather than as ordinary text. That means temporary credentials issued for one crafted table can match the storage path of a different table.
In private testing against Polaris 1.4.0 using Polaris' AWS S3 temporary- credential path on both MinIO and real AWS S3, credentials returned for crafted tables such as `f*.t1`, `f*.*`, `*.*`, and `foo.*` could reach other tables' S3 locations.