Sha256: 76fe0e86a99d600618b384f93d172ec74caa3acb3a9a2a326a05f05e3d9b277f

Contents?: true

Size: 763 Bytes

Versions: 20

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module InterestingFindings
      # BackupDB finder
      class BackupDB < CMSScanner::Finders::Finder
        # @return [ InterestingFinding ]
        def aggressive(_opts = {})
          path = 'wp-content/backup-db/'
          res  = target.head_and_get(path, [200, 403])

          return unless [200, 403].include?(res.code) && !target.homepage_or_404?(res)

          Model::BackupDB.new(
            target.url(path),
            confidence: 70,
            found_by: DIRECT_ACCESS,
            interesting_entries: target.directory_listing_entries(path),
            references: { url: 'https://github.com/wpscanteam/wpscan/issues/422' }
          )
        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/backup_db.rb
wpscan-3.7.8 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.7 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.6 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.5 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.4 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.3 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.2 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.1 app/finders/interesting_findings/backup_db.rb
wpscan-3.7.0 app/finders/interesting_findings/backup_db.rb
wpscan-3.6.3 app/finders/interesting_findings/backup_db.rb
wpscan-3.6.2 app/finders/interesting_findings/backup_db.rb
wpscan-3.6.1 app/finders/interesting_findings/backup_db.rb
wpscan-3.6.0 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.5 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.4 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.3 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.2 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.1 app/finders/interesting_findings/backup_db.rb
wpscan-3.5.0 app/finders/interesting_findings/backup_db.rb