File tree Expand file tree Collapse file tree 4 files changed +6
-28
lines changed
csharp/ql/src/Security Features Expand file tree Collapse file tree 4 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 44 * @kind problem
55 * @id cs/serialization-check-bypass
66 * @problem.severity warning
7+ * @precision medium
78 * @tags security
89 * external/cwe/cwe-20
910 */
1011
11- /*
12- * consider: @precision medium
13- */
14-
1512import semmle.code.csharp.serialization.Serialization
1613import semmle.code.csharp.controlflow.Guards
1714
Original file line number Diff line number Diff line change 55 * @kind problem
66 * @id cs/xml-injection
77 * @problem.severity error
8+ * @precision high
89 * @tags security
910 * external/cwe/cwe-091
1011 */
1112
12- /*
13- * consider: @precision high
14- */
15-
1613import csharp
1714import semmle.code.csharp.dataflow.flowsources.Remote
1815import semmle.code.csharp.frameworks.system.Xml
Original file line number Diff line number Diff line change 66 * @kind problem
77 * @id cs/assembly-path-injection
88 * @problem.severity error
9+ * @precision high
910 * @tags security
1011 * external/cwe/cwe-114
1112 */
1213
13- /*
14- * consider: @precision high
15- */
16-
1714import csharp
1815import semmle.code.csharp.dataflow.flowsources.Remote
19-
20- class MainMethod extends Method {
21- MainMethod ( ) {
22- this .hasName ( "Main" ) and
23- this .isStatic ( ) and
24- ( this .getReturnType ( ) instanceof VoidType or this .getReturnType ( ) instanceof IntType ) and
25- if this .getNumberOfParameters ( ) = 1
26- then this .getParameter ( 0 ) .getType ( ) .( ArrayType ) .getElementType ( ) instanceof StringType
27- else this .getNumberOfParameters ( ) = 0
28- }
29- }
16+ import semmle.code.csharp.commons.Util
3017
3118/**
3219 * A taint-tracking configuration for untrusted user input used to load a DLL.
Original file line number Diff line number Diff line change 11/**
22 * @name Insecure SQL connection
3- * @description Using an SQL Server connection without enforcing encryption is a security vulnerability.
3+ * @description Using a SQL Server connection without enforcing encryption is a security vulnerability.
44 * @kind path-problem
55 * @id cs/insecure-sql-connection
66 * @problem.severity error
7+ * @precision medium
78 * @tags security
89 * external/cwe/cwe-327
910 */
1011
11- /*
12- * consider: @precision high
13- */
14-
1512import csharp
1613import DataFlow:: PathGraph
1714
You can’t perform that action at this time.
0 commit comments