Conversation
| @@ -0,0 +1,4 @@ | |||
| # flake8: noqa | |||
| a = "ASIAAQWSEDRFTGYHUJUJ" | |||
| output = subprocess.check_output(f"nslookup {domain}", shell=True, encoding='UTF-8') | |||
There was a problem hiding this comment.
Security control: Static Code Analysis Python Semgrep
Type: Python.Lang.Security.Audit.Subprocess-Shell-True.Subprocess-Shell-True
Description: Found 'subprocess' function 'check_output' with 'shell=True'. This is dangerous because this call will spawn the command using a shell process. Doing so propagates current shell settings and variables, which makes it much easier for a malicious actor to execute commands. Use 'shell=False' instead.
Severity: HIGH
Fix suggestion:
This fix suggestion was generated by Jit. Please note that the suggestion might not always fit every use case. It is highly recommended that you check and review it before merging.
Suggestion guidelines
Use 'shell=False' instead
| output = subprocess.check_output(f"nslookup {domain}", shell=True, encoding='UTF-8') | |
| output = subprocess.check_output(f"nslookup {domain}", shell=False, encoding='UTF-8') |
Jit Bot commands and options (e.g., ignore issue)
You can trigger Jit actions by commenting on this PR review:
#jit_ignore_fpIgnore and mark this specific single instance of finding as “False Positive”#jit_ignore_acceptIgnore and mark this specific single instance of finding as “Accept Risk”#jit_undo_ignoreUndo ignore command
| @@ -0,0 +1,4 @@ | |||
| # flake8: noqa | |||
| a = "ASIAAQWSEDRFTGYHUJUJ" | |||
There was a problem hiding this comment.
Security control: Secret Detection
Type: Aws-Access-Token
Description: Identified a pattern that may indicate AWS credentials, risking unauthorized cloud resource access and data breaches on AWS platforms.
Severity: HIGH
Jit Bot commands and options (e.g., ignore issue)
You can trigger Jit actions by commenting on this PR review:
#jit_ignore_fpIgnore and mark this specific single instance of finding as “False Positive”#jit_ignore_acceptIgnore and mark this specific single instance of finding as “Accept Risk”#jit_undo_ignoreUndo ignore command
Description for STRESS 245