Simple PHP Blog <= 0.5.1 Local File Include vulnerability
Local file inclusion in Simple PHP Blog via the blog_language1 parameter.
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
References
The information contained within this advisory is supplied 'as-is' with no warranties or guarantees of fitness for use or otherwise. Internet Security Auditors accepts no responsibility for any damage caused by the use or misuse of this information.
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 usDo 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
Our offices
Transversal 22 # 98-82, Porta 100 Building, Office 1003
110221 Bogotá (Colombia)
