Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/app/finders/users/yoast_seo_author_sitemap.rb
485 views
1
# frozen_string_literal: true
2
3
module WPScan
4
module Finders
5
module Users
6
# The YOAST SEO plugin has an author-sitemap.xml which can leak usernames
7
# See https://github.com/wpscanteam/wpscan/issues/1228
8
class YoastSeoAuthorSitemap < AuthorSitemap
9
# @return [ String ] The URL of the author-sitemap
10
def sitemap_url
11
@sitemap_url ||= target.url('author-sitemap.xml')
12
end
13
end
14
end
15
end
16
end
17
18