Skip to content

Commit

Permalink
add sanitizer and update message of dangerous subprocess rule (#3487)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDC0DE authored Oct 15, 2024
1 parent c865e0c commit 153588f
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 153588f

Please sign in to comment.