---------------------------------------------------------------------- Get a tax break on purchases of Secunia Solutions! If you are a U.S. company, you may be qualified for a tax break for your software purchases. Learn more at: http://secunia.com/products/corporate/vim/section_179/ ---------------------------------------------------------------------- TITLE: Smarty "{smarty.template}" and "{smarty.current_dir}" Security Bypass SECUNIA ADVISORY ID: SA43284 VERIFY ADVISORY: Secunia.com http://secunia.com/advisories/43284/ Customer Area (Credentials Required) https://ca.secunia.com/?page=viewadvisory&vuln_id=43284 RELEASE DATE: 2011-02-19 DISCUSS ADVISORY: http://secunia.com/advisories/43284/#comments AVAILABLE ON SITE AND IN CUSTOMER AREA: * Last Update * Popularity * Comments * Criticality Level * Impact * Where * Solution Status * Operating System / Software * CVE Reference(s) http://secunia.com/advisories/43284/ ONLY AVAILABLE IN CUSTOMER AREA: * Authentication Level * Report Reliability * Secunia PoC * Secunia Analysis * Systems Affected * Approve Distribution * Remediation Status * Secunia CVSS Score * CVSS https://ca.secunia.com/?page=viewadvisory&vuln_id=43284 ONLY AVAILABLE WITH SECUNIA CSI AND SECUNIA PSI: * AUTOMATED SCANNING http://secunia.com/vulnerability_scanning/personal/ http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/ DESCRIPTION: Some vulnerabilities have been discovered in Smarty, which can be exploited malicious people to bypass certain security restrictions. The vulnerabilities are caused due to Smarty not properly sanitising the filename or location of templates before using them. This can be exploited to bypass the template security and execute arbitrary PHP commands via an affected application relying on the template security features by creating a template containing "{smarty.template}" with a specially crafted filename or "{smarty.current_dir}" in a specially named folder. Successful exploitation requires control over the template's filename or folder and content. The vulnerabilities are confirmed in version 3.0.6. Other versions may also be affected. SOLUTION: Update to version 3.0.7. PROVIDED AND/OR DISCOVERED BY: jonieske ORIGINAL ADVISORY: Smarty: http://groups.google.com/group/smarty-announce/browse_thread/thread/18af294596756ac8 http://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt jonieske: http://www.smarty.net/forums/viewtopic.php?t=18815 OTHER REFERENCES: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ DEEP LINKS: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXTENDED DESCRIPTION: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXTENDED SOLUTION: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXPLOIT: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help private users 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 ----------------------------------------------------------------------