You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cortex-cli): prevent path traversal in github install --workflow-name
Fixes bounty issue #1578
The --workflow-name argument was used directly to construct file paths
without validation, allowing path traversal attacks like '../../../malicious'.
This fix sanitizes the workflow name using the existing sanitize_filename()
utility to remove path separators and traversal sequences before using it
in file path construction.
Also fixes a pre-existing bug in cortex-engine where the 'permissions'
variable was shadowed in a pattern match.
0 commit comments