Sha256: 8a185cd90eed8a2738204a5d9a3383bf18569d49e20313dac9af1404b763409f
Contents?: true
Size: 614 Bytes
Versions: 15
Compression:
Stored size: 614 Bytes
Contents
module WPScan module Finders module InterestingFindings # UploadDirectoryListing finder class UploadDirectoryListing < CMSScanner::Finders::Finder # @return [ InterestingFinding ] def aggressive(_opts = {}) path = 'wp-content/uploads/' return unless target.directory_listing?(path) url = target.url(path) WPScan::InterestingFinding.new( url, confidence: 100, found_by: DIRECT_ACCESS, to_s: "Upload directory has listing enabled: #{url}" ) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems