rapid7/metasploit-framework

View on GitHub

Showing 16,139 of 22,252 total issues

Avoid too many return statements within this method.
Open

        return deal_with_failure_by_mode(mode, "Failed to parse the users.xml file while attempting to #{deescalate ? 'deescalate' : 'escalate'} privileges: #{e}", 'unexpected_reply')
Severity: Major
Found in modules/exploits/linux/http/opennms_horizon_authenticated_rce.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

        return [false, privs_or_msg] unless success
    Severity: Major
    Found in modules/exploits/linux/http/opennms_horizon_authenticated_rce.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return nil
      Severity: Major
      Found in modules/exploits/linux/ssh/quantum_dxi_known_privkey.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return Exploit::CheckCode::Safe("The reported version is unaffected: #{redis_version}") if Rex::Version.new(redis_version) >= Rex::Version.new('6.1.0')
        Severity: Major
        Found in modules/exploits/linux/redis/redis_debian_sandbox_escape.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return conn
          Severity: Major
          Found in modules/exploits/linux/ssh/ceragon_fibeair_known_privkey.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                  return CheckCode::Safe
            Severity: Major
            Found in modules/exploits/linux/ssh/vyos_restricted_shell_privesc.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return CheckCode::Appears
              Severity: Major
              Found in modules/exploits/linux/samba/is_known_pipename.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                    return Exploit::CheckCode::Safe("The reported version is unaffected: #{redis_version}") if Rex::Version.new(redis_version) < Rex::Version.new('5.0.0')
                Severity: Major
                Found in modules/exploits/linux/redis/redis_debian_sandbox_escape.rb - About 30 mins 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

                    Avoid too many return statements within this method.
                    Open

                        return nil
                    Severity: Major
                    Found in modules/exploits/linux/ssh/quantum_vmpro_backdoor.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return conn
                      Severity: Major
                      Found in modules/exploits/linux/ssh/quantum_dxi_known_privkey.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                            return nil
                        Severity: Major
                        Found in modules/exploits/linux/ssh/symantec_smg_ssh.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                  return conn
                            Severity: Major
                            Found in modules/exploits/linux/ssh/exagrid_known_privkey.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                    return conn
                              Severity: Major
                              Found in modules/exploits/linux/ssh/vmware_vdp_known_privkey.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return CheckCode::Appears
                                Severity: Major
                                Found in modules/exploits/linux/smtp/apache_james_exec.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return nil
                                  Severity: Major
                                  Found in modules/exploits/linux/ssh/loadbalancerorg_enterprise_known_privkey.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return nil
                                    Severity: Major
                                    Found in modules/exploits/linux/ssh/vmware_vrni_known_privkey.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return nil
                                      Severity: Major
                                      Found in modules/exploits/linux/ssh/loadbalancerorg_enterprise_known_privkey.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return conn
                                        Severity: Major
                                        Found in modules/exploits/linux/ssh/symantec_smg_ssh.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language