[31154] in bugtraq

home help back first fref pref prev next nref lref last post

Virginity Security Advisory 2003-001 : Hola CMS - Admin Password

daemon@ATHENA.MIT.EDU (Virginity Security)
Thu Aug 14 02:05:26 2003

Date: 13 Aug 2003 22:26:06 -0000
Message-ID: <20030813222606.31442.qmail@www.securityfocus.com>
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
From: Virginity Security <advisory@konfiweb.de>
To: bugtraq@securityfocus.com



- - - --------------------------------------------------------------------
Virginity Security Advisory 2003-001
- - - --------------------------------------------------------------------
             DATE : 2003-08-13 03:11 GMT
             TYPE : remote
VERSIONS AFFECTED : <== hola-cms-1.2.9-10 (http://holacms.drunkencat.net/)
           AUTHOR : Virginity
- - - --------------------------------------------------------------------


Description:

I found a security bug in Hola CMS with which you can get the admin 
password.
The bug is in the htmltags.php - the file was written to edit an internal 
file.
The Problem is htmltags.php doesn't check if you are
logged in as administrator so you can include the unprotected passwordfile
and htmltags.php shows the password file which you can edit freely or just
steal the password to gain possible acces to the whole server.

Author of the Software has been notified.

- - - --------------------------------------------------------------------


Example:
http://www.targetexample.com/path_of_hola/admin/cms/htmltags.php?
datei=./sec/data.php

shows you the username and password of the administrator!


- - - --------------------------------------------------------------------


Solution:

Put the following code at the beginning of htmltags.php

<?
 include_once('./sec/data.php');
 include_once('./sec/auth.php');
?>


- - - --------------------------------------------------------------------


home help back first fref pref prev next nref lref last post