Top Level Namespace

Defined Under Namespace

Modules: Fluent Classes: PositionFile, Xray

Instance Method Summary collapse

Instance Method Details

#get_violations_details_testObject



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
# File 'lib/fluent/plugin/test_violations.rb', line 2

def get_violations_details_test()
  response = '{
                    "violation_id": "1710136527020015616",
                    "description": "Root access could be granted to a stranger",
                    "summary": "Custom issue 1",
                    "severity": "High",
                    "type": "Security",
                    "provider": "MB",
                    "infected_components": [
                        "generic://sha256:242fe18ca64a362e4088096447c8f815fb2aa2c569c5f342de1c82318eb4973a/artifact_1.zip"
                    ],
                    "created": "2023-10-06T03:34:55Z",
                    "watch_name": "test_all-repositories_7005086_security",
                    "matched_policies": [
                        {
                            "policy": "test_security_policy_7005086",
                            "rule": "securityRule",
                            "is_blocking": false
                        }
                    ],
                    "issue_id": "XRAYS1-artifact_1.zip7005086",
                    "properties": [
                        {
                            "cve": "CVE-2018-2000568",
                            "cvss_v2": "5.0/CVSS:2.0/AV:N/AC:L/Au:N/C:N/I:P/A:N"
                        }
                    ],
                    "impacted_artifacts": [
                        "mw-maven-repository-manager/inhouse_snapshot/com/mathworks/team/recruiting/recruiting/2.41.3-SNAPSHOT/recruiting-2.41.3-20230920.193355-4.war"
                    ],
                    "applicability": null
                }'
  resp_obj = JSON.parse(response)
  return resp_obj
end

#get_violations_testObject



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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/fluent/plugin/test_violations.rb', line 38

def get_violations_test()
  response = '{
                  "total_violations":54,
                  "violations":[
                    {
                      "description":"Apache Software Foundation (ASF) Struts before 1.2.9 allows remote attackers to bypass validation via a request with a org.apache.struts.taglib.html.Constants.CANCEL parameter, which causes the action to be canceled but would not be detected from applications that do not use the isCancelled check.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"maven-watch1",
                      "issue_id":"XRAY-55418",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=ff9cf61f42a095cd97ea0ec0&issue_id=XRAY-55418&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "mw-maven-repository-manager/inhouse_snapshot/com/mathworks/team/recruiting/recruiting/2.41.3-SNAPSHOT/recruiting-2.41.3-20230920.193355-4.war"
                      ]
                    },
                    {
                      "description":"The Apache Software License, Version 1.1",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"license-watch",
                      "issue_id":"Apache-1.1",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=Apache-1.1&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "default/maven-repo-1/struts/struts/1.1/struts-1.1.jar"
                      ]
                    },
                    {
                      "description":"The MultiPageValidator implementation in Apache Struts 1 1.1 through 1.3.10 allows remote attackers to bypass intended access restrictions via a modified page parameter.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"maven-watch1",
                      "issue_id":"XRAY-55648",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=ff9cf61f42a095cd97ea0ec0&issue_id=XRAY-55648&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "default/maven-repo-1/struts/struts/1.1/struts-1.1.jar"
                      ]
                    },
                    {
                      "description":"Cross-site scripting (XSS) vulnerability in Apache Struts before 1.2.9-162.31.1 on SUSE Linux Enterprise (SLE) 11, before 1.2.9-108.2 on SUSE openSUSE 10.3, before 1.2.9-198.2 on SUSE openSUSE 11.0, and before 1.2.9-162.163.2 on SUSE openSUSE 11.1 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors related to \"insufficient quoting of parameters.\"",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"maven-watch1",
                      "issue_id":"XRAY-55444",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=ff9cf61f42a095cd97ea0ec0&issue_id=XRAY-55444&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "default/maven-repo-1/struts/struts/1.1/struts-1.1.jar"
                      ]
                    },
                    {
                      "description":"Cross-site scripting (XSS) vulnerability in (1) LookupDispatchAction and possibly (2) DispatchAction and (3) ActionDispatcher in Apache Software Foundation (ASF) Struts before 1.2.9 allows remote attackers to inject arbitrary web script or HTML via the parameter name, which is not filtered in the resulting error message.",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"maven-watch1",
                      "issue_id":"XRAY-55420",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=ff9cf61f42a095cd97ea0ec0&issue_id=XRAY-55420&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "default/maven-repo-1/struts/struts/1.1/struts-1.1.jar"
                      ]
                    },
                    {
                      "description":"ActionForm in Apache Software Foundation (ASF) Struts before 1.2.9 with BeanUtils 1.7 allows remote attackers to cause a denial of service via a multipart/form-data encoded form with a parameter name that references the public getMultipartRequestHandler method, which provides further access to elements in the CommonsMultipartRequestHandler implementation and BeanUtils.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.1"
                      ],
                      "created":"2021-06-16T21:22:18Z",
                      "watch_name":"maven-watch1",
                      "issue_id":"XRAY-55419",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=ff9cf61f42a095cd97ea0ec0&issue_id=XRAY-55419&comp_id=gav:%2F%2Fstruts:struts:1.1",
                      "impacted_artifacts":[
                        "default/maven-repo-1/struts/struts/1.1/struts-1.1.jar"
                      ]
                    },
                    {
                      "description":"The MultiPageValidator implementation in Apache Struts 1 1.1 through 1.3.10 allows remote attackers to bypass intended access restrictions via a modified page parameter.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"maven-watch-2",
                      "issue_id":"XRAY-55648",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2a3ee020bf1a86b84d122c0c&issue_id=XRAY-55648&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"ActionForm in Apache Software Foundation (ASF) Struts before 1.2.9 with BeanUtils 1.7 allows remote attackers to cause a denial of service via a multipart/form-data encoded form with a parameter name that references the public getMultipartRequestHandler method, which provides further access to elements in the CommonsMultipartRequestHandler implementation and BeanUtils.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"maven-watch-2",
                      "issue_id":"XRAY-55419",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2a3ee020bf1a86b84d122c0c&issue_id=XRAY-55419&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"Cross-site scripting (XSS) vulnerability in (1) LookupDispatchAction and possibly (2) DispatchAction and (3) ActionDispatcher in Apache Software Foundation (ASF) Struts before 1.2.9 allows remote attackers to inject arbitrary web script or HTML via the parameter name, which is not filtered in the resulting error message.",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"maven-watch-2",
                      "issue_id":"XRAY-55420",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2a3ee020bf1a86b84d122c0c&issue_id=XRAY-55420&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"The Apache Software License, Version 2.0",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"license-watch",
                      "issue_id":"Apache-2.0",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=Apache-2.0&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"Cross-site scripting (XSS) vulnerability in Apache Struts before 1.2.9-162.31.1 on SUSE Linux Enterprise (SLE) 11, before 1.2.9-108.2 on SUSE openSUSE 10.3, before 1.2.9-198.2 on SUSE openSUSE 11.0, and before 1.2.9-162.163.2 on SUSE openSUSE 11.1 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors related to \"insufficient quoting of parameters.\"",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"maven-watch-2",
                      "issue_id":"XRAY-55444",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2a3ee020bf1a86b84d122c0c&issue_id=XRAY-55444&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"Apache Software Foundation (ASF) Struts before 1.2.9 allows remote attackers to bypass validation via a request with a org.apache.struts.taglib.html.Constants.CANCEL parameter, which causes the action to be canceled but would not be detected from applications that do not use the isCancelled check.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://struts:struts:1.2.4"
                      ],
                      "created":"2021-06-16T21:22:27Z",
                      "watch_name":"maven-watch-2",
                      "issue_id":"XRAY-55418",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2a3ee020bf1a86b84d122c0c&issue_id=XRAY-55418&comp_id=gav:%2F%2Fstruts:struts:1.2.4",
                      "impacted_artifacts":[
                        "default/maven-repo-2/struts/struts/1.2.4/struts-1.2.4.jar"
                      ]
                    },
                    {
                      "description":"Unicode Terms of Use",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:37Z",
                      "watch_name":"license-watch",
                      "issue_id":"Unicode-TOU",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=Unicode-TOU&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"BSD 3-Clause \"New\" or \"Revised\" License",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:37Z",
                      "watch_name":"license-watch",
                      "issue_id":"BSD-3-Clause",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=BSD-3-Clause&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"The Apache Software License, Version 2.0",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:37Z",
                      "watch_name":"license-watch",
                      "issue_id":"Apache-2.0",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=Apache-2.0&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"The OGNL extensive expression evaluation capability in XWork in Struts 2.0.0 through 2.1.8.1, as used in Atlassian Fisheye, Crucible, and possibly other products, uses a permissive whitelist, which allows remote attackers to modify server-side context objects and bypass the \"#\" protection mechanism in ParameterInterceptors via the (1) #context, (2) #_memberAccess, (3) #root, (4) #this, (5) #_typeResolver, (6) #_classResolver, (7) #_traceEvaluations, (8) #_lastEvaluation, (9) #_keepLastEvaluation, and possibly other OGNL context variables, a different vulnerability than CVE-2008-6504.",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:37Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-55471",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-55471&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Academic Free License v2.1",
                      "severity":"High",
                      "type":"License",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:37Z",
                      "watch_name":"license-watch",
                      "issue_id":"AFL-2.1",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=b241c1986818d68993093e35&issue_id=AFL-2.1&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"ParametersInterceptor in OpenSymphony XWork 2.0.x before 2.0.6 and 2.1.x before 2.1.2, as used in Apache Struts and other products, does not properly restrict # (pound sign) references to context objects, which allows remote attackers to execute Object-Graph Navigation Language (OGNL) statements and modify server-side context objects, as demonstrated by use of a \\u0023 representation for the # character.",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-55446",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-55446&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Multiple cross-site scripting (XSS) vulnerabilities in Apache Struts 2.0.x before 2.0.11.1 and 2.1.x before 2.1.1 allow remote attackers to inject arbitrary web script or HTML via vectors associated with improper handling of (1) \" (double quote) characters in the href attribute of an s:a tag and (2) parameters in the action attribute of an s:url tag.",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-55448",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-55448&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25.",
                      "severity":"Critical",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-129844",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-129844&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-55522",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-55522&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Apache Struts 2 before 2.3.14.3 allows remote attackers to execute arbitrary OGNL code via a request with a crafted value that contains both \"${}\" and \"%{}\" sequences, which causes the OGNL code to be evaluated twice.",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-55575",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-55575&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Apache Struts JSP Page Handling Unspecified XSS",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-81164",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-81164&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Apache Struts <s:textfield> Tag <s:include> Handling XSS",
                      "severity":"Medium",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-81187",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-81187&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    },
                    {
                      "description":"Apache Struts EL / OGNL Interpretation Unspecified Remote Code Execution",
                      "severity":"High",
                      "type":"Security",
                      "infected_components":[
                        "gav://org.apache.struts:struts2-core:2.0.9"
                      ],
                      "created":"2021-06-16T21:22:38Z",
                      "watch_name":"maven-watch-3",
                      "issue_id":"XRAY-87424",
                      "violation_details_url":"http://localhost:8046/xray/api/v1/violations?watch_id=2c5ecab8172f24086f4b3bf4&issue_id=XRAY-87424&comp_id=gav:%2F%2Forg.apache.struts:struts2-core:2.0.9",
                      "impacted_artifacts":[
                        "default/maven-repo-3/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar"
                      ]
                    }
                  ]
                }'
  resp_obj = JSON.parse(response)
  return resp_obj
end