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 Cross-Site Scripting and File Upload Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA26968  
Release Date: 2007-09-26

Critical:
Moderately critical
Impact: Cross Site Scripting
System access
Where: From remote
Solution Status: Vendor Patch

Software:Simple PHP Blog 0.x

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
Luca "ikki" Carettoni and Luca "Daath" De Fulgentis have reported some vulnerabilities in Simple PHP Blog, which can be exploited by malicious people to conduct cross-site scripting attacks and by malicious users to compromise a vulnerable system.

1) Input passed to the "user_colors[bg_color]" parameter in the file \themes\<theme name>\user_style.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

Successful exploitation requires that "register_globals" is enabled.

2) The upload_img_cgi.php script 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 contains the GIF magic number.

This is related to:
SA16598

The vulnerabilities are reported in versions prior to 0.5.1.

Solution:
Update to version 0.5.1.

Provided and/or discovered by:
Luca "ikki" Carettoni and Luca "Daath" De Fulgentis, SecureNetwork.IT

Original Advisory:
Simple PHP Blog:
http://www.simplephpblog.com/index.php?entry=entry070923-004446

SecureNetwork.IT:
http://www.securenetwork.it/ricerca/advisory/download/SN-2007-03.txt

Other References:
SA16598:
http://secunia.com/advisories/16598/



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 Multiple Vulnerabilities
2. Simple PHP Blog Cross-Site Request Forgery
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.
OpenBSD BIND Query Port DNS Cache Poisoning
2.
Drupal Session Fixation Vulnerability
3.
Debian update for clamav
4.
Apple Safari Cross-Domain Cookie Injection Vulnerability
5.
Linux Kernel LDT Buffer Size Handling Vulnerability
6.
Debian update for xulrunner
7.
IPCop update for perl
8.
Microsoft Word Unspecified Code Execution Vulnerability
9.
Red Hat update for kernel
10.
Red Hat update for thunderbird





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