Sha256: 302c7d93ef7be14e6c135829078e12931cf6834a41b63f73732cfedb4b73f516

Contents?: true

Size: 662 Bytes

Versions: 29

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module InterestingFindings
      # Emergency Password Reset Script finder
      class EmergencyPwdResetScript < CMSScanner::Finders::Finder
        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          path = 'emergency.php'
          res  = target.head_and_get(path)

          return unless res.code == 200 && !target.homepage_or_404?(res)

          Model::EmergencyPwdResetScript.new(
            target.url(path),
            confidence: /password/i.match?(res.body) ? 100 : 40,
            found_by: DIRECT_ACCESS
          )
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
wpscan-3.8.27 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.26 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.25 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.24 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.22 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.21 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.20 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.19 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.18 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.17 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.16 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.15 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.14 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.13 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.12 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.11 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.10 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.9 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.8 app/finders/interesting_findings/emergency_pwd_reset_script.rb
wpscan-3.8.7 app/finders/interesting_findings/emergency_pwd_reset_script.rb