Secunia SmallBusiness
Overview
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading

Secunia Advisory SA27968

phpRPG SQL Injection and Information Disclosure
Secunia Advisory SA27968
Secunia VIM 4.0 - Free Trial
Release Date 2007-12-17
Last Update 2007-12-21
   
Popularity 7,758 views
Comments 0 comments

Criticality level Moderately criticalModerately critical
Impact Security Bypass
Manipulation of data
Exposure of sensitive information
Where From remote
Authentication level This information is available to Secunia VIM customers
   
Report reliability This information is available to Secunia VIM customers
Solution Status Unpatched
   
Systems affected This information is available to Secunia VIM customers
Approve distribution This information is available to Secunia VIM customers
Remediation status Secunia VIM
   
Software:
phpRPG 0.x

Secunia CVSS Score This information is available to Secunia VIM Customers
CVE Reference(s) CVE-2007-6484 CVSS score available to Secunia VIM customers
CVE-2007-6469 CVSS score available to Secunia VIM customers
CVE-2007-6470 CVSS score available to Secunia VIM customers
  

Description

Michael Brooks has discovered some vulnerabilities in phpRPG, which can be exploited by malicious people to conduct SQL injection attacks and to disclose sensitive information.

1) Input passed to the "username" and "password" parameters in index.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation of this vulnerability allows e.g. logging in as administrator without valid administrator credentials, but requires that "magic_quotes_gpc" is disabled.

2) A vulnerability is caused by not properly protecting session files in the "tmp/" directory. Directory listings for that directory contain the session IDs used by the application. This can be exploited to pass session IDs in the "PHPSESSID" cookie and take over other users' sessions.

Successful exploitation of this vulnerability requires that the web server is configured to display directory listings for the "tmp/" directory.

The vulnerabilities are confirmed in version 0.8.0. Other versions may also be affected.


Solution
Edit the source code to ensure that input is properly sanitised. Restrict access to the "tmp/" directory (e.g. with ".htaccess").

Provided and/or discovered by
Michael Brooks

Changelog
Further details available to Secunia VIM customers

Deep Links
Links available to Secunia VIM customers


Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: phpRPG SQL Injection and Information Disclosure
 
No posts yet

-

You must be logged in to post a comment.




 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2013 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability