Sha256: 2405fc8091c591049791dfa8058581d0ac2b0824a42d2068282b00e75d647e9b

Contents?: true

Size: 576 Bytes

Versions: 15

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module InterestingFindings
      # See https://github.com/wpscanteam/wpscan/issues/1593
      class PHPDisabled < CMSScanner::Finders::Finder
        PATTERN = /\$wp_version =/.freeze

        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          path = 'wp-includes/version.php'

          return unless PATTERN.match?(target.head_and_get(path).body)

          Model::PHPDisabled.new(target.url(path), confidence: 100, found_by: DIRECT_ACCESS)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wpscan-3.8.28 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.27 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.26 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.25 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.24 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.22 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.21 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.20 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.19 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.18 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.17 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.16 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.15 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.14 app/finders/interesting_findings/php_disabled.rb
wpscan-3.8.13 app/finders/interesting_findings/php_disabled.rb