Sha256: 897146a93fa22a8346e26ea505e0ac7a9fcc2a20122e27415353280fca860dc0
Contents?: true
Size: 955 Bytes
Versions: 20
Compression:
Stored size: 955 Bytes
Contents
# frozen_string_literal: true 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 Model::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
20 entries across 20 versions & 1 rubygems