lib/tasks/vulns/exchange_cve_2020_0688.rb
## Default method, subclasses must override this
Default method, subclasses must override this
Default method subclasses must override this
def run
    super
    require_enrichment
    fingerprint = _get_entity_detail("fingerprint")
    if is_product?(fingerprint, "Exchange Server")
      if is_vulnerable_version?(fingerprint) 
        check_url = "#{_get_entity_name}/ecp/default.aspx"
        response = http_request(:get, check_url)
        if response.body =~ /<title>Exchange Admin Center/
          _create_linked_issue("vulnerability_exchange_cve_2020_0688")
        end
      end
    end 
  end
def run super require_enrichment fingerprint = _get_entity_detail ( "fingerprint" ) if is_product? ( fingerprint , "Exchange Server" ) if is_vulnerable_version? ( fingerprint ) check_url = "#{_get_entity_name}/ecp/default.aspx" response = http_request ( :get , check_url ) if response . body =~ / <title>Exchange Admin Center / _create_linked_issue ( "vulnerability_exchange_cve_2020_0688" ) end end end end
Default method, subclasses must override this
Default method subclasses must override this
# first, ensure we're fingerprinted # check to see if the vulnerable path is available