wpscan 3.8.24 → 3.8.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23e760a18e71e13ba38ca87b045d98e1797681b3825f3478cd0207bd6c0df444
4
- data.tar.gz: d0a32dd76141b699942aa8fce40b72f5c53cf43f5760e11edc366b5db7bb3185
3
+ metadata.gz: f4c0a992941a0d2f853807d26044152e1be735612de635009344aa0d09771fe5
4
+ data.tar.gz: c6be4010e882cd3a0c2b7413cd4b701ace9aa4815eccabcc2fc1c44cb6868cf0
5
5
  SHA512:
6
- metadata.gz: afe57fb1ec101b3ac1309812ab3504b0c1d0a27fa807d302689f23678bbdf9980c8d1389a2c9d37dfbdc93386f4448a0f8eb33e4141ec1891b5ffdca3eecdf14
7
- data.tar.gz: b79484562638d87bbb3ffd129988f9d7c1cbb062006c24bc918852767b143a1d34a576c1e3275ff599522cbac953eb35aebeb6cd4b447dccf365335966581bff
6
+ metadata.gz: 1b745c2b437e7ef151ca02f96f2e92033432f210d840e00043162f5e22150069aaa81183bc2c9c0e27851daf7cec5542dc05c15b73a905c8753b133fe533630d
7
+ data.tar.gz: cd12ea2c6f19a67141c35d3621b08e7ca19c17c681511a08939149442f0581e99f7444b625d0037c0d079f3f3f8c6936ae63a69893c7044eb033a8387b3cf859
data/README.md CHANGED
@@ -25,8 +25,7 @@
25
25
  ## Prerequisites
26
26
 
27
27
  - (Optional but highly recommended: [RVM](https://rvm.io/rvm/install))
28
- - Ruby >= 2.5 - Recommended: latest
29
- - Ruby 2.5.0 to 2.5.3 can cause an 'undefined symbol: rmpd_util_str_to_d' error in some systems, see [#1283](https://github.com/wpscanteam/wpscan/issues/1283)
28
+ - Ruby >= 3.0 - Recommended: latest
30
29
  - Curl >= 7.72 - Recommended: latest
31
30
  - The 7.29 has a segfault
32
31
  - The < 7.72 could result in `Stream error in the HTTP/2 framing layer` in some cases
@@ -39,7 +38,9 @@ When using a pentesting distubution (such as Kali Linux), it is recommended to i
39
38
 
40
39
  ### In macOSX via Homebrew
41
40
 
42
- `brew install wpscanteam/tap/wpscan`
41
+ ```shell
42
+ brew install wpscanteam/tap/wpscan
43
+ ```
43
44
 
44
45
  ### From RubyGems
45
46
 
@@ -7,6 +7,10 @@ module WPScan
7
7
  class KnownLocations < CMSScanner::Finders::Finder
8
8
  include CMSScanner::Finders::Finder::Enumerator
9
9
 
10
+ def valid_response_codes
11
+ @valid_response_codes ||= [200, 206].freeze
12
+ end
13
+
10
14
  SQL_PATTERN = /(?:DROP|(?:UN)?LOCK|CREATE|ALTER) (?:TABLE|DATABASE)|INSERT INTO/.freeze
11
15
 
12
16
  # @param [ Hash ] opts
@@ -17,7 +21,7 @@ module WPScan
17
21
  def aggressive(opts = {})
18
22
  found = []
19
23
 
20
- enumerate(potential_urls(opts), opts.merge(check_full_response: 200)) do |res|
24
+ enumerate(potential_urls(opts), opts.merge(check_full_response: valid_response_codes)) do |res|
21
25
  if res.effective_url.end_with?('.zip')
22
26
  next unless %r{\Aapplication/zip}i.match?(res.headers['Content-Type'])
23
27
  else
data/app/models/theme.rb CHANGED
@@ -92,7 +92,7 @@ module WPScan
92
92
  tags: 'Tags',
93
93
  text_domain: 'Text Domain'
94
94
  }.each do |attribute, tag|
95
- instance_variable_set(:"@#{attribute}", parse_style_tag(style_body, tag))
95
+ instance_variable_set(:"@#{attribute}", parse_style_tag(style_body, tag)&.force_encoding('UTF-8'))
96
96
  end
97
97
  end
98
98
 
@@ -25,6 +25,10 @@ module WPScan
25
25
 
26
26
  @all_numbers = []
27
27
 
28
+ DB::Version.metadata.each_key do |ver|
29
+ @all_numbers << ver
30
+ end
31
+
28
32
  DB::Fingerprints.wp_fingerprints.each_value do |fp|
29
33
  @all_numbers << fp.values
30
34
  end
data/lib/wpscan/helper.rb CHANGED
@@ -16,5 +16,8 @@ def classify_slug(slug)
16
16
  classified = slug.to_s.gsub(/[^a-z\d\-]/i, '-').gsub(/-{1,}/, '_').camelize.to_s
17
17
  classified = "D_#{classified}" if /\d/.match?(classified[0])
18
18
 
19
+ # Special case for slugs with all non-latin characters.
20
+ classified = "HexSlug_#{slug.bytes.map { |i| i.to_s(16) }.join}" if classified.empty?
21
+
19
22
  classified.to_sym
20
23
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version
4
4
  module WPScan
5
- VERSION = '3.8.24'
5
+ VERSION = '3.8.26'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wpscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.24
4
+ version: 3.8.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - WPScanTeam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cms_scanner
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.13.8
19
+ version: 0.14.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.13.8
26
+ version: 0.14.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.21.0
131
+ version: 0.22.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.21.0
138
+ version: 0.22.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov-lcov
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.18.1
173
+ version: 3.19.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.18.1
180
+ version: 3.19.1
181
181
  description: WPScan is a black box WordPress vulnerability scanner.
182
182
  email:
183
183
  - contact@wpscan.com
@@ -390,14 +390,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
390
390
  requirements:
391
391
  - - ">="
392
392
  - !ruby/object:Gem::Version
393
- version: '2.5'
393
+ version: '3.0'
394
394
  required_rubygems_version: !ruby/object:Gem::Requirement
395
395
  requirements:
396
396
  - - ">="
397
397
  - !ruby/object:Gem::Version
398
398
  version: '0'
399
399
  requirements: []
400
- rubygems_version: 3.0.3.1
400
+ rubygems_version: 3.2.33
401
401
  signing_key:
402
402
  specification_version: 4
403
403
  summary: WPScan - WordPress Vulnerability Scanner