rapid7/metasploit-framework

View on GitHub

Showing 15,730 of 21,757 total issues

Avoid too many return statements within this method.
Open

      return Rex::Version.new(@d_link['firmware']) <= Rex::Version.new('2.03') && @d_link['hardware'][0] == 'B'
Severity: Major
Found in modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          return Rex::Version.new(@d_link['firmware']) <= Rex::Version.new('2.05') && @d_link['hardware'][0] == 'B'
    Severity: Major
    Found in modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return CheckCode::Detected("Product info: #{@d_link['product']}|#{@d_link['firmware']}|#{@d_link['hardware']}|#{@d_link['arch']}") unless @d_link['product'].nil?
      Severity: Major
      Found in modules/exploits/linux/upnp/dlink_upnp_msearch_exec.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return true
        Severity: Major
        Found in modules/exploits/linux/local/overlayfs_priv_esc.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return CheckCode::Appears("Version of runc detected appears to be vulnerable: #{unfiltered_version}.")
          Severity: Major
          Found in modules/exploits/linux/local/runc_cwd_priv_esc.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return true
            Severity: Major
            Found in modules/exploits/linux/local/overlayfs_priv_esc.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return CheckCode::Detected("#{suid_exe_path} is not readable") unless readable?(suid_exe_path)
              Severity: Major
              Found in modules/exploits/linux/local/glibc_origin_expansion_priv_esc.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                      return CheckCode::Appears # ("The kernel #{version} appears to be vulnerable, but no offsets are available for this version")
                Severity: Major
                Found in modules/exploits/linux/local/netfilter_nft_set_elem_init_privesc.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return false
                  Severity: Major
                  Found in modules/exploits/linux/local/overlayfs_priv_esc.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/local/asan_suid_executable_priv_esc.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return CheckCode::Safe('Kernel config does not include CONFIG_USER_NS')
                      Severity: Major
                      Found in modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return false
                        Severity: Major
                        Found in modules/exploits/linux/local/overlayfs_priv_esc.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return CheckCode::Safe("System architecture #{arch} is not supported") unless arch.include?('x86_64')
                          Severity: Major
                          Found in modules/exploits/linux/local/netfilter_nft_set_elem_init_privesc.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                      return false
                            Severity: Major
                            Found in modules/exploits/linux/local/overlayfs_priv_esc.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                    return CheckCode::Safe("System has less than #{min_required_cores} CPU cores")
                              Severity: Major
                              Found in modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return CheckCode::Unknown('Could not retrieve kernel config')
                                Severity: Major
                                Found in modules/exploits/linux/local/af_packet_chocobo_root_priv_esc.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return CheckCode::Vulnerable
                                  Severity: Major
                                  Found in modules/exploits/linux/local/cve_2021_4034_pwnkit_lpe_pkexec.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                        return CheckCode::Safe('The target does not appear vulnerable')
                                    Severity: Major
                                    Found in modules/exploits/linux/local/cve_2021_4034_pwnkit_lpe_pkexec.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return CheckCode::Safe("zysudo.suid copy failed. System version: #{model_id}, #{firmware_ver}")
                                      Severity: Major
                                      Found in modules/exploits/linux/local/zyxel_suid_cp_lpe.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return CheckCode::Safe('Check method only available for Debian/Ubuntu systems')
                                        Severity: Major
                                        Found in modules/exploits/linux/local/runc_cwd_priv_esc.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language