Repository navigation
Cherry pick #99122 to 25.8: Fix RBAC bypass for DESCRIBE/CREATE TABLE AS via table functions - #107584
Conversation
DESCRIBE TABLE and CREATE TABLE AS on table functions like mysql(), postgresql(), sqlite(), etc. resolved structure without checking source access, leaking schema info and triggering outbound connections (SSRF). Add getActualTableStructureWithAccess() that bundles the source access check with structure resolution. Use it in InterpreterDescribeQuery, InterpreterCreateQuery, and getStructureOfRemoteTable. Remove redundant per-function access checks from url(), s3()/azure(), and file() that were partial (only guarded auto-detection path) and inconsistent (s3/file missed URI-level filtering).
DESCRIBE remote() now requires source access via getActualTableStructureWithAccess in addition to SHOW_COLUMNS.
DESCRIBE TABLE url() with explicit structure now requires READ ON URL. Update test to expect ACCESS_DENIED instead of success.
…n-rbac-bypass Fix RBAC bypass for DESCRIBE/CREATE TABLE AS via table functions
|
Dear @serxa, @alexey-milovidov, @pufit, this cherry-pick PR has not been updated for 3d0h1m41s. Please resolve the conflicts to backport #99122, or close this PR if the backport is no longer needed. This PR will be automatically closed after 7 days of inactivity. |
|
Dear @serxa, @alexey-milovidov, @pufit, this cherry-pick PR has not been updated for 7d2h14m32s. Closing automatically. If you still want to backport #99122, please resolve the conflicts and reopen this PR. |
|
Dear @serxa, @alexey-milovidov, @pufit, this PR is opened while #99122 was marked as backported. The If the cherry-pick is not needed anymore, then just close this PR. |
1 similar comment
|
Dear @serxa, @alexey-milovidov, @pufit, this PR is opened while #99122 was marked as backported. The If the cherry-pick is not needed anymore, then just close this PR. |
Original pull-request #99122
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job