Skip to content

Commit fa5388b

Browse files
authored
Merge pull request #2209 from hvitved/csharp/deserialized-delegate
Approved by calumgrant, jf205
2 parents b075103 + ceea96e commit fa5388b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

change-notes/1.23/analysis-csharp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The following changes in version 1.23 affect C# analysis in all applications.
88

99
| **Query** | **Tags** | **Purpose** |
1010
|-----------------------------|-----------|--------------------------------------------------------------------|
11+
| Deserialized delegate (`cs/deserialized-delegate`) | security, external/cwe/cwe-502 | Finds unsafe deserialization of delegate types. |
1112
| Unsafe year argument for 'DateTime' constructor (`cs/unsafe-year-construction`) | reliability, date-time | Finds incorrect manipulation of `DateTime` values, which could lead to invalid dates. |
1213
| Mishandling the Japanese era start date (`cs/mishandling-japanese-era`) | reliability, date-time | Finds hard-coded Japanese era start dates that could be invalid. |
1314

csharp/ql/src/Security Features/CWE-502/DeserializedDelegate.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
* @kind problem
66
* @id cs/deserialized-delegate
77
* @problem.severity warning
8+
* @precision high
89
* @tags security
910
* external/cwe/cwe-502
1011
*/
1112

12-
/*
13-
* consider: @precision high
14-
*/
15-
1613
import csharp
1714
import semmle.code.csharp.frameworks.system.linq.Expressions
1815
import semmle.code.csharp.serialization.Deserializers

0 commit comments

Comments
 (0)