Secunia Logo
 
Simple PHP Blog Multiple Vulnerabilities
Secunia Advisory: SA27359
Release Date: 2007-10-24
Last Update: 2008-08-27
Popularity: 5,015 views

Critical:
Moderately critical
Impact: Security Bypass
Cross Site Scripting
Exposure of system information
Exposure of sensitive information
System access
Where: From remote
Solution Status: Unpatched

Software:Simple PHP Blog 0.x

Subscribe: Instant alerts on relevant vulnerabilities


Description:
Some vulnerabilities and a security issue have been reported in Simple PHP Blog, which can be exploited by malicious people to bypass certain security restrictions and conduct script insertion and cross-site request forgery attacks and disclose sensitive information, and by malicious users to disclose sensitive information and compromise a vulnerable system.

1) Input passed in the "Client-IP" and "X-Forwarded-For" HTTP headers is trusted from all clients. This can be exploited to bypass IP address checks by connecting to Simple PHP Blog and sending arbitrary values in one of the headers.

2) Input passed in the "Client-IP" HTTP header to comment_add_cgi.php is not properly sanitised before being stored. This can be exploited to insert arbitrary HTML and script code, which is executed in a user's browser session in context of an affected site when the malicious data is viewed. It can also be exploited for session fixation attacks.

3) Input passed to the "lang2" parameter in languages_cgi.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources.

Successful exploitation of this vulnerability requires valid administrator credentials and that "magic_quotes_gpc" is disabled.

4) A vulnerability is caused due to the application allowing users to perform certain actions via HTTP requests without performing any validity checks to verify the request. This can be exploited to e.g. include local files (see #3), delete files, or execute arbitrary PHP code.

5) The emoticons.php script that handles emoticon uploads does not correctly restrict certain types of uploaded files. This can be exploited to e.g. execute arbitrary PHP code by uploading a specially crafted PHP script that is also a valid JPEG or GIF image.

Successful exploitation of this vulnerability requires valid user credentials.

6) The problem is that user credentials are stored in the "config/users.php" file inside the web root. This can be exploited to disclose usernames and password hashes.

The vulnerabilities and the security issue are reported in version 0.5.1. Other versions may also be affected.

Solution:
Restrict access to Simple PHP Blog (e.g. with ".htaccess").

Use another product.

Provided and/or discovered by:
1-5) DarkFig
6) mAXzA

Changelog:
2008-08-27: Updated vulnerability #5 with additional information from mAXzA. Added vulnerability #6. Updated "Original Advisory" section.

Original Advisory:
1-5) http://acid-root.new.fr/?0:15
5-6) http://milw0rm.com/exploits/6311


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Apple iPhone / iPod touch Multiple Vulnerabilities // 52 views
2. BitDefender Antivirus PDF Processing Memory Corruption Vulnerability // 40 views
3. phpBB Cross Site Scripting and Unspecified Vulnerabilities // 38 views
4. vBulletin Visitor Messages Script Insertion Vulnerability // 36 views
5. Fedora update for thunderbird // 35 views
6. Checkpoint VPN-1 Information Disclosure Vulnerability // 34 views
7. Softbiz Classifieds Script "msg" Cross-Site Scripting Vulnerability // 33 views
8. xt:Commerce SQL Injection Vulnerability // 32 views
9. Avaya CMS Solaris "sadmind" Buffer Overflow Vulnerability // 31 views
10. IBM Workplace Web Content Management Cross-Site Scripting Vulnerabilities // 30 views