Class: WPScan::Finders::InterestingFindings::FullPathDisclosure

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

Overview

Full Path Disclosure finder

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:

  • (InterestingFinding)


9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/finders/interesting_findings/full_path_disclosure.rb', line 9

def aggressive(_opts = {})
  path        = 'wp-includes/rss-functions.php'
  fpd_entries = target.full_path_disclosure_entries(path)

  return if fpd_entries.empty?

  Model::FullPathDisclosure.new(
    target.url(path),
    confidence: 100,
    found_by: DIRECT_ACCESS,
    interesting_entries: fpd_entries
  )
end