rapid7/metasploit-framework

View on GitHub

Showing 16,065 of 22,177 total issues

Avoid too many return statements within this method.
Open

        return [true, 'Received expected response while triggering the payload. Please be patient, it may take a few seconds for the payload to execute.']
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 Exploit::CheckCode::Safe
      Severity: Major
      Found in modules/exploits/linux/http/dlink_hnap_bof.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return [false, "Received unexpected response while attempting to trigger the notification. The payload likely wasn't executed."]
        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 deal_with_failure_by_mode(mode, "Received unexpected reply while attempting to #{deescalate ? 'deescalate' : 'escalate'} privileges", '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
            Severity: Major
            Found in modules/exploits/linux/http/panos_readsessionvars.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return deal_with_failure_by_mode(mode, message, '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
                Severity: Major
                Found in modules/exploits/linux/http/panos_readsessionvars.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return privs_or_check_code 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 CheckCode::Appears(
                            "Netsweeper #{version} is a vulnerable version."
                          )
                    Severity: Major
                    Found in modules/exploits/linux/http/netsweeper_webadmin_unixlogin.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return CheckCode::Safe("User #{username} does not have the required privileges for exploitation to work.")
                      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
                        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, message] unless success # this is only used for cleanup. for exploit this cannot happen
                          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 CheckCode::Unknown("Failed to obtain a valid OpenNMS version: #{e}")
                            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 CheckCode::Appears if revision.to_i < 3
                              Severity: Major
                              Found in modules/exploits/linux/http/bitbucket_git_cmd_injection.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return CheckCode::Detected
                                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 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_vmpro_backdoor.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return CheckCode::Unknown("#{peer} - Could not connect to web service")
                                      Severity: Major
                                      Found in modules/exploits/linux/http/webmin_package_updates_rce.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                            return Exploit::CheckCode::Vulnerable("Successfully executed the 'id' command.") unless result.nil? || result[/uid=.+ gid=.+ groups=.+/].nil?
                                        Severity: Major
                                        Found in modules/exploits/linux/redis/redis_debian_sandbox_escape.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language