rapid7/metasploit-framework

View on GitHub
modules/exploits/linux/http/webid_converter.rb

Summary

Maintainability
B
4 hrs
Test Coverage

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'WeBid converter.php Remote PHP Code Injection',
Severity: Major
Found in modules/exploits/linux/http/webid_converter.rb - About 2 hrs to fix

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

      def exploit
        uri = target_uri.path
        uri << '/' if uri[-1, 1] != '/'
        peer = "#{rhost}:#{rport}"
    
    
    Severity: Minor
    Found in modules/exploits/linux/http/webid_converter.rb - About 1 hr to fix

      Method on_new_session has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def on_new_session(client)
          peer = "#{client.peerhost}:#{client.peerport}"
      
          if client.type != "meterpreter"
            print_error("NOTE: you must use a meterpreter payload in order to automatically cleanup.")
      Severity: Minor
      Found in modules/exploits/linux/http/webid_converter.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status