@@ -160,7 +160,8 @@ def log_fingerprint( opts = {} )
160
160
vhash = [ target . to_url , opts [ :fingerprint ] , mode , opts [ :location ] ] .
161
161
map { |x | x . to_s } . join ( '|' ) . hash
162
162
163
- return if parent . vulns . include? ( vhash )
163
+ parent . vulns [ mode ] ||= { }
164
+ return if parent . vulns [ mode ] . include? ( vhash )
164
165
165
166
location = opts [ :location ] ?
166
167
page . url . merge ( URI ( opts [ :location ] . to_s ) ) : page . url
@@ -182,7 +183,7 @@ def log_fingerprint( opts = {} )
182
183
}
183
184
184
185
info [ :confidence ] = calculate_confidence ( info )
185
- parent . vulns [ vhash ] = info
186
+ parent . vulns [ mode ] [ vhash ] = info
186
187
187
188
report_web_vuln ( info )
188
189
@@ -195,7 +196,8 @@ def log_resource( opts = {} )
195
196
vhash = [ target . to_url , mode , opts [ :location ] ] .
196
197
map { |x | x . to_s } . join ( '|' ) . hash
197
198
198
- return if parent . vulns . include? ( vhash )
199
+ parent . vulns [ mode ] ||= { }
200
+ return if parent . vulns [ mode ] . include? ( vhash )
199
201
200
202
location = URI ( opts [ :location ] . to_s )
201
203
info = {
@@ -215,7 +217,7 @@ def log_resource( opts = {} )
215
217
}
216
218
217
219
info [ :confidence ] = calculate_confidence ( info )
218
- parent . vulns [ vhash ] = info
220
+ parent . vulns [ mode ] [ vhash ] = info
219
221
220
222
report_web_vuln ( info )
221
223
@@ -237,7 +239,7 @@ def process_vulnerability( element, proof, opts = {} )
237
239
:params => element . params . to_a ,
238
240
:mode => mode ,
239
241
:pname => element . altered ,
240
- :proof => proof ,
242
+ :proof => proof . to_s ,
241
243
:form => element . model ,
242
244
:risk => details [ :risk ] ,
243
245
:name => details [ :name ] ,
@@ -266,7 +268,7 @@ def process_vulnerability( element, proof, opts = {} )
266
268
:method => element . method . to_s . upcase ,
267
269
:params => element . params . to_a ,
268
270
:pname => element . altered ,
269
- :proof => proof ,
271
+ :proof => proof . to_s ,
270
272
:risk => details [ :risk ] ,
271
273
:name => details [ :name ] ,
272
274
:blame => details [ :blame ] ,
0 commit comments