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

goahead.txt

goahead.txt
Posted Jan 20, 2004
Authored by Luigi Auriemma | Site aluigi.altervista.org

The Goahead webserver, version 2.1.8 and below, is an embedded webserver used by many products. A flaw exists where an attacker can get the webserver to consume all of the server's resources by using the POST method with a specific number set for the Content-Length parameter.

tags | exploit
SHA-256 | 750d26c05ba6a4c19bb67be0988c544aa47ff4b7bd00c46f35b28f0378c6877a

goahead.txt

Change Mirror Download

#######################################################################

Luigi Auriemma

Application: Goahead webserver
http://www.goahead.com/webserver/webserver.htm
Versions: <= 2.1.8
Platforms: multiplatform
Bug: resources consumption
Risk: medium/high
Exploitation: remote
Date: 19 Jan 2004
Author: Luigi Auriemma
e-mail: aluigi@altervista.org
web: http://aluigi.altervista.org


#######################################################################


1) Introduction
2) Bug
3) The Code
4) Fix


#######################################################################

===============
1) Introduction
===============


Goahead webserver is an embedded OpenSource server that can be build on
a lot of systems (CE, Ecos, GNU/Linux, Lynx, MacOS, NW, QNX4, VXWORKS,
Win32 and others).
It is supported by a lot of companies that use it for their projects
and it is also used like "base" for other webservers, furthermore it
has been developed for be very tiny and to run on embedded systems.


#######################################################################

======
2) Bug
======


The webserver is affected by a bug that lets an attacker to consume all
its resources.
Practically the attacker uses the POST method with a specific number
in the Content-Length parameter (the value that specifies how many
bytes will be sent to the server) and then he will send an amount of
data minor than how much specified.

The server will allocate all the data sent by the attacker and then
will wait the last bytes as specified by Content-Length.
Then the attacker will break the connection and the server will enter
in an infinite loop because the socket's error is not well managed.

The following is an example of what the attacker needs to send to the
server:

------------------
POST / HTTP/1.0
Content-Length: 10

123456789
------------------

So the socket will not be closed by the server, all the memory
allocated until that moment will not be freed and the CPU will go to
100% due the infinite loop of the unchecked select() function.
On some operating systems the webserver will accept no more connections
after some attacks.


#######################################################################

===========
3) The Code
===========


http://aluigi.altervista.org/poc/webpostmem.zip


#######################################################################

======
4) Fix
======


No official fix.

This bug is known by over one year (October 2002).
On the official newsgroup of Goahead webserver have been released 2
patches to fix the problem (9th Nov 2002 and 13th Dec 2003):

news://news.goahead.com/goahead.public.webserver


#######################################################################

---
Luigi Auriemma
http://aluigi.altervista.org
Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close