Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/app/finders/interesting_findings/full_path_disclosure.rb
485 views
1
# frozen_string_literal: true
2
3
module WPScan
4
module Finders
5
module InterestingFindings
6
# Full Path Disclosure finder
7
class FullPathDisclosure < CMSScanner::Finders::Finder
8
# @return [ InterestingFinding ]
9
def aggressive(_opts = {})
10
path = 'wp-includes/rss-functions.php'
11
fpd_entries = target.full_path_disclosure_entries(path)
12
13
return if fpd_entries.empty?
14
15
Model::FullPathDisclosure.new(
16
target.url(path),
17
confidence: 100,
18
found_by: DIRECT_ACCESS,
19
interesting_entries: fpd_entries
20
)
21
end
22
end
23
end
24
end
25
end
26
27