[UNIX] Cookie Vulnerability in AlGuest Guestbook (Administrative rights)

From: support@securiteam.com
Date: 03/26/02


From: support@securiteam.com
To: list@securiteam.com
Date: Tue, 26 Mar 2002 12:29:03 +0100 (CET)

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

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Cookie Vulnerability in AlGuest Guestbook (Administrative rights)
------------------------------------------------------------------------

SUMMARY

 <http://www.hotscripts.com/Detailed/14105.html> AlGuest is a powerful
guestbook based on a MySQL database. It has a complete administration
tool, two languages (new languages can be added simply) and very nice
graphic. It is light and fast. A security vulnerability in the product
allows attackers to cause the product to think they are administrators by
placing a fake Administrator cookie on their computer.

DETAILS

Vulnerable systems:
AlGuest version 1.0

AlGuest is a guestbook programmed in PHP. A major flaw in the program has
been found to enable any user to access the administrator panel. The flaw
is caused because cookie data is not properly checked for administrator
rights (i.e. username, password), but rather only checked if whether the
cookie is present "elseif(isset($admin))". Therefore, an attacker can just
create the cookie and gain access to administrator panel.

Possible solution:
A solution might be this "elseif(isset($HTTP_COOKIE_VARS['admin'] ==
$password && $username))".

ADDITIONAL INFORMATION

The information has been provided by <mailto:br014c1155@blueyonder.co.uk>
MOD.

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

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

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

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