Class: WPScan::Finders::Users::YoastSeoAuthorSitemap

Inherits:
AuthorSitemap show all
Defined in:
app/finders/users/yoast_seo_author_sitemap.rb

Overview

The YOAST SEO plugin has an author-sitemap.xml which can leak usernames See github.com/wpscanteam/wpscan/issues/1228

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Instance Method Summary collapse

Methods inherited from AuthorSitemap

#aggressive

Methods inherited from Finder

#aggressive, #browser, #create_progress_bar, #found_by, #hydra, #initialize, #passive, #titleize

Constructor Details

This class inherits a constructor from WPScan::Finders::Finder

Instance Method Details

#sitemap_urlString

Returns The URL of the author-sitemap.

Returns:

  • (String)

    The URL of the author-sitemap



10
11
12
# File 'app/finders/users/yoast_seo_author_sitemap.rb', line 10

def sitemap_url
  @sitemap_url ||= target.url('author-sitemap.xml')
end