Skip to content

Commit 641f907

Browse files
Alvaro MuñozGeekMasher
Alvaro Muñoz
authored andcommitted
update tests
1 parent 756ac0c commit 641f907

File tree

5 files changed

+48
-28
lines changed

5 files changed

+48
-28
lines changed

csharp/test/codeql-pack.lock.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@
22
lockVersion: 1.0.0
33
dependencies:
44
codeql/controlflow:
5-
version: 0.0.3
5+
version: 0.1.16
66
codeql/csharp-all:
7-
version: 0.7.4
7+
version: 0.10.1
88
codeql/csharp-queries:
9-
version: 0.7.4
9+
version: 0.8.16
1010
codeql/dataflow:
11-
version: 0.0.3
11+
version: 0.2.7
1212
codeql/mad:
13-
version: 0.1.4
13+
version: 0.2.16
1414
codeql/ssa:
15-
version: 0.1.4
15+
version: 0.2.16
1616
codeql/suite-helpers:
17-
version: 0.6.4
17+
version: 0.7.16
18+
codeql/threat-models:
19+
version: 0.0.15
1820
codeql/tutorial:
19-
version: 0.1.4
21+
version: 0.2.16
22+
codeql/typetracking:
23+
version: 0.2.16
2024
codeql/util:
21-
version: 0.1.4
25+
version: 0.2.16
26+
codeql/xml:
27+
version: 0.0.3
2228
compiled: false

csharp/test/qlpack.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: githubsecurtylab/codeql-csharp-tests
22
groups: [csharp, test]
33
dependencies:
4-
codeql/csharp-all: '*'
5-
codeql/csharp-queries: '*'
6-
githubsecuritylab/codeql-csharp-queries: '*'
7-
githubsecuritylab/codeql-csharp-libs: '*'
4+
codeql/csharp-all: 0.10.1
5+
codeql/csharp-queries: 0.8.16
6+
githubsecuritylab/codeql-csharp-libs: 0.0.1
7+
githubsecuritylab/codeql-csharp-queries: 0.0.4
88
extractor: csharp
99
tests: .

csharp/test/security/CWE-328/WeakPasswordHashing.expected

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
edges
2-
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes |
3-
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] |
4-
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes |
5-
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] |
6-
| WeakHashingAlgorithms.cs:78:24:78:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:79:45:79:49 | access to local variable bytes |
7-
| WeakHashingAlgorithms.cs:78:50:78:57 | access to parameter password : String | WeakHashingAlgorithms.cs:78:24:78:58 | call to method GetBytes : Byte[] |
2+
| WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes | provenance | |
3+
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | provenance | |
4+
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
5+
| WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes | provenance | |
6+
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | provenance | |
7+
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
8+
| WeakHashingAlgorithms.cs:78:16:78:20 | access to local variable bytes : Byte[] | WeakHashingAlgorithms.cs:79:45:79:49 | access to local variable bytes | provenance | |
9+
| WeakHashingAlgorithms.cs:78:24:78:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:78:16:78:20 | access to local variable bytes : Byte[] | provenance | |
10+
| WeakHashingAlgorithms.cs:78:50:78:57 | access to parameter password : String | WeakHashingAlgorithms.cs:78:24:78:58 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
811
nodes
12+
| WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | semmle.label | access to local variable bytes : Byte[] |
913
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
1014
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | semmle.label | access to parameter password : String |
1115
| WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes | semmle.label | access to local variable bytes |
16+
| WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | semmle.label | access to local variable bytes : Byte[] |
1217
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
1318
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | semmle.label | access to parameter password : String |
1419
| WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes | semmle.label | access to local variable bytes |
20+
| WeakHashingAlgorithms.cs:78:16:78:20 | access to local variable bytes : Byte[] | semmle.label | access to local variable bytes : Byte[] |
1521
| WeakHashingAlgorithms.cs:78:24:78:58 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
1622
| WeakHashingAlgorithms.cs:78:50:78:57 | access to parameter password : String | semmle.label | access to parameter password : String |
1723
| WeakHashingAlgorithms.cs:79:45:79:49 | access to local variable bytes | semmle.label | access to local variable bytes |

csharp/test/security/CWE-328/WeakSensitiveDataHashing.expected

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
edges
2-
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes |
3-
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] |
4-
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes |
5-
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] |
2+
| WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes | provenance | |
3+
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | provenance | |
4+
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
5+
| WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes | provenance | |
6+
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | provenance | |
7+
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
68
nodes
9+
| WeakHashingAlgorithms.cs:52:16:52:20 | access to local variable bytes : Byte[] | semmle.label | access to local variable bytes : Byte[] |
710
| WeakHashingAlgorithms.cs:52:24:52:58 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
811
| WeakHashingAlgorithms.cs:52:50:52:57 | access to parameter password : String | semmle.label | access to parameter password : String |
912
| WeakHashingAlgorithms.cs:53:42:53:46 | access to local variable bytes | semmle.label | access to local variable bytes |
13+
| WeakHashingAlgorithms.cs:65:16:65:20 | access to local variable bytes : Byte[] | semmle.label | access to local variable bytes : Byte[] |
1014
| WeakHashingAlgorithms.cs:65:24:65:58 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
1115
| WeakHashingAlgorithms.cs:65:50:65:57 | access to parameter password : String | semmle.label | access to parameter password : String |
1216
| WeakHashingAlgorithms.cs:66:43:66:47 | access to local variable bytes | semmle.label | access to local variable bytes |

csharp/test/security/CWE-760/HardcodedSalt.expected

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
edges
2-
| StaticSalt.cs:13:16:13:55 | call to method GetBytes : Byte[] | StaticSalt.cs:14:49:14:52 | access to local variable salt |
3-
| StaticSalt.cs:13:39:13:54 | "Hardcoded Salt" : String | StaticSalt.cs:13:16:13:55 | call to method GetBytes : Byte[] |
4-
| StaticSalt.cs:23:12:23:28 | "Hardcoded Salt2" : String | StaticSalt.cs:29:39:29:63 | call to method generateSalt : String |
5-
| StaticSalt.cs:29:16:29:64 | call to method GetBytes : Byte[] | StaticSalt.cs:30:49:30:52 | access to local variable salt |
6-
| StaticSalt.cs:29:39:29:63 | call to method generateSalt : String | StaticSalt.cs:29:16:29:64 | call to method GetBytes : Byte[] |
2+
| StaticSalt.cs:13:9:13:12 | access to local variable salt : Byte[] | StaticSalt.cs:14:49:14:52 | access to local variable salt | provenance | |
3+
| StaticSalt.cs:13:16:13:55 | call to method GetBytes : Byte[] | StaticSalt.cs:13:9:13:12 | access to local variable salt : Byte[] | provenance | |
4+
| StaticSalt.cs:13:39:13:54 | "Hardcoded Salt" : String | StaticSalt.cs:13:16:13:55 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
5+
| StaticSalt.cs:23:12:23:28 | "Hardcoded Salt2" : String | StaticSalt.cs:29:39:29:63 | call to method generateSalt : String | provenance | |
6+
| StaticSalt.cs:29:9:29:12 | access to local variable salt : Byte[] | StaticSalt.cs:30:49:30:52 | access to local variable salt | provenance | |
7+
| StaticSalt.cs:29:16:29:64 | call to method GetBytes : Byte[] | StaticSalt.cs:29:9:29:12 | access to local variable salt : Byte[] | provenance | |
8+
| StaticSalt.cs:29:39:29:63 | call to method generateSalt : String | StaticSalt.cs:29:16:29:64 | call to method GetBytes : Byte[] | provenance | MaD:1869 |
79
nodes
10+
| StaticSalt.cs:13:9:13:12 | access to local variable salt : Byte[] | semmle.label | access to local variable salt : Byte[] |
811
| StaticSalt.cs:13:16:13:55 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
912
| StaticSalt.cs:13:39:13:54 | "Hardcoded Salt" : String | semmle.label | "Hardcoded Salt" : String |
1013
| StaticSalt.cs:14:49:14:52 | access to local variable salt | semmle.label | access to local variable salt |
1114
| StaticSalt.cs:23:12:23:28 | "Hardcoded Salt2" : String | semmle.label | "Hardcoded Salt2" : String |
15+
| StaticSalt.cs:29:9:29:12 | access to local variable salt : Byte[] | semmle.label | access to local variable salt : Byte[] |
1216
| StaticSalt.cs:29:16:29:64 | call to method GetBytes : Byte[] | semmle.label | call to method GetBytes : Byte[] |
1317
| StaticSalt.cs:29:39:29:63 | call to method generateSalt : String | semmle.label | call to method generateSalt : String |
1418
| StaticSalt.cs:30:49:30:52 | access to local variable salt | semmle.label | access to local variable salt |

0 commit comments

Comments
 (0)