rapid7/metasploit-framework

View on GitHub

Showing 15,831 of 21,886 total issues

Avoid too many return statements within this method.
Open

      return Rex::Version.new(@glinet['firmware']) == Rex::Version.new('4.3.8')
Severity: Major
Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          return Rex::Version.new(@glinet['firmware']) >= Rex::Version.new('4.0.0') && Rex::Version.new(@glinet['firmware']) < Rex::Version.new('4.5.0')
    Severity: Major
    Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return CheckCode::Safe("The target is Cacti version #{version}")
      Severity: Major
      Found in modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return nil if potential_targets.empty?
        Severity: Major
        Found in modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return Rex::Version.new(@glinet['firmware']) >= Rex::Version.new('4.0.0') && Rex::Version.new(@glinet['firmware']) < Rex::Version.new('4.5.0')
          Severity: Major
          Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.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/nagios_xi_mibs_authenticated_rce.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                    return Rex::Version.new(@glinet['firmware']) >= Rex::Version.new('4.5.0') && Rex::Version.new(@glinet['firmware']) <= Rex::Version.new('4.5.3')
              Severity: Major
              Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.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/vinchin_backup_recovery_cmd_inject.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                        return Rex::Version.new(@glinet['firmware']) >= Rex::Version.new('4.0.0') && Rex::Version.new(@glinet['firmware']) <= Rex::Version.new('4.4.2')
                  Severity: Major
                  Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                          return res_cmd_output
                    Severity: Major
                    Found in modules/exploits/linux/http/optergy_bms_backdoor_rce_cve_2019_7276.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return CheckCode::Unknown("Failed to obtain a valid Cacti version: #{e}")
                      Severity: Major
                      Found in modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                              return Rex::Version.new(@glinet['firmware']) == Rex::Version.new('4.3.8')
                        Severity: Major
                        Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return CheckCode::Safe

                            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
                              Severity: Major
                              Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return Exploit::CheckCode::Safe("#{peer} - Unexpected response, unable to determine version")
                                Severity: Major
                                Found in modules/exploits/linux/http/kibana_upgrade_assistant_telemetry_rce.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return CheckCode::Appears("Exploitable Version Detected: #{@version}")
                                  Severity: Major
                                  Found in modules/exploits/linux/http/kibana_upgrade_assistant_telemetry_rce.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return Rex::Version.new(@glinet['firmware']) >= Rex::Version.new('4.0.0') && Rex::Version.new(@glinet['firmware']) <= Rex::Version.new('4.4.3')
                                    Severity: Major
                                    Found in modules/exploits/linux/http/glinet_unauth_rce_cve_2023_50445.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return Exploit::CheckCode::Safe("#{peer} - Unexpected response, unable to determine version") if json_body['version'].nil?
                                      Severity: Major
                                      Found in modules/exploits/linux/http/kibana_upgrade_assistant_telemetry_rce.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                  return [h_id, ld_id]
                                        Severity: Major
                                        Found in modules/exploits/linux/http/cacti_unauthenticated_cmd_injection.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language