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

Remove the bug where downcase() is invoked on password which is optio… #7529

Merged
merged 1 commit into from Nov 3, 2016

Conversation

jinq102030
Copy link
Contributor

@jinq102030 jinq102030 commented Nov 3, 2016

The simple fix the bug where the module exploits/multi/http/tomcat_mgr_deploy will call downcast() on the password user parameter, but this parameter is optional and can be empty, causing an error.

Verification

List the steps needed to make sure this thing works

Assume you have tomcat mgr installed on localhost:

  • Start msfconsole
  • use exploits/multi/http/tomcat_mgr_deploy
  • set RHOST 127.0.0.1
  • Note that it doesn't show "Exploit failed: NoMethodError undefined method `downcase' for nil:NilClass" as before the fix.

wvu added a commit to wvu/metasploit-framework that referenced this pull request Nov 3, 2016
Don't think it was ever needed, since the password is case-sensitive.

Fixed a minor merge conflict where PASSWORD became HttpPassword.
@wvu wvu merged commit 2f8d3c3 into rapid7:master Nov 3, 2016
@wvu
Copy link
Contributor

wvu commented Nov 6, 2016

Release Notes

This fix addresses a nil bug in exploit/multi/http/tomcat_mgr_deploy where the saved password was being converted to lowercase unconditionally. Additionally, there was no reason to downcase the password.

@tdoan-r7 tdoan-r7 added the rn-fix release notes fix label Nov 28, 2016
@wvu wvu mentioned this pull request Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug module rn-fix release notes fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants