Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[NT] AGEphone "sipd.dll" SIP Packet Handling Buffer Overflow

Subject: [NT] AGEphone "sipd.dll" SIP Packet Handling Buffer Overflow
Date: 26 Jul 2006 15:04:46 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  AGEphone "sipd.dll" SIP Packet Handling Buffer Overflow
------------------------------------------------------------------------


SUMMARY

 <http://www.ageet.com/us/agephone/index.htm> AGEphone is "a SIP softphone 
written by Ageet". A vulnerability has been found in AGEphone. When 
exploited, the vulnerability allows execution of arbitrary code with 
privileges of the AGEphone user via a single specially-crafted UDP SIP 
packet.

DETAILS

Vulnerable Systems:
 * AGEphone for Windows version 1.24
 * AGEphone for Windows version 1.38.1

Immune Systems:
 * AGEphone for Windows version 1.40

This advisory discloses a buffer overflow vulnerability in AGEphone.

AGEphone uses the unsafe "sscanf()" function when processing a UDP SIP 
packet received via its SIP session port. This can cause a stack-based 
buffer overflow when a specially-crafted SIP packet is received.

The vulnerability occurs in "sipd.dll" in a function that resembles the 
following:
function_100115D0(char *receivedSIPdata)
{
 DWORD value;
 char buffer1[20];
 char buffer2[40];
 
 if(receivedSIPdata != NULL)
 {
  // Skip leading SPACE and TAB characters
  while(*receivedSIPdata != NULL)
  {
   if(*receivedSIPdata == 0x20 || *receivedSIPdata == 0x09)
    receivedSIPdata++;
   else
    break;
  }
  
  if(strnicmp(receivedSIPdata, "SIP/", 4) == 0)
  {
   // BUFFER OVERFLOW when string read into buffer1 or buffer2 is overly 
long!!!
   
   sscanf(receivedSIPdata, "%s %d %s\r\n", buffer1, value, buffer2);
   return value;
  }
  else if(strnicmp(receivedSIPdata, "INVITE", 6) == 0)
  {
   ...
  }
  else if(...)  // Other else-if statements to determine the SIP command
  {
  }
 }
}

Example SIP UDP packet that can trigger the buffer overflow:
SIP/AAAAAAAA[approx-68-bytes]AAAAAA 1 A
From: test
To: test

Or:

SIP/A 1 AAAAAAAA[approx-48-bytes]AAAAAA
From: test
To: test

Disclosure Timeline:
2006-07-21 - Vulnerability Discovered.
2006-07-22 - Initial Vendor Notification.
2006-07-24 - Vendor Released Fixed Version.
2006-07-25 - Public Release.


ADDITIONAL INFORMATION

The information has been provided by  <mailto:chewkeong@vuln.sg> Tan Chew 
Keong.
The original article can be found at:  
<http://vuln.sg/agephone1381-en.html> http://vuln.sg/agephone1381-en.html



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [NT] AGEphone "sipd.dll" SIP Packet Handling Buffer Overflow, SecuriTeam <=