-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathSARIF.json
More file actions
159 lines (159 loc) · 4.15 KB
/
Copy pathSARIF.json
File metadata and controls
159 lines (159 loc) · 4.15 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"runs": [
{
"results": [
{
"level": "error",
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "bindata.go"
},
"region": {
"endColumn": 15,
"endLine": 41,
"snippet": {
"text": "arg0 := byte(args[0].Uint())"
},
"sourceLanguage": "go",
"startColumn": 15,
"startLine": 41
}
}
}
],
"message": {
"text": "integer overflow conversion uint64 -\u003e byte"
},
"ruleId": "G115",
"suppressions": [
{
"justification": "args[0] was constructed with reflect type byteType, so\nits Kind is always Uint8 and Uint() can only return a byte-range value.",
"kind": "inSource"
}
]
},
{
"level": "error",
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "bsondump.go"
},
"region": {
"endColumn": 64,
"endLine": 245,
"snippet": {
"text": "fmt.Fprintf(out, \"%v\\t\\t\\ttype: %4d size: %v\\n\", indent, int8(value.Type), len(rawElem))"
},
"sourceLanguage": "go",
"startColumn": 64,
"startLine": 245
}
}
}
],
"message": {
"text": "integer overflow conversion byte -\u003e int8"
},
"ruleId": "G115",
"suppressions": [
{
"justification": "the bson.Type type always fits in an int8",
"kind": "inSource"
}
]
}
],
"taxonomies": [
{
"downloadUri": "https://cwe.mitre.org/data/xml/cwec_v4.4.xml.zip",
"guid": "f2856fc0-85b7-373f-83e7-6f8582243547",
"informationUri": "https://cwe.mitre.org/data/published/cwe_v4.4.pdf/",
"isComprehensive": true,
"language": "en",
"minimumRequiredLocalizedDataSemanticVersion": "4.4",
"name": "CWE",
"organization": "MITRE",
"releaseDateUtc": "2021-03-15",
"shortDescription": {
"text": "The MITRE Common Weakness Enumeration"
},
"taxa": [
{
"fullDescription": {
"text": "The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control."
},
"guid": "c71e4fa0-720e-3e82-8b67-b2d44d0c604b",
"helpUri": "https://cwe.mitre.org/data/definitions/190.html",
"id": "190",
"shortDescription": {
"text": "Integer Overflow or Wraparound"
}
}
],
"version": "4.4"
}
],
"tool": {
"driver": {
"guid": "8b518d5f-906d-39f9-894b-d327b1a421c5",
"informationUri": "https://github.com/securego/gosec/",
"name": "gosec",
"rules": [
{
"defaultConfiguration": {
"level": "error"
},
"fullDescription": {
"text": "integer overflow conversion uint64 -\u003e byte"
},
"help": {
"text": "integer overflow conversion uint64 -\u003e byte\nSeverity: HIGH\nConfidence: MEDIUM\n"
},
"id": "G115",
"name": "Integer Overflow or Wraparound",
"properties": {
"precision": "medium",
"tags": [
"security",
"HIGH"
]
},
"relationships": [
{
"kinds": [
"superset"
],
"target": {
"guid": "c71e4fa0-720e-3e82-8b67-b2d44d0c604b",
"id": "190",
"toolComponent": {
"guid": "f2856fc0-85b7-373f-83e7-6f8582243547",
"name": "CWE"
}
}
}
],
"shortDescription": {
"text": "integer overflow conversion uint64 -\u003e byte"
}
}
],
"semanticVersion": "2.27.1",
"supportedTaxonomies": [
{
"guid": "f2856fc0-85b7-373f-83e7-6f8582243547",
"name": "CWE"
}
],
"version": "2.27.1"
}
}
}
],
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/main/sarif-2.1/schema/sarif-schema-2.1.0.json",
"version": "2.1.0"
}