-
Notifications
You must be signed in to change notification settings - Fork 1
/
brakeman.html
199 lines (169 loc) · 3.3 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
<!DOCTYPE HTML SYSTEM>
<html>
<head>
<title>Brakeman Report</title>
<script>
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();
}
</script>
<style>
/* CSS style used for HTML reports */
body {
font-family: sans-serif;
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;
}
</style>
</head>
<body>
<h1>Brakeman Report</h1>
<table>
<tr>
<th>Application Path</th>
<th>Rails Version</th>
<th>Report Generation Time</th>
<th>Checks Performed</th>
</tr>
<tr>
<td>/Users/usutani/Development/Technology/Rails/narabi</td>
<td>3.2.6</td>
<td>2012-06-19 10:04:31 +0900</td>
<td>BasicAuth, CrossSiteScripting, DefaultRoutes, EscapeFunction, Evaluation, Execute, FileAccess, FilterSkipping, ForgerySetting, LinkTo, LinkToHref, MailTo, MassAssignment, ModelAttributes, NestedAttributes, QuoteTableName, Redirect, Render, ResponseSplitting, SQL, SafeBufferManipulation, SelectVulnerability, Send, SendFile, SessionSettings, SkipBeforeFilter, StripTags, TranslateBug, ValidationRegex, WithoutProtection</td>
</tr>
</table>
<br>
<h2 id='summary'>Summary</h2>
<table>
<tr>
<th>Scanned/Reported</th>
<th>Total</th>
</tr>
<tr>
<td>Controllers</td>
<td>6</td>
</tr>
<tr>
<td>Models</td>
<td>3</td>
</tr>
<tr>
<td>Templates</td>
<td>18</td>
</tr>
<tr>
<td>Errors</td>
<td>0</td>
</tr>
<tr>
<td>Security Warnings</td>
<td>0 <span class='high-confidence'>(0)</span></td>
</tr>
</table>
<br>
<table>
<tr>
<th>Warning Type</th>
<th>Total</th>
</tr>
</table>
<br>
<h2>Security Warnings</h2>
<table>
<tr>
<th>General Warnings</th>
</tr>
<tr>
<td>[NONE]</td>
</tr>
</table></body></html>