diff --git a/lib/msf/core/exploit/http.rb b/lib/msf/core/exploit/http.rb index e54f57f7cd..2f832bfd56 100644 --- a/lib/msf/core/exploit/http.rb +++ b/lib/msf/core/exploit/http.rb @@ -502,7 +502,9 @@ module Exploit::Remote::HttpServer # Returns the last-used resource path # def get_resource - @service_path + # We don't want modules modifying their service_path inadvertantly, so + # give them a dup. Can be nil during module setup. + @service_path ? @service_path.dup : nil end #