rapid7/metasploit-framework

View on GitHub

Showing 15,730 of 21,757 total issues

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 CheckCode::Appears if revision.to_i < 17
    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::Safe
      Severity: Major
      Found in modules/exploits/linux/http/webmin_backdoor.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 [true, "Successfully deescalated privileges by removing #{@role_to_add}"]
          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("#{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 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 CheckCode::Unknown("Failed to obtain a valid OpenTSDB version: #{e}")
                Severity: Major
                Found in modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return CheckCode::Detected('Version unknown') unless matches && matches.length > 1
                  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::Appears if revision.to_i < 2
                    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 xml_doc_or_check_code unless success # in this case xml_doc_or_check_code is a CheckCode so we can return it directly
                      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::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 [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 CheckCode::Appears if revision.to_i < 1
                            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::Safe
                              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 [true]
                                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, 'Failed to parse the users.xml file while attempting to deescalate privileges. Manual cleanup is required.']
                                  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
                                    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 Exploit::CheckCode::Unknown
                                      Severity: Major
                                      Found in modules/exploits/linux/http/supervisor_xmlrpc_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/symantec_smg_ssh.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language