This module exploits a vulnerability in Tectia SSH server for Unix-based platforms. The bug is caused by a SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ request before password authentication, allowing any remote user to bypass the login routine, and then gain access as root.
Unix
cmd
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/ssh/tectia_passwd_changereq
msf exploit(tectia_passwd_changereq) > show targets
...targets...
msf exploit(tectia_passwd_changereq) > set TARGET < target-id >
msf exploit(tectia_passwd_changereq) > show options
...show and set options...
msf exploit(tectia_passwd_changereq) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security