---------------------------------------------------------------------- Want a new job? http://secunia.com/secunia_vacancies/ Secunia is looking for new researchers with a reversing background and experience in writing exploit code: http://secunia.com/hardcore_disassembler_and_reverse_engineer/ http://secunia.com/Disassembling_og_Reversing/ ---------------------------------------------------------------------- TITLE: Php-Stats SQL Injections and PHP Code Execution SECUNIA ADVISORY ID: SA24553 VERIFY ADVISORY: http://secunia.com/advisories/24553/ CRITICAL: Highly critical IMPACT: Manipulation of data, System access WHERE: >From remote SOFTWARE: Php-Stats 0.x http://secunia.com/product/8560/ DESCRIPTION: rgod has reported some vulnerabilities in Php-Stats, which can be exploited by malicious people to conduct SQL injection attacks or compromise a vulnerable system. 1) Input passed to the "PC-REMOTE-ADDR" HTTP header in php-stats.recphp.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. 2) Input passed to the "ip" parameter in php-stats.recphp.php is not 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 the "accept_ssi" option is enabled. 3) Input passed to "report_w_day" option is not properly sanitised before being stored in the /option/php-stats-options.php file. This can be exploited to inject and execute arbitrary PHP code. Successful exploitation requires the administrator password, which can be gained by exploiting vulnerability #1 or #2. The vulnerabilities are reported in version 0.1.9.1b. Other versions may also be affected. SOLUTION: Edit the source code to ensure that input is properly sanitised. PROVIDED AND/OR DISCOVERED BY: rgod ORIGINAL ADVISORY: http://milw0rm.com/exploits/3496 http://milw0rm.com/exploits/3497 http://milw0rm.com/exploits/3502 ---------------------------------------------------------------------- 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 ----------------------------------------------------------------------