Sha256: ab379139db754e1d1fea4a749ce1dc0c7ba0e234eff69c510027c82a882680f6

Contents?: true

Size: 806 Bytes

Versions: 20

Compression:

Stored size: 806 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module InterestingFindings
      # wp-cron.php finder
      class WPCron < CMSScanner::Finders::Finder
        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          res = Browser.get(wp_cron_url)

          return unless res.code == 200

          Model::WPCron.new(
            wp_cron_url,
            confidence: 60,
            found_by: DIRECT_ACCESS,
            references: {
              url: [
                'https://www.iplocation.net/defend-wordpress-from-ddos',
                'https://github.com/wpscanteam/wpscan/issues/1299'
              ]
            }
          )
        end

        def wp_cron_url
          @wp_cron_url ||= target.url('wp-cron.php')
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wpscan-3.7.9 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.8 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.7 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.6 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.5 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.4 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.3 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.2 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.1 app/finders/interesting_findings/wp_cron.rb
wpscan-3.7.0 app/finders/interesting_findings/wp_cron.rb
wpscan-3.6.3 app/finders/interesting_findings/wp_cron.rb
wpscan-3.6.2 app/finders/interesting_findings/wp_cron.rb
wpscan-3.6.1 app/finders/interesting_findings/wp_cron.rb
wpscan-3.6.0 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.5 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.4 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.3 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.2 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.1 app/finders/interesting_findings/wp_cron.rb
wpscan-3.5.0 app/finders/interesting_findings/wp_cron.rb