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

Version Path
wpscan-3.7.9 app/finders/interesting_findings/registration.rb
wpscan-3.7.8 app/finders/interesting_findings/registration.rb
wpscan-3.7.7 app/finders/interesting_findings/registration.rb
wpscan-3.7.6 app/finders/interesting_findings/registration.rb
wpscan-3.7.5 app/finders/interesting_findings/registration.rb
wpscan-3.7.4 app/finders/interesting_findings/registration.rb
wpscan-3.7.3 app/finders/interesting_findings/registration.rb
wpscan-3.7.2 app/finders/interesting_findings/registration.rb
wpscan-3.7.1 app/finders/interesting_findings/registration.rb
wpscan-3.7.0 app/finders/interesting_findings/registration.rb
wpscan-3.6.3 app/finders/interesting_findings/registration.rb
wpscan-3.6.2 app/finders/interesting_findings/registration.rb
wpscan-3.6.1 app/finders/interesting_findings/registration.rb
wpscan-3.6.0 app/finders/interesting_findings/registration.rb
wpscan-3.5.5 app/finders/interesting_findings/registration.rb
wpscan-3.5.4 app/finders/interesting_findings/registration.rb
wpscan-3.5.3 app/finders/interesting_findings/registration.rb
wpscan-3.5.2 app/finders/interesting_findings/registration.rb
wpscan-3.5.1 app/finders/interesting_findings/registration.rb
wpscan-3.5.0 app/finders/interesting_findings/registration.rb