Skip to content

Commit 4eed94a

Browse files
committed
Python: Fix CWE tag for py/use-of-input
So it better matches what is in `py/code-injection`. I had my doubts about CWE-95, but after reading https://owasp.org/www-community/attacks/Direct_Dynamic_Code_Evaluation_Eval%20Injection I think it's fine to add CWE-95 as well 👍 Definitions are: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE-94: Improper Control of Generation of Code ('Code Injection') CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
1 parent 02c017a commit 4eed94a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/Expressions/UseofInput.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* @kind problem
55
* @tags security
66
* correctness
7-
* security/cwe/cwe-78
7+
* security/cwe/cwe-94
8+
* security/cwe/cwe-95
89
* @problem.severity error
910
* @security-severity 5.9
1011
* @sub-severity high

0 commit comments

Comments
 (0)