wpscan 3.8.18 → 3.8.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/finders/interesting_findings/multisite.rb +1 -1
- data/app/models/timthumb.rb +1 -1
- data/lib/wpscan/db/updater.rb +3 -1
- data/lib/wpscan/errors/enumeration.rb +4 -4
- data/lib/wpscan/errors/wordpress.rb +1 -1
- data/lib/wpscan/finders/dynamic_finder/finder.rb +3 -1
- data/lib/wpscan/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b3e70edcacc1f1b15ffab1fa686732b1cfc9b6aa4346bd88e0e517082c7aec
|
4
|
+
data.tar.gz: fb794ab8574c5e1fa66553a7e954eaa5467ed62943ae68407124e6396e9359a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b02409d2b49a831960a39aaca578aadb07bf1390f6ced4a91edc8e2be42f05287883213cedf2df279f5b763213d595c26defe1abc0f4f075cfc3e9a7a028e03
|
7
|
+
data.tar.gz: 7857de71dd8d276a150afb3f69a4e184cf9e7cd3d9b4ba61a058af1dad92e98594c154246fe7ded7a21ca84bc4ecba885a1ae3d4fb883b9449fb016ab10195fe
|
@@ -13,7 +13,7 @@ module WPScan
|
|
13
13
|
|
14
14
|
return unless [200, 302].include?(res.code)
|
15
15
|
return if res.code == 302 && location&.include?('wp-login.php?action=register')
|
16
|
-
return unless res.code == 200 || res.code == 302 && location&.include?('wp-signup.php')
|
16
|
+
return unless res.code == 200 || (res.code == 302 && location&.include?('wp-signup.php'))
|
17
17
|
|
18
18
|
target.multisite = true
|
19
19
|
|
data/app/models/timthumb.rb
CHANGED
@@ -30,7 +30,7 @@ module WPScan
|
|
30
30
|
def vulnerabilities
|
31
31
|
vulns = []
|
32
32
|
|
33
|
-
vulns << rce_webshot_vuln if version == false || version > '1.35' && version < '2.8.14' && webshot_enabled?
|
33
|
+
vulns << rce_webshot_vuln if version == false || (version > '1.35' && version < '2.8.14' && webshot_enabled?)
|
34
34
|
vulns << rce_132_vuln if version == false || version < '1.33'
|
35
35
|
|
36
36
|
vulns
|
data/lib/wpscan/db/updater.rb
CHANGED
@@ -24,7 +24,9 @@ module WPScan
|
|
24
24
|
|
25
25
|
FileUtils.mkdir_p(repo_directory.to_s) unless Dir.exist?(repo_directory.to_s)
|
26
26
|
|
27
|
-
|
27
|
+
unless repo_directory.writable?
|
28
|
+
raise "#{repo_directory} is not writable (uid: #{Process.uid}, gid: #{Process.gid})"
|
29
|
+
end
|
28
30
|
|
29
31
|
delete_old_files
|
30
32
|
end
|
@@ -5,16 +5,16 @@ module WPScan
|
|
5
5
|
class PluginsThresholdReached < Standard
|
6
6
|
def to_s
|
7
7
|
"The number of plugins detected reached the threshold of #{ParsedCli.plugins_threshold} " \
|
8
|
-
|
9
|
-
|
8
|
+
'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \
|
9
|
+
'option to ignore the bad responses.'
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
13
|
class ThemesThresholdReached < Standard
|
14
14
|
def to_s
|
15
15
|
"The number of themes detected reached the threshold of #{ParsedCli.themes_threshold} " \
|
16
|
-
|
17
|
-
|
16
|
+
'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \
|
17
|
+
'option to ignore the bad responses.'
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -26,7 +26,7 @@ module WPScan
|
|
26
26
|
class WpContentDirNotDetected < Standard
|
27
27
|
def to_s
|
28
28
|
'Unable to identify the wp-content dir, please supply it with --wp-content-dir,' \
|
29
|
-
|
29
|
+
' use the --scope option or make sure the --url value given is the correct one'
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
@@ -56,7 +56,9 @@ module WPScan
|
|
56
56
|
|
57
57
|
homepage_result = find(target.homepage_res, opts)
|
58
58
|
|
59
|
-
|
59
|
+
unless homepage_result.nil? || (homepage_result.is_a?(Array) && homepage_result&.empty?)
|
60
|
+
return homepage_result
|
61
|
+
end
|
60
62
|
|
61
63
|
find(target.error_404_res, opts)
|
62
64
|
end
|
data/lib/wpscan/version.rb
CHANGED
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.
|
4
|
+
version: 3.8.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-22 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.
|
19
|
+
version: 0.13.6
|
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.
|
26
|
+
version: 0.13.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.21.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.
|
110
|
+
version: 1.21.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-performance
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|