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:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    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