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

corrected options confict between module and ldap mixin #18448

Merged

Conversation

HynekPetrak
Copy link
Contributor

This PR corrects an Option conflict between Msf::Exploit::Remote::LDAP and auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass module. As reported in #18091

It seems around this commit 9a6c298 the BIND_DB and BIND_PW options of lib/msf/core/exploit/remote/ldap.rb started to move towards renaming into USERNAME and PASSWORD. Unfortunately same options have been used in auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass module for a different purpose.

This PR adds a prefix NEW_ to the auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass module options

Verification

I don't have a test system on hand at the moment, I appreciate if someone tests both scenarios:

  1. https://github.com/HynekPetrak/metasploit-framework/blob/fix_vmware_vcenter_vmdir_auth_bypass/documentation/modules/auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass.md#vmware-vcenter-server-67-virtual-appliance-on-esxi-vulnerable-target

  2. https://github.com/HynekPetrak/metasploit-framework/blob/fix_vmware_vcenter_vmdir_auth_bypass/documentation/modules/auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass.md#vmware-vcenter-server-6702-virtual-appliance-on-esxi-not-vulnerable-target

@HynekPetrak
Copy link
Contributor Author

Yet this needs to be fixed:

I’ll see tomorrow, likely to test for ldap.bind status

Few more instances corrected
@HynekPetrak
Copy link
Contributor Author

PR is ready for review

@HynekPetrak
Copy link
Contributor Author

Just for info, I believe, the renaming of parameters in ldap mixin was required due to parameter change in Net::LDAP ruby library.

@adfoster-r7
Copy link
Contributor

Sorry for the delay, thanks for patching! I don't have a target to verify, but statically the code changes look good to me - and this contributor ran through the module update successfully too 👍

@adfoster-r7 adfoster-r7 merged commit 5c09c86 into rapid7:master Nov 21, 2023
35 checks passed
@adfoster-r7
Copy link
Contributor

Release Notes

Fixes and updates the auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass module to use renamed NEW_USERNAME and NEW_PASSWORD options

@adfoster-r7 adfoster-r7 added the rn-fix release notes fix label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rn-fix release notes fix
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants