wpscan 3.8.19 → 3.8.22

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: a2b3e70edcacc1f1b15ffab1fa686732b1cfc9b6aa4346bd88e0e517082c7aec
4
- data.tar.gz: fb794ab8574c5e1fa66553a7e954eaa5467ed62943ae68407124e6396e9359a4
3
+ metadata.gz: c510fa42904154d92ab0517e7d80861d55230eccd33f1fcd05bac579f59e0ff4
4
+ data.tar.gz: bb32077f76c587b13f9050dc148a8214072c08c71cba0a5220841c371c8ac5a1
5
5
  SHA512:
6
- metadata.gz: 0b02409d2b49a831960a39aaca578aadb07bf1390f6ced4a91edc8e2be42f05287883213cedf2df279f5b763213d595c26defe1abc0f4f075cfc3e9a7a028e03
7
- data.tar.gz: 7857de71dd8d276a150afb3f69a4e184cf9e7cd3d9b4ba61a058af1dad92e98594c154246fe7ded7a21ca84bc4ecba885a1ae3d4fb883b9449fb016ab10195fe
6
+ metadata.gz: 8b46eca5d03d59cdb0cc5a2ca18420564b6d9ba4dede5246da955206f24570001f5045280dfa7283f47d202c444a6f128e2dde5c618e97d68183d9f72ac4a9c0
7
+ data.tar.gz: 1b9c59b135c53555e18cf4bd6d97f17b8cac2d688253c770578b5c23c589384d66dfd4ebdee26964223344977e6bef936f42693af26f981da3333377d88d4c1b
@@ -59,13 +59,13 @@ module WPScan
59
59
  #
60
60
  # @return [ String, nil ] The best version number detected from the changelog section
61
61
  def from_changelog_section(body)
62
- extracted_versions = body.scan(%r{=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[ \ta-z0-9().\-/]*=+}i)
62
+ extracted_versions = body.scan(/^=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[^=]*=+$/i)
63
63
 
64
64
  return if extracted_versions.nil? || extracted_versions.empty?
65
65
 
66
66
  extracted_versions.flatten!
67
67
  # must contain at least one number
68
- extracted_versions = extracted_versions.select { |x| x =~ /[0-9]+/ }
68
+ extracted_versions = extracted_versions.grep(/[0-9]+/)
69
69
 
70
70
  sorted = extracted_versions.sort do |x, y|
71
71
  Gem::Version.new(x) <=> Gem::Version.new(y)
@@ -24,6 +24,10 @@ module WPScan
24
24
 
25
25
  FileUtils.mkdir_p(repo_directory.to_s) unless Dir.exist?(repo_directory.to_s)
26
26
 
27
+ # When --no-update is passed, return to avoid raising an error if the directory is not writable
28
+ # Mainly there for Homebrew: https://github.com/wpscanteam/wpscan/pull/1455
29
+ return if ParsedCli.update == false
30
+
27
31
  unless repo_directory.writable?
28
32
  raise "#{repo_directory} is not writable (uid: #{Process.uid}, gid: #{Process.gid})"
29
33
  end
@@ -131,7 +135,7 @@ module WPScan
131
135
  res = Typhoeus.get(file_url, request_params)
132
136
  raise Error::Download, res if res.timed_out? || res.code != 200
133
137
 
134
- File.open(file_path, 'wb') { |f| f.write(res.body) }
138
+ File.binwrite(file_path, res.body)
135
139
 
136
140
  local_file_checksum(filename)
137
141
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version
4
4
  module WPScan
5
- VERSION = '3.8.19'
5
+ VERSION = '3.8.22'
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.19
4
+ version: 3.8.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - WPScanTeam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.6
19
+ version: 0.13.8
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.6
26
+ version: 0.13.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.10.0
75
+ version: 3.11.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.10.0
82
+ version: 3.11.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-its
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.21.0
103
+ version: 1.26.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.21.0
110
+ version: 1.26.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-performance
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.11.0
117
+ version: 1.13.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.11.0
124
+ version: 1.13.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.13.0
173
+ version: 3.14.0
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.13.0
180
+ version: 3.14.0
181
181
  description: WPScan is a black box WordPress vulnerability scanner.
182
182
  email:
183
183
  - contact@wpscan.com