Document Title: =============== CentOS Web Panel v0.9.8.12 - Persistent Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1836 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-5962 CVE-ID: ======= CVE-2018-5962 Release Date: ============= 2018-01-19 Vulnerability Laboratory ID (VL-ID): ==================================== 1836 Common Vulnerability Scoring System: ==================================== 4.4 Vulnerability Class: ==================== Cross Site Scripting - Persistent Current Estimated Price: ======================== 1.000€ - 2.000€ Product & Service Introduction: =============================== CentOS Web Panel - Free Web Hosting control panel is designed for quick and easy management of (Dedicated & VPS) servers without of need to use ssh console for every little thing. There is lot's of options and features for server management in this control panel. CWP automatically installs full LAMP on your server (apache,php, phpmyadmin, webmail, mailserver…). (Copy of the Homepage: http://centos-webpanel.com/features ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered multiple application-side post inject vulnerabilities in the CentOS Web Panel v0.9.8.12. Vulnerability Disclosure Timeline: ================================== 2017-01-19: Non-Public Disclosure (Vulnerability Laboratory - Shared Customer Research Feed) Discovery Status: ================= Published Affected Product(s): ==================== CWP Product: CentOS Web Panel - (CWP) 0.9.8.12 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Authentication Type: ==================== Restricted Authentication (Guest Privileges) User Interaction: ================= Low User Interaction Disclosure Type: ================ Coordinated Disclosure Technical Details & Description: ================================ Multiple application-side POST inject web vulnerabilities has been discovered in the official CentOS Web Panel v0.9.8.12. The vulnerability allows remote attacker to inject own malicious script codes to the application-side of the vulnerable modules. The vulnerabilities are located in the `id` and `email_address` values of the `index.php` file POST method request. Remote attackers are able to inject script code to the POST method request to manipulate the item listing output context. The request method to inject is POST and the attack vector is persistent on the application-side. The injection point are the add POST method requests and the execution point occurs in the output side with the added context. The security risk of the persistent vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 4.4. Exploitation of the persistent web vulnerability requires a low privileged web-application user account and low user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source and persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] phpini_editor [+] mail_add-new Vulnerable File(s): [+] index.php Vulnerable Parameter(s): [+] id [+] email_address Proof of Concept (PoC): ======================= The application-side post inject web vulnerabilities can be exploited by local low privileged user account with low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Dork(s): "powered by CentOS-WebPanel.com" --- PoC Session Logs [POST] --- Status: 200[OK] POST http://localhost:2030/index.php?module=phpini_editor Mime Type[text/html] Request Header: Host[localhost:2030] User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Referer[http://localhost:2030/index.php?module=phpini_editor] Cookie[cwpsrv-3cc0cea69668d490e1029c2a41ce5df3=8fnvi0bqgjj162mqklruu8clq5; PHPSESSID=8dsrha0ivd80kkgukvklgvmct1] Connection[keep-alive] POST-Daten: id[%3E%22%3CPAYLOAD INJECTION POINT!+src] del[] Response Header: Server[Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips PHP/5.4.27] X-Powered-By[PHP/5.4.27] Expires[Thu, 19 Nov 1981 08:52:00 GMT] Keep-Alive[timeout=5, max=94] Connection[Keep-Alive] Transfer-Encoding[chunked] Content-Type[text/html] PoC: POST via Delete function in phpini_editor via Add your custom settings! input