-
Notifications
You must be signed in to change notification settings - Fork 0
/
brakeman.html
263 lines (223 loc) · 5.42 KB
/
brakeman.html
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
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
<!DOCTYPE HTML SYSTEM>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Brakeman Report</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
function toggle(context) {
var elem = document.getElementById(context);
if (elem.style.display != "block")
elem.style.display = "block";
else
elem.style.display = "none";
elem.parentNode.scrollIntoView();
}
$(document).ready(function() {
$('table').DataTable({
searching: false,
paging: false,
info: false
});
});
</script>
<style>
/* CSS style used for HTML reports */
body {
font-family: sans-serif;
color: #161616;
}
a {
color: #161616;
}
p {
font-weight: bold;
font-size: 11pt;
color: #2D0200;
}
th {
background-color: #980905;
border-bottom: 5px solid #530200;
color: white;
font-size: 11pt;
padding: 1px 8px 1px 8px;
}
td {
border-bottom: 2px solid white;
font-family: monospace;
padding: 5px 8px 1px 8px;
}
table {
background-color: #FCF4D4;
border-collapse: collapse;
}
h1 {
color: #2D0200;
font-size: 14pt;
}
h2 {
color: #2D0200;
font-size: 12pt;
}
span.high-confidence {
font-weight:bold;
color: red;
}
span.med-confidence {
}
span.weak-confidence {
color:gray;
}
div.warning_message {
cursor: pointer;
}
div.warning_message:hover {
background-color: white;
}
table caption {
background-color: #FFE;
padding: 2px;
}
table.context {
margin-top: 5px;
margin-bottom: 5px;
border-left: 1px solid #90e960;
color: #212121;
}
tr.context {
background-color: white;
}
tr.first {
border-top: 1px solid #7ecc54;
padding-top: 2px;
}
tr.error {
background-color: #f4c1c1 !important
}
tr.near_error {
background-color: #f4d4d4 !important
}
tr.alt {
background-color: #e8f4d4;
}
td.context {
padding: 2px 10px 0px 6px;
border-bottom: none;
}
td.context_line {
padding: 2px 8px 0px 7px;
border-right: 1px solid #b3bda4;
border-bottom: none;
color: #6e7465;
}
pre.context {
margin-bottom: 1px;
}
.user_input {
background-color: #fcecab;
}
div.render_path {
display: none;
background-color: #ffe;
padding: 5px;
margin: 2px 0px 2px 0px;
}
div.template_name {
cursor: pointer;
}
div.template_name:hover {
background-color: white;
}
span.code {
font-family: monospace;
}
span.filename {
font-family: monospace;
}
</style>
</head>
<body>
<h1>Brakeman Report</h1>
<table>
<thead>
<tr>
<th>Application Path</th>
<th>Rails Version</th>
<th>Brakeman Version</th>
<th>Report Time</th>
<th>Checks Performed</th>
</tr>
</thead>
<tbody>
<tr>
<td>/home/euklid/carrerFoundry Web Dev Course/nameofapp</td>
<td>5.2.2</td>
<td>4.4.0
<td>
2019-02-27 18:00:18 +0100<br><br>
0.518446448 seconds
</td>
<td>BasicAuth, BasicAuthTimingAttack, ContentTag, CreateWith, CrossSiteScripting, DefaultRoutes, Deserialize, DetailedExceptions, DigestDoS, DynamicFinders, EscapeFunction, Evaluation, Execute, FileAccess, FileDisclosure, FilterSkipping, ForgerySetting, HeaderDoS, I18nXSS, JRubyXML, JSONEncoding, JSONParsing, LinkTo, LinkToHref, MailTo, MassAssignment, MimeTypeDoS, ModelAttrAccessible, ModelAttributes, ModelSerialize, NestedAttributes, NestedAttributesBypass, NumberToCurrency, PermitAttributes, QuoteTableName, Redirect, RegexDoS, Render, RenderDoS, RenderInline, ResponseSplitting, RouteDoS, SQL, SQLCVEs, SSLVerify, SafeBufferManipulation, SanitizeMethods, SelectTag, SelectVulnerability, Send, SendFile, SessionManipulation, SessionSettings, SimpleFormat, SingleQuotes, SkipBeforeFilter, SprocketsPathTraversal, StripTags, SymbolDoSCVE, TranslateBug, UnsafeReflection, ValidationRegex, WithoutProtection, XMLDoS, YAMLParsing</td>
</tr>
</tbody>
</table>
<br>
<h2 id='summary'>Summary</h2>
<table>
<thead>
<tr>
<th>Scanned/Reported</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>Controllers</td>
<td>8</td>
</tr>
<tr>
<td>Models</td>
<td>6</td>
</tr>
<tr>
<td>Templates</td>
<td>40</td>
</tr>
<tr>
<td>Errors</td>
<td>1</td>
</tr>
<tr>
<td>Security Warnings</td>
<td>0 <span class='high-confidence'>(0)</span></td>
</tr>
<tr>
<td>Ignored Warnings</td>
<td>0</td>
</tr>
</tbody>
</table>
<br>
<div onClick="toggle('errors_table');"> <h2>Exceptions raised during the analysis (click to see them)</h2 ></div>
<div>
<div id='errors_table' style='display:none'>
<table>
<thead>
<tr>
<th>Error</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>/home/euklid/carrerFoundry Web Dev Course/nameofapp/app/views/devise/passwords/edit.html.erb:3 :: parse error on value ":" (tCOLON)</td>
<td>
Could not parse /home/euklid/carrerFoundry Web Dev Course/nameofapp/app/views/devise/passwords/edit.html.erb
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body></html>