Class: WPScan::Finders::InterestingFindings::UploadDirectoryListing

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Defined in:
app/finders/interesting_findings/upload_directory_listing.rb

Overview

UploadDirectoryListing finder

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:

  • (InterestingFinding)


9
10
11
12
13
14
15
16
17
# File 'app/finders/interesting_findings/upload_directory_listing.rb', line 9

def aggressive(_opts = {})
  path = 'wp-content/uploads/'

  return unless target.directory_listing?(path)

  url = target.url(path)

  Model::UploadDirectoryListing.new(url, confidence: 100, found_by: DIRECT_ACCESS)
end