-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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 exploit for Cisco Data Center Network Manager file upload #12058
Conversation
Looks cool @pedrib! I think this module would be more at home in |
Co-Authored-By: @shellfail <jrobles@rapid7.com>
Co-Authored-By: @shellfail <jrobles@rapid7.com>
@acammack-r7 sorry mate, I must have been half asleep when I submitted the module, it deifnitely should be in modules/exploits/multi/http |
…http/cisco_dcnm_upload_2019.rb
…s/exploits/multi/http/cisco_dcnm_upload_2019.rb
@acammack-r7 @wvu-r7 give me some time to address your points, I'm currently busy with other work! I don't like to make changes without testing locally with all the versions I have here (10.4.2, 11.0.1, 11.1.1), so need to downtime to address them. Please be patient! |
@acammack-r7 @wvu-r7 all done, good to go! |
ping! |
yo guys! |
Hey, why don't I handle this! |
Note to committers: please handle #12059 as well. |
Pcap attached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would appreciate it if you applied the review from #12059, too.
done! should be good to go! |
all good! |
all good? |
I'm fine with the code, but we do require a module doc per module now. If you are unable to provide, I can handle it. You can at least copy the module description, setup notes, and example output into a Markdown file. Usually takes me five minutes. |
Here's the last one I wrote for reference: https://github.com/rapid7/metasploit-framework/blob/master/documentation/modules/exploit/unix/webapp/webmin_backdoor.md. |
I'm going to sleep, but I'll check in on this and the other PR tomorrow. |
@pedrib: This one has an f-d reference. Okay to land? |
Release NotesThe Cisco Data Center Network Manager File Upload module has been added to the framework. It targets a vulnerability in DCNM that exposes a file upload servlet (FileUploadServlet) at /fm/fileUpload. An authenticated user can abuse this servlet to upload a WAR to the Apache Tomcat webapps directory and achieve remote code execution as root. |
Tested and working on 10.4(2) up to 11.1(1).
See
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190626-dcnm-bypass
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190626-dcnm-codex
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190626-dcnm-infodiscl
I will also have a full disclosure post soon with more details about the vulns, and will add the link here.