PDA

Bekijk Volledige Versie : resources consumption in DiGi WWW Server



Donato Ferrante
28/04/04, 03:05
Donato Ferrante


Application: DiGi WWW Server
http://wwwserver.sourceforge.net

Version: Compieuw.1

Bug: resources consumption

Date: 27-Apr-2004

Author: Donato Ferrante
e-mail: fdonato@autistici.org
web: www.autistici.org/fdonato



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

1. Description
2. The bug
3. The code
4. The fix



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

----------------
1. Description:
----------------

Vendor's Description:

"DiGi WWW Server is a webserver. It is easy-to-use but also supports
access control, virtual folders and multiple ports. You can use plugin
dll's to add extra functionality. The server can run as a GUI
application and as an NT service."



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

------------
2. The bug:
------------

The program has a procedure that makes a conversion, it parses the
request strings replacing all the occurrences of slash with backslash.

So if you send to the webserver a crafted big request full of '/',
the server will be freezed by consuming a lot of CPU resources.


Furthermore it's also possible to freeze the server by sending to it a
long http request.



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

-------------
3. The code:
-------------

To test the vulnerability, send to the webserver an http request like:


GET /// [ 660 kb of / ] /// HTTP/1.1



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

------------
4. The fix:
------------

Bug fixed in the version Compieuw.2.



xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx