)]}'
{"bandit/plugins/injection_shell.py":[{"author":{"_account_id":24607,"name":"David Wyde","email":"dwyde@cisco.com"},"change_message_id":"a21b416af4574c00689cfe15400a8b4346bc7fcf","unresolved":false,"context_lines":[{"line_number":24,"context_line":"def _has_special_characters(command):"},{"line_number":25,"context_line":"    # check if it contains any of the characters outside of whitelist:"},{"line_number":26,"context_line":"    # (from pipes \u0027safechars\u0027): @%_-+\u003d:,./ spaces and alphanumerics"},{"line_number":27,"context_line":"    return bool(re.search(r\u0027[^\\@\\%\\_\\-\\+\\\u003d\\:\\,\\.\\/\\d\\s\\w]\u0027, command))"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def _evaluate_shell_call(context):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_be3ac7e5","line":27,"updated":"2016-12-19 19:18:14.000000000","message":"I suspect some of these backslash escapes are unnecessary.\nAlso, I think \\w includes \\d?","commit_id":"342117730d5d5e9d1832f34557e651f92d162c69"}],"examples/subprocess_shell.py":[{"author":{"_account_id":24607,"name":"David Wyde","email":"dwyde@cisco.com"},"change_message_id":"a21b416af4574c00689cfe15400a8b4346bc7fcf","unresolved":false,"context_lines":[{"line_number":30,"context_line":"command \u003d \"/bin/ls\" + unknown_function()"},{"line_number":31,"context_line":"subprocess.Popen(command, shell\u003dTrue)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"subprocess.Popen(\u0027/bin/ls \u0026 cat /etc/passwd\u0027, shell\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_5e2c53ab","line":33,"updated":"2016-12-19 19:18:14.000000000","message":"\u0026\u0026 is more normal?","commit_id":"342117730d5d5e9d1832f34557e651f92d162c69"},{"author":{"_account_id":24607,"name":"David Wyde","email":"dwyde@cisco.com"},"change_message_id":"e23aa007c4961586ce3e080be1660ee2901fa0a7","unresolved":false,"context_lines":[{"line_number":30,"context_line":"command \u003d \"/bin/ls\" + unknown_function()"},{"line_number":31,"context_line":"subprocess.Popen(command, shell\u003dTrue)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"subprocess.Popen(\u0027/bin/ls \u0026 cat /etc/passwd\u0027, shell\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a6eadb0_8b4eaa94","line":33,"range":{"start_line":33,"start_character":26,"end_line":33,"end_character":27},"updated":"2016-12-19 21:02:23.000000000","message":"Did you mean \u0026\u0026 ?","commit_id":"385f951985c930f985a6f39e2ee637518a311af7"}],"tests/functional/test_functional.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"db7b9adce095d29275580a101c1aa091595e1758","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def test_os_popen(self):"},{"line_number":229,"context_line":"        \u0027\u0027\u0027Test for `os.popen`.\u0027\u0027\u0027"},{"line_number":230,"context_line":"        expect \u003d {\u0027SEVERITY\u0027: {\u0027LOW\u0027: 8, \u0027MEDIUM\u0027: 0, \u0027HIGH\u0027: 1},"},{"line_number":231,"context_line":"                  \u0027CONFIDENCE\u0027: {\u0027HIGH\u0027: 9}}"},{"line_number":232,"context_line":"        self.check_example(\u0027os-popen.py\u0027, expect)"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6eadb0_417473fc","line":230,"range":{"start_line":230,"start_character":41,"end_line":230,"end_character":54},"updated":"2016-12-19 22:04:21.000000000","message":"Probably can remove MEDIUM from the dict now that it doesn\u0027t add to the sum, having a 0 value.","commit_id":"8f74c51935058cacd77ee2a2a40dc6e6efbde4a2"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"db7b9adce095d29275580a101c1aa091595e1758","unresolved":false,"context_lines":[{"line_number":318,"context_line":"    def test_wildcard_injection(self):"},{"line_number":319,"context_line":"        \u0027\u0027\u0027Test for wildcard injection in shell commands.\u0027\u0027\u0027"},{"line_number":320,"context_line":"        expect \u003d {"},{"line_number":321,"context_line":"            \u0027SEVERITY\u0027: {\u0027HIGH\u0027: 4, \u0027MEDIUM\u0027: 0, \u0027LOW\u0027: 10},"},{"line_number":322,"context_line":"            \u0027CONFIDENCE\u0027: {\u0027MEDIUM\u0027: 5, \u0027HIGH\u0027: 9}"},{"line_number":323,"context_line":"        }"},{"line_number":324,"context_line":"        self.check_example(\u0027wildcard-injection.py\u0027, expect)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6eadb0_21777703","line":321,"range":{"start_line":321,"start_character":37,"end_line":321,"end_character":47},"updated":"2016-12-19 22:04:21.000000000","message":"Probably can remove MEDIUM from the dict now that it doesn\u0027t add to the sum, having a 0 value.","commit_id":"8f74c51935058cacd77ee2a2a40dc6e6efbde4a2"}]}
