Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sanitizer and update message of dangerous subprocess rule #3487

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ rules:
mode: taint
options:
symbolic_propagation: true
pattern-sanitizers:
- pattern: shlex.quote(...)
pattern-sources:
- patterns:
- pattern-either:
Expand Down Expand Up @@ -81,7 +83,7 @@ rules:
message: >-
Detected subprocess function '$FUNC' with user controlled data. A malicious actor
could leverage this to perform command injection.
You may consider using 'shlex.escape()'.
You may consider using 'shlex.quote()'.
metadata:
owasp:
- A01:2017 - Injection
Expand Down
Loading