Skip to content

Commit b335cac

Browse files
author
securekomodo
authored
Update wp_slideshowgallery_upload.rb
Variable on line 67 needs to be changed to "user" from "username" which was undefined and causing error during exploit execution. [-] Exploit failed: NameError undefined local variable or method `username' for #<Msf::Modules::Mod6578706c6f69742f756e69782f7765626170702f77705f736c69646573686f7767616c6c6572795f75706c6f6164::MetasploitModule:0x0055c61ab093f8> After changing the incorrect variable name from "username" to "user", the exploit completes.
1 parent d79b0ad commit b335cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/wp_slideshowgallery_upload.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def exploit
6464
print_error("Unable to login as #{user}")
6565
return
6666
end
67-
store_valid_credential(user: username, private: password, proof: cookie)
67+
store_valid_credential(user: user, private: password, proof: cookie)
6868

6969
print_status("Trying to upload payload")
7070
filename = "#{rand_text_alpha_lower(8)}.php"

0 commit comments

Comments
 (0)