Auxiliary::Web: log methods pass vuln info to parent

bug/bundler_fix
Tasos Laskos 2013-03-06 18:25:25 +02:00
parent 628f7ef4f3
commit c497d5ffef
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,6 @@ module Auxiliary::Web
map { |x| x.to_s }.join( '|' ).hash map { |x| x.to_s }.join( '|' ).hash
return if parent.vulns.include?( vhash ) return if parent.vulns.include?( vhash )
parent.vulns[vhash] = true
location = opts[:location] ? location = opts[:location] ?
page.url.merge( URI( opts[:location].to_s )) : page.url page.url.merge( URI( opts[:location].to_s )) : page.url
@ -183,6 +182,7 @@ module Auxiliary::Web
} }
info[:confidence] = calculate_confidence( info ) info[:confidence] = calculate_confidence( info )
parent.vulns[vhash] = info
report_web_vuln( info ) report_web_vuln( info )
@ -196,7 +196,6 @@ module Auxiliary::Web
map { |x| x.to_s }.join( '|' ).hash map { |x| x.to_s }.join( '|' ).hash
return if parent.vulns.include?( vhash ) return if parent.vulns.include?( vhash )
parent.vulns[vhash] = true
location = URI( opts[:location].to_s ) location = URI( opts[:location].to_s )
info = { info = {
@ -216,6 +215,7 @@ module Auxiliary::Web
} }
info[:confidence] = calculate_confidence( info ) info[:confidence] = calculate_confidence( info )
parent.vulns[vhash] = info
report_web_vuln( info ) report_web_vuln( info )