[NT] Emerald, RadiusNT/X and Air Marshal NULL Byte Writing



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

- - - - - - - - -



Emerald, RadiusNT/X and Air Marshal NULL Byte Writing
------------------------------------------------------------------------


SUMMARY

All the products developed by IEA Software use some web servers for the
remote administration of the services. The following are the programs
which run this web interface and the ports on which they listen:
* emerwebsrv, 80 and 443
* portald, 81
* schedule, 8010
* radadmn, 8011
* emerdap, 8012
* syslogd, 8013
* eaadmn, 8014
* emernet, 8018
* radlogin, 8020

A vulnerability in the product's web server allows remote attackers to
cause it to crash by sending it a specially malformed Content-Length
value.

DETAILS

Vulnerable Systems:
* Emerald version prior to 5.0.49
* RadiusNT and RadiusX version prior to 5.1.38
* Radius test client version prior to 4.0.20
* Air Marshal version version prior to 2.0.4

For each HTTP POST request the configuration web server starts the
receiving of the client's data using a heap buffer which automatically
increases its size through realloc. When the data received is major than
the integer value specified in Content-Length it stops the operation and
places a NULL byte at the end of the data for delimiting it.

The problem is that using a negative Content-Length value forces the
server to place this 0x00 byte in a location of the memory which goes from
heap_buffer+http_header+0x80000000 to heap_buffer+http_header+0xffffffff
allowing an attacker to crash the server or placing this byte in a better
location which could give him other possibilities of attack.

Exploit:
Send the following:
POST / HTTP/1.0
Host: localhost
Content-Length: 2147483647

Using:
nc SERVER PORT -v -v < emerdal.txt


ADDITIONAL INFORMATION

The information has been provided by <mailto:aluigi@xxxxxxxxxxxxx> Luigi
Auriemma.
The original article can be found at:
<http://aluigi.altervista.org/adv/emerdal-adv.txt>
http://aluigi.altervista.org/adv/emerdal-adv.txt



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


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@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


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

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.



Relevant Pages

  • [NT] Xedus Webserver Directory Traversal and DoS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The Xedus web server is vulnerable to a directory traversal. ... this vulnerability constitutes a denial of ...
    (Securiteam)
  • [NT] Quick n Easy/Baby Web Server ASP Code Disclosure
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Quick 'n Easy/Baby Web Server ASP Code Disclosure ... Quick 'n Easy Web Server version 3.1.1 ... 22/03/2006 - Initial vendor notification ...
    (Securiteam)
  • [NEWS] IP Phones Based on PA168 Chipset Have Weak Session Management
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... IP Phones Based on PA168 Chipset Have Weak Session Management ... admin web console running as superuser. ... is for them to send a well-formed request to the web server. ...
    (Securiteam)
  • [EXPL] Baby Web Server Command Validation (Exploit)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Server was to design a simple web server with support for ASP." ... By sending an especially crafted request to Baby Web Server, ...
    (Securiteam)
  • [NT] Eternal Lines Web Server DoS
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Server is "a free Web Server for use with Windows". ... program's connection queues (approximately 70 connections). ... sub Slp ...
    (Securiteam)