rapid7/metasploit-framework

View on GitHub
modules/exploits/multi/http/webpagetest_upload_exec.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method initialize has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def initialize(info={})
    super(update_info(info,
      'Name'           => "WebPageTest Arbitrary PHP File Upload",
      'Description'    => %q{
          This module exploits a vulnerability found in WebPageTest's Upload Feature. By
Severity: Minor
Found in modules/exploits/multi/http/webpagetest_upload_exec.rb - About 1 hr to fix

    Method exploit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def exploit
        peer = "#{rhost}:#{rport}"
        uri = normalize_uri(target_uri.path)
        uri << '/' if uri[-1,1] != '/'
        base = File.dirname("#{uri}.")
    Severity: Minor
    Found in modules/exploits/multi/http/webpagetest_upload_exec.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status