-
Notifications
You must be signed in to change notification settings - Fork 29
/
.inferconfig
92 lines (92 loc) · 3.49 KB
/
.inferconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"force-delete-results-dir": true,
"siof-safe-methods": ["getGlobalNonPODAllowListed", "allow_listed::getGlobalNonPOD",
"allow_listed::TemplatedObject::getGlobalNonPOD"],
"skip-translation": [
{
"language": "Java",
"source_contains": "_SHOULD_BE_SKIPPED_"
}
],
"enable-issue-type" : [ "PULSE_RESOURCE_LEAK", "TAINT_ERROR", "NULLPTR_DEREFERENCE", "THREAD_SAFETY_VIOLATION" ],
"disable-issue-type" : [ "DOTNET_RESOURCE_LEAK", "PULSE_UNINITIALIZED_VALUE" ],
"debug-level" : 1,
"sarif" : true,
"pulse" : true,
"biabduction" : false,
"timeout": 180,
"pulse-taint-policies": [
{ "short_description": "SQL injection risk",
"taint_flows": [
{ "source_kinds": ["UserControlledURI", "UserControlledString"],
"sink_kinds": ["SQLInjection"] }
]
},
{
"short_description": "Remote data to unsafe deserializer",
"taint_flows": [
{ "source_kinds": ["UserControlledURI", "UserControlledString"],
"sink_kinds": ["Deserialization"] }
]
}
],
"pulse-taint-sources": [
{ "method_with_annotation" : "HttpGetAttribute",
"kinds": ["UserControlledURI"],
"taint_target": "AllArguments"},
{ "method_with_annotation" : "HttpPutAttribute",
"kinds": ["UserControlledURI"],
"taint_target": "AllArguments"},
{ "method_with_annotation" : "HttpPostAttribute",
"kinds": ["UserControlledURI"],
"taint_target": "AllArguments"},
{ "method_with_annotation" : "HttpDeleteAttribute",
"kinds": ["UserControlledURI"],
"taint_target": "AllArguments"},
{ "class_names": ["System.Web.UI.Page"],
"method_names": ["get_Request"],
"kinds": ["UserControlledURI"]},
{ "class_names": ["System.Web.UI.WebControls.TextBox", "System.Windows.Forms.TextBox"],
"method_names": ["get_Text"],
"kinds": ["UserControlledString"]
}
],
"pulse-taint-sinks": [
{ "class_names": ["System.Data.Common.DbCommand"],
"method_names": ["set_CommandText"],
"kinds": ["SQLInjection"]
},
{ "class_names": ["System.Data.SqlClient.SqlCommand"],
"method_names": [".ctor"],
"kinds": ["SQLInjection"],
"taint_target": ["ArgumentPositions", [1]]
} ,
{ "class_names": ["System.Runtime.Serialization.Formatters.Binary.BinaryFormatter",
"System.Runtime.Deserialization.Formatters.Soap.SoapFormatter",
"System.Web.UI.ObjectStateFormatter",
"System.Runtime.Serialization.NetDataContractSerializer",
"System.Web.UI.LosFormatter",
"YamlDotNet.Serialization.Deserializer"],
"method_names": ["Deserialize"],
"kinds": ["Deserialization"]
},
{ "class_names": ["System.Runtime.Serialization.Formatters.Binary.BinaryFormatter"],
"method_names": ["UnsafeDeserialize", "UnsafeDeserializeMethodResponse"],
"kinds": ["Deserialization"]
},
{ "class_names": ["System.Runtime.Serialization.NetDataContractSerializer"],
"method_names": ["ReadObject"],
"kinds": ["Deserialization"]
},
{ "class_names": ["System.Windows.Markup.XamlReader",
"System.Workflow.ComponentModel.Activity"],
"method_names": ["Load", "LoadAsync", "Parse"],
"kinds": ["Deserialization"]
},
{ "class_names": ["System.Data.DataSet",
"System.Data.DataTable"],
"method_names": ["ReadXmlSchema", "ReadXml"],
"kinds": ["Deserialization"]
}
]
}