![]() |
|
|
#1 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
Hello it's been a while since i last helped PP out.
And since there's some new exploit out for L2CP i'd like to share a new type of L2CP. I re-did L2CP in a better and optimized way. And i'll even add more features later on. Thanks to Doraemon or whoever started with this project. And thanks to testdude for the injection fix + checkhash idea Feel free to post bugs/questions/problems/suggestions, have fun. v1.05 - Added a security code and added hash check. v1.00 - New Style/New Way of fixing SQL Injection Exploit and some new features. Preview: ![]() ![]() Вложения из исходного сообщения (сами файлы в копии отсутствуют): l2cpreborn.rar — 84146 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
lawl w/e i might aswell be the person to say this
you didnt fix the sql injection Code:
function checkcookie($where, $cookieuser, $cookiepass, $dbname, $sqladdress, $sqluser, $sqlpass) {
$cookieuser=antiinjection($cookieuser);
$cookiepass=antiinjection($cookiepass);
connectdb($dbname,$sqladdress, $sqluser, $sqlpass);
if($where==0) {
$result = mssql_query(sprintf(SELECT_USER_PASS, $cookieuser));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$password = '0x' . bin2hex($password);
if(md5($password)==$cookiepass) {
quickrefresh('home.php');
} else {
resetcookies();
}
} else {
resetcookies();
}
} elseif($where==1) {
$result = mssql_query(sprintf(SELECT_USER_PASS, $cookieuser));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$password = '0x' . bin2hex($password);
if(md5($password)!=$cookiepass) {
notloggedin();
}
} else {
notloggedin();
}
}
}
<3 from l2e the practically ONLY server to have secured l2cp >.> |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
and also... u might wanna add password hash size checking... if the length of the hash > 34 then that means that pw is corrupt, and cant be used, might wanna add it to register and changepassword
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
27 downloads not a single reply... Welcome to Post Pacific.
I hope you leechers get a fucking letter bomb for christmas. |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Thanks for sharing and welcome back Phantom
![]() P.S. testdude, better watch your blood pressure xD |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Quote:
By the way thanks testude for pointing that out, I realised that the only way to be injected was through cookies but i didn't know shit about how they were handled by l2cp. After hacking my own server yesterday (for testing purposes xD) I finally understand almost everything. And thanks Phantom for your effort, I will surely study your l2cp reborn ^^ |
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Sep 2006
Posts: 122
|
thank dude (reffering to phantom) and thanks testdude for the function
![]() Merry Christmas! |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Nov 2006
Posts: 204
|
i know its a nice panel and all but wouldnt it be easier ( and less exploitable ) to just leave cookies out of it and just check all the input given thru inputfields?
k you wont have a login function and all but just 3 pages with reg/change pw/recover pw but isnt this more secure? ( feel free to flame me or to point out my dumbness ) |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Well, right now if you check cookies and you have restricted user in sql there should be no problem at all. They can't drop tables, they can't exec cmdshells... they can't do shit xD...
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
actually right now if u use my function there is NO sql injection, PERIOD.
and btw cookies are used for logging in... theres not really a way to do it without cookies |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
damn nice share to bad somethin like this was not out before i got injected 2 months ago lol
![]() im using a custom reg right now so i cant use this but great share man and merry xmas
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
dont thank or credit me for fixing ur sql hole and the hash check idea or anything phantom...
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
Thanks testdude.
It's just a release for people that do not know how to do it themselfs. The people that download it should thank you. I don't really care about it anyway, I'm just finishing the work of the one who started this, im doing it for fun, i dont need any credits. |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jun 2006
Posts: 163
|
well... why it doesent work to make an account?all is good... user pass etc...
Every time i make an account i get this (Email length must be 7 to 50 characters long.) i put even 40 caracters email.... lol but no effect... and account is not made... |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
nish
On every page where user enter any data (login, change pass, register, etc), I have this kind of protection! I never put the site on internet without it! It's too easy to implement You are a hero that put your site without it.
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jun 2006
Posts: 100
|
Thank you.
I've the same problem as "AsterisKSM" plus I can't even login I always get a msgbox "You are not logged in".. also what does "Reser" at "Forgot your password?" do ? Thanx. |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jun 2006
Posts: 163
|
Yea Exactly!!!
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jun 2005
Posts: 60
|
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jul 2006
Posts: 69
|
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Dec 2005
Posts: 82
|
Ffs Nooob Admin
|
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jul 2006
Posts: 69
|
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Jun 2006
Posts: 163
|
someone can fix this? (i`m not a php coder..)
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Dec 2006
Posts: 1
|
in functions.php file at function checkhash instead of 34 u must put 32.
THANK YOU FOR THIS SCRIPT and HAPPY NEW YEAR ! |
|
|
|
|