Skip to content

Commit 39556c1

Browse files
committed
Rewrote check method.
1 parent ace316a commit 39556c1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

modules/exploits/unix/webapp/wp_worktheflow_upload.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,7 @@ def initialize(info = {})
4040
end
4141

4242
def check
43-
res = send_request_cgi(
44-
'uri' => normalize_uri(wordpress_url_plugins, 'work-the-flow-file-upload', 'public', 'assets',
45-
'jQuery-File-Upload-9.5.0', 'server', 'php', 'index.php')
46-
)
47-
48-
if res && res.code == 200 && res.body =~ /files/
49-
return Exploit::CheckCode::Detected
50-
end
51-
52-
Exploit::CheckCode::Safe
43+
check_plugin_version_from_readme('work-the-flow-file-upload', '2.5.2')
5344
end
5445

5546
def exploit

0 commit comments

Comments
 (0)