Praetorian503 Posted December 29, 2012 Report Posted December 29, 2012 CubeCart versions 5.0.7 and below suffer from an insecure backup file handling vulnerability.1. OVERVIEWCubeCart 5.0.7 and lower versions are vulnerable to Insecure BackupFile Handling which leads to the disclosure of the applicationconfiguration file.2. BACKGROUNDCubeCart is an "out of the box" ecommerce shopping cart softwaresolution which has been written to run on servers that have PHP &MySQL support. With CubeCart you can quickly setup a powerful onlinestore which can be used to sell digital or tangible products to newand existing customers all over the world.3. VULNERABILITY DESCRIPTIONCubeCart 5.0.7 and lower versions contain a flaw that insecurely backsup the configuration file, "global.inc.php", upon new installation orupgrade process. The name of backup configuration file is set to theyear, month, day, hour, minute that the process is performed. Thenon-randomized nature of this backup scheme allows an attacker toretrieve the file through brute-force method.4. VERSIONS AFFECTED5.0.7 and lower versions5. Affected Files/setup/setup.install.php/setup/setup.upgrade.php///////////CODE //////////////##Backup existing config file, if it existsif (file_exists($global_file)) { rename($global_file, $global_file.'-'.date('Ymdgi'));}/////////////////////////e.g.http://127.0.0.1/cube507/includes/global.inc.php-2012021245719 \6. SOLUTIONUpgrade to the latest CubeCart version - 5.x.7. VENDORCubeCart Development Teamhttp://cubecart.com/8. CREDITAung Khant, http://yehg.net, YGN Ethical Hacker Group, Myanmar.9. DISCLOSURE TIME-LINE2012-03-24: Vulnerability reported2012-12-28: Vulnerability disclosed10. REFERENCESOriginal Advisory URL:http://yehg.net/lab/pr0js/advisories/%5Bcubecart_5.0.7%5D_insecure-backupCubeCart Home Page: http://cubecart.com/#yehg [2012-12-28]---------------------------------Best regards,YGN Ethical Hacker GroupYangon, Myanmarhttp://yehg.netOur Lab | http://yehg.net/labOur Directory | http://yehg.net/hwdSource: YGN Ethical Hacker Group :: Security Research Quote