rapid7/metasploit-framework

View on GitHub
modules/exploits/linux/ssh/f5_bigip_known_privkey.rb

Summary

Maintainability
A
3 hrs
Test Coverage

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

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'F5 BIG-IP SSH Private Key Exposure',
Severity: Minor
Found in modules/exploits/linux/ssh/f5_bigip_known_privkey.rb - About 2 hrs to fix

    Method do_login has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def do_login(user)
        opt_hash = ssh_client_defaults.merge({
          auth_methods: ['publickey'],
          port: rport,
          key_data: [ key_data ]
    Severity: Minor
    Found in modules/exploits/linux/ssh/f5_bigip_known_privkey.rb - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

          return false unless ssh_socket
      Severity: Major
      Found in modules/exploits/linux/ssh/f5_bigip_known_privkey.rb - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status