Skip to content

Commit cd734ac

Browse files
committed
[See RM 8114] - Reduce false positive if traffic is redirected
Fix complaint for hitting this false positive when the user has all the traffic redirected.
1 parent 0ef4b4c commit cd734ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/exploits/unix/webapp/basilic_diff_exec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ def check
7474
})
7575

7676
if res and res.body =~ /#{sig}/
77-
return Exploit::CheckCode::Vulnerable
77+
if res.code == 302
78+
# Some undesirable network setup not very friendly for vuln checks.
79+
# See RM8114.
80+
return Exploit::CheckCode::Unknown
81+
else
82+
return Exploit::CheckCode::Vulnerable
83+
end
7884
else
7985
return Exploit::CheckCode::Safe
8086
end

0 commit comments

Comments
 (0)