Sha256: e2773ce3eb63fe15431ced15b4f62ea2aee0e5ca4179962cc63cd1434f7d98c0
Contents?: true
Size: 648 Bytes
Versions: 20
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true 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) Model::UploadDirectoryListing.new( url, confidence: 100, found_by: DIRECT_ACCESS, to_s: "Upload directory has listing enabled: #{url}" ) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems