Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


Simple PHP Blog Multiple Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA27359  
Release Date: 2007-10-24

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

This advisory is currently marked as unpatched!
- Companies can be alerted when a patch is released!


Description:
DarkFig has reported some vulnerabilities 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 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 image.

Successful exploitation of this vulnerability requires valid administrator credentials.

The vulnerabilities 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:
DarkFig

Original Advisory:
http://acid-root.new.fr/?0:15



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.

7 Related Secunia Security Advisories

1. Simple PHP Blog Cross-Site Request Forgery
2. Simple PHP Blog Cross-Site Scripting and File Upload Vulnerabilities
3. Simple PHP Blog "blog_language" Local File Inclusion
4. Simple PHP Blog Cross-Site Scripting Vulnerabilities
5. Simple PHP Blog comment_delete_cgi.php Arbitrary File Deletion
6. Simple PHP Blog Image File Upload Vulnerability
7. Simple PHP Blog Exposure of User Credentials


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.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Microsoft Windows DNS Spoofing Vulnerabilities
2.
Microsoft Access Snapshot Viewer ActiveX Control Vulnerability
3.
Microsoft Windows Explorer Saved Search Vulnerability
4.
Microsoft SQL Server and MSDE Multiple Vulnerabilities
5.
Joomla Unauthorized Access Vulnerabilities
6.
Microsoft Outlook Web Access Script Insertion Vulnerabilities
7.
ArticleBeach Script "page" File Inclusion Vulnerability
8.
Poppler "pageWidgets" Uninitialized Memory Access
9.
Joomla Brightcode Weblinks Component "catid" SQL Injection
10.
webXell Editor File Upload Vulnerability





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia