Sha256: 8040fecf26bcbece473c8b4ee7d39dbca130165f8c0ed0cd8175f5ee2f0f8abc
Contents?: true
Size: 931 Bytes
Versions: 15
Compression:
Stored size: 931 Bytes
Contents
module WPScan module Finders module InterestingFindings # Registration Enabled checker class Registration < CMSScanner::Finders::Finder # @return [ InterestingFinding ] def passive(_opts = {}) # Maybe check in the homepage if there is the registration url ? end # @return [ InterestingFinding ] def aggressive(_opts = {}) res = Browser.get_and_follow_location(target.registration_url) return unless res.code == 200 return if res.html.css('form#setupform').empty? && res.html.css('form#registerform').empty? target.registration_enabled = true WPScan::InterestingFinding.new( res.effective_url, confidence: 100, found_by: DIRECT_ACCESS, to_s: "Registration is enabled: #{res.effective_url}" ) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems