Medium severity

Simple PHP Blog <= 0.5.1 Local File Include vulnerability

Local file inclusion in Simple PHP Blog via the blog_language1 parameter.

Original release date
March 2009
Discovered by
Juan Galiana Lara
Severity
6.8 / 10 CVSS v2.0
Affected product
Simple PHP Blog up to 0.5.1

Antecedentes

Simple PHP Blog is a blogging system that does not require setting up a database and is very easy to install.

Description

Simple PHP Blog up to version 0.5.1 is vulnerable to local file inclusion in languages_cgi.php, because the blog_language1 parameter is not properly sanitized.

Business impact

An attacker can read arbitrary files in the web server context and execute arbitrary local PHP scripts.

Affected systems

Versions up to and including 0.5.1. To fix the application, the file_exists() and basename() functions must be added to the affected code.

Solución

Modify line 62 of languages_cgi.php to filter the $_POST['blog_language1'] variable with a regular expression that only allows alphanumeric characters and underscores.

Calendario de divulgación

2 Mar 2009 Vulnerability discovered by Internet Security Auditors.
3 Mar 2009 Developer notified. No response.
13 Dec 2009 New notification. No response.
18 Dec 2009 A mitigation solution is added and sent to the lists.

References

Sobre Internet Security Auditors

Company based in Spain and Colombia, specializing in web application auditing, network security, penetration testing, and compliance implementation and assessment. Our clients include some of the largest finance, telecommunications, insurance, and ICT companies. A vendor-independent provider with in-depth experience since 2001. Our R&D efforts include vulnerability research, collaboration on open security projects, whitepapers, and participation in industry events.

Would you like us to review your product?

Contact us
Contact

Do you need a security audit?

Tell us about your situation and our team will get in touch with you to provide guidance or schedule a technical call.

Request information

We will contact you as soon as possible.
Global Presence

Our offices

Barcelona

C. Santander, 101. Building A-2
E-08030 Barcelona (Spain)

+34 93 305 13 18
Madrid

Arequipa St., 1
28043 Madrid (Spain)

+34 91 763 40 47
Bogotá

Transversal 22 # 98-82, Porta 100 Building, Office 1003
110221 Bogotá (Colombia)

+57 601 638 68 88
25
years of experience in cybersecurity
Contact us