Skip to content

revoke PUBLIC execute on raw_query#1045

Open
x4m wants to merge 1 commit into
duckdb:mainfrom
postgredients:fix/revoke-raw-query
Open

revoke PUBLIC execute on raw_query#1045
x4m wants to merge 1 commit into
duckdb:mainfrom
postgredients:fix/revoke-raw-query

Conversation

@x4m
Copy link
Copy Markdown

@x4m x4m commented Apr 28, 2026

raw_query(TEXT) executes arbitrary DuckDB SQL, including HTTP requests to any host and access to any S3 bucket the server can reach. Leaving it callable by public might be dangerous.

I suppose the REVOKE on line 123 was inadvertently overridden by a later GRANT ALL TO PUBLIC near the aggregate definitions. Or do I misunderstand something?

I'm not sure, but maybe recycle_ddb() also deserves same treating.

raw_query(TEXT) executes arbitrary DuckDB SQL, including HTTP requests
to any host and access to any S3 bucket the server can reach.  Leaving
it callable by PUBLIC is an SSRF and data-exfiltration vector.

The REVOKE on line 123 was inadvertently overridden by a later
GRANT ALL TO PUBLIC near the aggregate definitions.  Replace both
GRANT ALL lines with explicit REVOKE statements so the intent is clear
and survives future file edits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant