---------------------------------------------------------------------- Do you need accurate and reliable IDS / IPS / AV detection rules? Get in-depth vulnerability details: http://secunia.com/binary_analysis/sample_analysis/ ---------------------------------------------------------------------- TITLE: WebCards SQL Injection and File Upload Vulnerabilities SECUNIA ADVISORY ID: SA32440 VERIFY ADVISORY: http://secunia.com/advisories/32440/ CRITICAL: Highly critical IMPACT: Manipulation of data, Privilege escalation, System access WHERE: >From remote SOFTWARE: WebCards 1.x http://secunia.com/advisories/product/20292/ DESCRIPTION: t0pP8uZz has discovered two vulnerabilities in WebCards, which can be exploited by malicious users to compromise a vulnerable system and by malicious people to conduct SQL injection attacks. 1) Input passed to the "user" parameter in admin.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 an administrator without valid administrator credentials, but requires knowledge of an administrator username and that "magic_quotes_gpc" is disabled. 2) A vulnerability is caused due to improper restrictions in admin.php on what file types administrators are allowed to upload. This can be exploited to upload and execute arbitrary PHP code after adding an image macro for the ".php" extension. Successful exploitation of this vulnerability requires valid administrator credentials (but see #1). The vulnerabilities are confirmed in version 1.3_fixed_1. Other versions may also be affected. SOLUTION: 1) Edit the source code to ensure that input is properly sanitised. 2) Grant administrator access to trusted people only. PROVIDED AND/OR DISCOVERED BY: t0pP8uZz ORIGINAL ADVISORY: http://milw0rm.com/exploits/6869 ---------------------------------------------------------------------- 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/advisories/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/advisories/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 ----------------------------------------------------------------------