Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Forum/Board/Portal)  >   Simple PHP Blog Vendors:   Palmo, Alexander
Simple PHP Blog 'comment_delete_cgi.php' Lets Remote Users Delete Arbitrary Files
SecurityTracker Alert ID:  1014817
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Aug 30 2005
Impact:   Denial of service via network, Modification of system information, Modification of user information

Description:   A vulnerability was reported in Simple PHP Blog. A remote user can delete arbitrary files.

A coding error in 'comment_delete_cgi.php' lets remote users delete files with the privileges of the target web service.

If installation scripts remain on the target system, then a remote user can reset the administrative password.

'ken'@FTU reported this vulnerability.

Impact:   A remote user can delete files on the target system with the privileges of the target web service.
Solution:   No solution was available at the time of this entry.

As a workaround, the report indicates that you can make the following change in 'comment_delete_cgi.php':

from $logged_in = logged_in( false, true );
to $logged_in = logged_in( true, true );

Vendor URL: (Links to External Site)
Cause:   Access control error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.

 Source Message Contents

Subject:  SimplePHPBlog Arbitrary File Deletion and Sample Exploit

SimplePHPBlog has a vulnerability in its comment_delete_cgi.php.

The PHP script allows for the arbitrary deletion of files.

Please see following link for a perl script to demonstrate the exploit:
(Please add .pl extension as my ISP server preprocesses the file if it 
is .pl or txt.)

This vulnerability, in combination with the fact that the installation
scripts are left on the server after installation, allows an arbitrary
user to reset the admin password to one of the attacker's choosing.

The script demonstrates the ability to delete files, reset the admin
password to the attacker's choosing and upload files (including a
command prompt).

The exploit is for educational purposes only.

To prevent this exploit change the line in comment_delete_cgi.php
from $logged_in = logged_in( false, true );
to $logged_in = logged_in( true, true );

Kenneth F. Belva, CISSP


Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC