Document Title: =============== CodeLock Encrypter v2.7 - Multiple Web Vulnerabilities Release Date: ============= 2011-08-04 Vulnerability Laboratory ID (VL-ID): ==================================== 102 Product & Service Introduction: =============================== The PHP/HTML Encryptor & The Codelock Engine script. This option is for PHP / HTML Programmers or webmasters who want to encrypt their own files before distribution with Extra Strong Security and more options. The Joomla Plugin is based on the PHP,SQL Application and can be integrated easily. (Copy of the Vendor Homepage: http://www.codelock.co.nz/) Abstract Advisory Information: ============================== An anonymous laboratory researcher discovered multiple web vulnerabilities on CodeLock V2.7 web application. Vulnerability Disclosure Timeline: ================================== 2011-08-05: Public or Non-Public Disclosure Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ 1.1 A file upload vulnerability is detected on CodeLock v2.x. The service folders to encrypt is running in CHMOD 777 & 2777. This misconfiguration allows an attacker to upload a webshell to the encryption folder. Vulnerable Module(s): [+] HTML Encrypter - codelock_gohtml.php 1.2 2 persistent input validation vulnerabilities are detected on CodeLock v2.x. the vulnerability allows an attacker to inject own persistent script code to the web application interface of CodeLock. Vulnerable Module(s): [+] PHP Encrypter - index.php [+] PHP Encrypter - codelock_goenc.php Pictures: ../codelock-script-injection.png ../codelock-rce.png Proof of Concept (PoC): ======================= The vulnerabilities can be exploited by remote attackers. For demonstration or reproduce ... 1.1 No PoC required for webshell uploads! 1.2 Include any script -code (js,html) on the vulnerable module to reproduce the vulnerability manually. Module: PHP Encrypter File: index.php Information: Right-click alert message: & Decryptor filename: Module: PHP Encrypter File: codelock_goenc.php Information: License to (Name):, Specify your file here: & Script Name: Security Risk: ============== The security risk of the file upload vulnerability is estimated as high. The security risk of the persistent validation vulnerabilities are estimated as medium. Credits & Authors: ================== Vulnerability Research Laboratory - N/A Anonymous Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability- Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.vulnerability-lab.com/register Contact: admin@vulnerability-lab.com - support@vulnerability-lab.com - research@vulnerability-lab.com Section: video.vulnerability-lab.com - forum.vulnerability-lab.com - news.vulnerability-lab.com Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, sourcecode, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission. Copyright © 2012 | Vulnerability Laboratory