Sha256: 1d30f529dfb4b6076f908a48e8a6c932250729a4b59a300f4831bbece2996b21
Contents?: true
Size: 925 Bytes
Versions: 7
Compression:
Stored size: 925 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::Registration.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
7 entries across 7 versions & 1 rubygems