exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

LSS-2005-03-05.txt

LSS-2005-03-05.txt
Posted Mar 17, 2005
Authored by Leon Juranic | Site security.lss.hr

LSS Security Advisory #LSS-2005-03-05 - There is a buffer overflow vulnerability in the Ethereal IAPP dissector. All versions that have support for the IAPP dissector are affected up to version 0.10.9.

tags | advisory, overflow
SHA-256 | 63b1cc3f3155d1879b4735aff3a5831a2bec847f7be9ce147c4a43a685e19f09

LSS-2005-03-05.txt

Change Mirror Download

LSS Security Advisory #LSS-2005-03-05
http://security.lss.hr

---

Title : Ethereal remote buffer overflow #2
Advisory ID : LSS-2005-03-05
Date : 2005-03-10
Advisory URL: : http://security.lss.hr/index.php?page=details&ID=LSS-2005-03-05
Impact : DoS and maybe possible code execution
Risk level : Medium
Vulnerability type : Remote
Vendors contacted : 10th March, 2005

---




===[ Overview

Ethereal is an application used by network professionals for troubleshooting,
analysis and education, as well as the software and protocol development.
Ethereal provides all the features that protocol analyzer should have.
Moreover, there are several extra features which other products do not support.
The license is open source, what allows networking community experts to add
enhancements. Ethereal also supports different platforms, including Unix, Linux,
and Windows.



===[ Vulnerability

We have discovered another vulnerability in one of Ethereal dissectors. This time
problem is in IAPP dissector. It is possible to overflow static buffer with
length value taken from network packet. Vulnerability itself is in dissect_pdus()
function.
Length is calculated from two guint8 variables in which first one is shifted to
left, and second is added to it, so it can be up to 65535. That length is later
used in loops that can be abused to overflow static buffer 'textbuffer[2000]'.

packet-iapp.c
-------------
static void
dissect_pdus(tvbuff_t *tvb, int offset, proto_tree *pdutree, int pdulen)
{
...
int len;
...
tvb_memcpy(tvb, (guint8 *)&pduhdr, offset, sizeof(e_pduhdr));
len = (((int)pduhdr.pdu_len_h) << 8) + pduhdr.pdu_len_l;
...
}
-------------

Vulnerable loop example in packet-iapp.c:
-----------------
pduval_to_str(int type, int len, tvbuff_t *tvb, int offset)
{
...
case IAPP_PDU_MSADDR:
mac = tvb_get_ptr(tvb, offset + 3, len);
for (z = 0; z < len; z++)
run += sprintf(run, "%s%02x", z ? ":" : "", mac[z]);
break;
...
}
----------------

Remote code execution depends on overflowed buffer environment, and maybe it
could be possible, but wasn't further investigated.



===[ Affected versions

All versions after IAPP dissector was added to CVS, including version 0.10.9.
PoC exploit for this vulnerability was tested with Ethereal 0.10.9 on Windows,
and Ethereal developer Guy Harris tested it on OS X.



===[ Fix

This vulnerability is fixed in latest Ethereal version 0.10.10, and can be
downloaded from http://www.ethereal.com/download.html.



===[ PoC Exploit

Proof of concept code can be downloaded at http://security.lss.hr/en/PoC



===[ Credits

Credits for this vulnerability goes to Leon Juranic <ljuranic@lss.hr>.



===[ LSS Security Contact

LSS Security Team, <eXposed by LSS>

WWW : http://security.lss.hr
E-mail : security@LSS.hr
Tel : +385 1 6129 775




Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close