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

Version Path
wpscan-3.3.2 app/finders/interesting_findings/registration.rb
wpscan-3.3.1 app/finders/interesting_findings/registration.rb
wpscan-3.3.0 app/finders/interesting_findings/registration.rb
wpscan-3.2.1 app/finders/interesting_findings/registration.rb
wpscan-3.2.0 app/finders/interesting_findings/registration.rb
wpscan-3.1.0 app/finders/interesting_findings/registration.rb
wpscan-3.0.8 app/finders/interesting_findings/registration.rb
wpscan-3.0.7 app/finders/interesting_findings/registration.rb
wpscan-3.0.6 app/finders/interesting_findings/registration.rb
wpscan-3.0.5 app/finders/interesting_findings/registration.rb
wpscan-3.0.4 app/finders/interesting_findings/registration.rb
wpscan-3.0.3 app/finders/interesting_findings/registration.rb
wpscan-3.0.2 app/finders/interesting_findings/registration.rb
wpscan-3.0.1 app/finders/interesting_findings/registration.rb
wpscan-3.0 app/finders/interesting_findings/registration.rb