You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csharp/ql/src/experimental/Security Features/Serialization/DefiningDatasetRelatedType.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,5 @@ import DataSetSerialization
12
12
13
13
fromDataSetOrTableRelatedClassdstc
14
14
wheredstc.fromSource()
15
-
selectdstc,"Defining a class that inherits or has a property derived from the obsolete DataSet or DataTable types. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details."
15
+
selectdstc,
16
+
"Defining a class that inherits or has a property derived from the obsolete DataSet or DataTable types. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details."
* @name Defining a potentially unsafe XML serializer
2
+
* @name Defining a potentially unsafe XML serializer
3
3
* @description Defining an XML serializable class that includes members that derive from dataSet or DataTable type may lead to a security problem. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details.
4
4
* @kind problem
5
5
* @problem.severity error
@@ -12,8 +12,9 @@ import csharp
12
12
import DataSetSerialization
13
13
14
14
fromUnsafeXmlSerializerImplementationc,Memberm
15
-
wherec.fromSource()and
16
-
isClassUnsafeXmlSerializerImplementation(c,m)
17
-
selectm,"Defining an serializable class $@ that has member $@ of a type that is derived from DataSet or DataTable types and may lead to a security problem. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details.",
18
-
c,c.toString(),
19
-
m,m.toString()
15
+
where
16
+
c.fromSource()and
17
+
isClassUnsafeXmlSerializerImplementation(c,m)
18
+
selectm,
19
+
"Defining an serializable class $@ that has member $@ of a type that is derived from DataSet or DataTable types and may lead to a security problem. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details.",
Copy file name to clipboardExpand all lines: csharp/ql/src/experimental/Security Features/Serialization/XmlDeserializationWithDataSet.ql
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,5 +12,6 @@ import csharp
12
12
import DataSetSerialization
13
13
14
14
fromUnsafeXmlReadMethodCallmc
15
-
whereexists(Methodm|m.getACall()=mc)
16
-
selectmc,"Making an XML deserialization call with a type derived from DataSet or DataTable types and may lead to a security problem. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details."
15
+
whereexists(Methodm|m.getACall()=mc)
16
+
selectmc,
17
+
"Making an XML deserialization call with a type derived from DataSet or DataTable types and may lead to a security problem. Please visit https://go.microsoft.com/fwlink/?linkid=2132227 for details."
0 commit comments