Repository navigation
Conversation
Automated security fix generated by OrbisAI Security
|
Thanks for the contribution @anupamme! The change itself is fine as defense-in-depth hardening, so we're taking it — but our Redshift CI is an integration suite that deploys to a live cluster using repository secrets, which GitHub doesn't expose to fork PRs, so this PR can't pass CI as-is. We've cherry-picked your commit (authorship preserved) onto an internal branch in #640, where CI can run with credentials. Closing this one in favor of #640. One note on the report itself: |
Summary
Fix high severity security issue in
gateway/logic/clouds/redshift/cli.py.Vulnerability
V-003gateway/logic/clouds/redshift/cli.py:1000Description: While schema names are validated, the function_name parameter used in SQL queries is NOT validated before being used in f-string SQL construction. This creates a SQL injection vulnerability where function names containing SQL metacharacters can break out of string context.
Evidence
Exploitation scenario: Control function name through deployment configuration with value like
my_func'; DELETE FROM _gw_udfs_info; --.Scanner confirmation: multi_agent_ai rule
V-003flagged this pattern.Production code: This file is in the production codebase, not test-only code.
Threat Model Context
This is a local CLI tool - exploitation requires the attacker to control command-line arguments or input files.
Changes
gateway/logic/clouds/redshift/cli.pyBehavior Preservation
The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
Automated security fix by OrbisAI Security