forked from PGCSEDS-IIITH/devsecops-iris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresults.sariff
More file actions
89 lines (89 loc) · 2.5 KB
/
results.sariff
File metadata and controls
89 lines (89 loc) · 2.5 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
{
"runs": [
{
"tool": {
"driver": {
"name": "Bandit",
"rules": [
{
"id": "B104",
"name": "hardcoded_bind_all_interfaces",
"helpUri": "https://bandit.readthedocs.io/en/latest/plugins/b104_hardcoded_bind_all_interfaces.html"
}
]
}
},
"invocations": [
{
"executionSuccessful": true,
"endTimeUtc": "2021-09-25T13:05:38Z"
}
],
"properties": {
"metrics": {
"_totals": {
"loc": 33,
"nosec": 0,
"SEVERITY.UNDEFINED": 0.0,
"CONFIDENCE.UNDEFINED": 0.0,
"SEVERITY.LOW": 0.0,
"CONFIDENCE.LOW": 0.0,
"SEVERITY.MEDIUM": 1.0,
"CONFIDENCE.MEDIUM": 1.0,
"SEVERITY.HIGH": 0.0,
"CONFIDENCE.HIGH": 0.0
},
"./main.py": {
"loc": 33,
"nosec": 0,
"SEVERITY.UNDEFINED": 0.0,
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 1.0,
"SEVERITY.HIGH": 0.0,
"CONFIDENCE.UNDEFINED": 0.0,
"CONFIDENCE.LOW": 0.0,
"CONFIDENCE.MEDIUM": 1.0,
"CONFIDENCE.HIGH": 0.0
}
}
},
"results": [
{
"message": {
"text": "Possible binding to all interfaces."
},
"locations": [
{
"physicalLocation": {
"region": {
"snippet": {
"text": " uvicorn.run(\"main:app\", host=\"0.0.0.0\", port=8888, reload=True)\n"
},
"startLine": 64
},
"artifactLocation": {
"uri": "main.py"
},
"contextRegion": {
"snippet": {
"text": " # Uvicorn is used to run the server and listen for incoming API requests on 0.0.0.0:8888\n uvicorn.run(\"main:app\", host=\"0.0.0.0\", port=8888, reload=True)\n"
},
"endLine": 64,
"startLine": 63
}
}
}
],
"properties": {
"issue_confidence": "MEDIUM",
"issue_severity": "MEDIUM"
},
"ruleId": "B104",
"ruleIndex": 0
}
]
}
],
"version": "2.1.0",
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.4.json"
}