TITLE: phpAdsNew Disclosure of Path Information and SQL Injection SECUNIA ADVISORY ID: SA17464 VERIFY ADVISORY: http://secunia.com/advisories/17464/ CRITICAL: Moderately critical IMPACT: Manipulation of data, Exposure of system information WHERE: >From remote SOFTWARE: phpAdsNew 2.x http://secunia.com/product/4585/ DESCRIPTION: Toni Koivunen has discovered a vulnerability and a weakness in phpAdsNew, which can be exploited by malicious people to disclose system information and conduct SQL injection attacks. 1) Input passed to the "sessionID" cookie parameter in "logout.php" isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. Successful exploitation requires that "magic_quotes_gpc" is disabled. 2) The problem is that it is possible to disclose the full path to "misc/revisions/create.php" by accessing it directly. This can further be exploited to list installed scripts by accessing "libraries/defaults/revisions.txt". It is also possible to disclose the full path to other scripts by accessing them directly. However, this require that "display_errors" is enabled which is not a recommended setting for production systems. The vulnerability and the weakness have been confirmed in version 2.0.6. Other versions may also be affected. SOLUTION: Edit the source code to ensure that input is properly sanitised and restrict access to "misc/revisions/create.php" and "libraries/defaults/revisions.txt". PROVIDED AND/OR DISCOVERED BY: Toni Koivunen ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------