PDA

View Full Version : [Release] SSPORA - New Account Page


TheMagic
08-05-2009, 04:08 AM
Secure
Simple
Page
Of
Registration
(of)
Accounts

Credits:
Myself
Gachl


Based off of Yaart
Inspired by SPORA
Modified to support WotLK
CAPTCHA Image Verification - No more spammers
Password Verification - No more users creating 2nd accounts because of typos!
Drop down menu expansion chooser - No check-boxes that only allow TBC and WotLK
Securest account page available prevents:

SQL Injection
HTML Injection
Code Injection
Bots
Spammers
Remotefileview
Remoteinclude
Does not ask for e-mail - Who actually e-mails their users anyway ;)
Only 2 files required, no extra images needed for CAPTCHA's


Notes:

To change background image rename the image you want to use to bg.jpg

Changelog:

V2 - Added SPORA Background Support

http://img43.imageshack.us/img43/9339/hghygnhyghgnv.png


Demo (http://www.wow-pvp.org/SSPORA.php)

Download v1 (http://sspora.googlecode.com/files/SSPORA.php)
Download v2 (http://sspora.googlecode.com/files/SSPORAv2.zip)

SandersP
08-05-2009, 07:38 PM
Bump

TheMagic
08-08-2009, 03:09 AM
Added V2

PsyK
08-08-2009, 11:45 AM
In the demo your Buttons are off, they need to be fixed or use a style sheet to create absolute values.

Also the Captcha image and the box next to it are slightly off.

TheMagic
08-08-2009, 08:10 PM
Good enough for me, if people don't like it they can use V1, it took me forever just to get that centered that close :P

Dixx0912
09-10-2009, 07:17 AM
works it on mangos?

Nick
09-13-2009, 06:28 AM
# Securest account page available prevents:

SQL Injection
HTML Injection
Code Injection
Bots
Spammers
Remotefileview
Remoteinclude

Except it prevents nothing, I don't think you have the consept of this creation script ye. It prevents: Password typos, Spambots. Thats it, HTML injection? your using php functions, if anything it will be a sql injection and its not even 100% secure because i could get a XSS exploit into that easy.. Oh wait i belive i already have :o

1 more think your retarded, people use the email function. Forgotten passwords etc script, to verify account details and much more, Go over your script and make a new thread with things that make sense.

TheMagic
09-16-2009, 01:20 AM
STFU, I just copied the description Gachl posted.. If they want password recovery they should make a new DB for e-mails and it could look up the password and send it to them. You'd also need an auto-mailing system which barely any servers even have setup.

timlinson
09-16-2009, 01:30 AM
Except it prevents nothing, I don't think you have the consept of this creation script ye. It prevents: Password typos, Spambots. Thats it, HTML injection? your using php functions, if anything it will be a sql injection and its not even 100% secure because i could get a XSS exploit into that easy.. Oh wait i belive i already have :o

1 more think your retarded, people use the email function. Forgotten passwords etc script, to verify account details and much more, Go over your script and make a new thread with things that make sense.

Your a dumbass.

You think your o-so-good? You say you hacked WoW-Pwnage's site? Tell us then, what did you all do to it, If you can, show us, modify the site news.


You don't release anything, you only leech. GTFO!

Chr0nik
09-16-2009, 01:38 AM
Your a dumbass.

You think your o-so-good? You say you hacked WoW-Pwnage's site? Tell us then, what did you all do to it, If you can, show us, modify the site news.


You don't release anything, you only leech. GTFO!

Um, Actually he's quite correct. And he never claimed to release anything, I don't know how ethical hacking is leeching but okay.
I'm not trying to flame anyone, just stating quite obvious facts that you seem to be oblivious to.

TheMagic
09-16-2009, 01:46 AM
Are you talking to me or him? I never said I hacked WoW-Pwnage, I posted a thread joking that my site got hacked that used the source code of the hacked page with a funny youtube video on it

Sega1964
09-21-2009, 07:41 PM
Thank god ive been looking for this!

TheMagic
09-23-2009, 11:51 PM
At least someone likes it

nathalia
09-24-2009, 03:29 PM
A little constructive feedback, if you want to make it even more secure - then strip off "Die . mysql_error();" everywhere, showing errors can always prove to be fatal, as it tells the hacker something about the system of your application structures / databases etc.

TheMagic
09-26-2009, 02:10 AM
A quick Find and Replace shouldn't be to hard to remove them :P

expo
09-26-2009, 04:23 AM
A little constructive feedback, if you want to make it even more secure - then strip off "Die . mysql_error();" everywhere, showing errors can always prove to be fatal, as it tells the hacker something about the system of your application structures / databases etc.

Or just turn of display_errors and log it.

TheMagic
09-27-2009, 02:42 AM
I think most people would want to see their errors though

expo
09-27-2009, 02:47 AM
Then wouldn't it make sense to output those mysql errors with a die statement?

Warning the above question is rhetorical.

TheMagic
09-27-2009, 02:54 AM
I don't know much about how Gachl wrote the page, all I did was modify the Drop down menu for Wotlk, and remove some text boxes

expo
09-28-2009, 12:30 AM
I don't know much about how Gachl wrote the page, all I did was modify the Drop down menu for Wotlk, and remove some text boxes

Wow, so you had to act like you made it so much better. Must have been so difficult with minimal effort.

TheMagic
09-28-2009, 12:36 AM
It's a lot better in my opinion, I didn't see anyone else updating Yaart

Sinnical
09-28-2009, 12:43 AM
Very Nice.

TheMagic
09-28-2009, 12:45 AM
Ty ;)

expo
09-28-2009, 02:18 AM
It's a lot better in my opinion, I didn't see anyone else updating Yaart

Meh, it just seems like very little was done for it.

marmita
09-28-2009, 07:17 PM
EDIT: i was wrong didnt read the credits :>

its nice but .. not secure..

im not saying its bad but.. a tip for the next version (if there will be)
make it much more secure then it now is, a hacker can easily delete the whole database..

well Gl in the future

and ppl dont flame hes script, EVERY1 made some wrong things and be happy he did it wrong if you do it wrong you can make it always better in the future


sorry for my bad english but yeah.. im dutch :p

TheMagic
09-28-2009, 09:28 PM
Can you explain how this could be done? I know with every account page there is always some type of bug, but I didn't know that anything severe as that could be done.

expo
09-28-2009, 10:59 PM
I was gonna try to SQL inject it, but I didn't feel like it. At a glance the only thing I saw making the sql secure was trim().

mcclaink
10-14-2009, 01:45 AM
im TOTALLY noob to this
and been trying to get acc creation page
for like a week now,
instructions would be excellent!
+rep to whoever helps me

expo
10-14-2009, 02:22 AM
im TOTALLY noob to this
and been trying to get acc creation page
for like a week now,
instructions would be excellent!
+rep to whoever helps me

First, do you have apache running?

If so, have you configured SSPORA?

If so, I can take a look on TeamViewer.

Just let me know who you are on AC-Web.

mcclaink
10-14-2009, 04:07 AM
configured SSPORA?
is it an actual program?
the download only came with a .php and a .jpg file

expo
10-14-2009, 05:48 PM
configured SSPORA?
is it an actual program?
the download only came with a .php and a .jpg file

And inside the PHP file you have to change some of the top variables.

mcclaink
10-14-2009, 06:20 PM
yeah, done all that.
edit localhost or whateer it was
to my dynDNS

err edit $server to my dynDNS

TheMagic
10-22-2009, 07:43 PM
You have a webserver right? Like XAMPP?

and make sure it's configured similar to this:

$dburl = "127.0.0.1";
$dbuser = "root";
$dbpass = "ascent";
$dbwname = "logon";
$dbiname = "info";
$enableic = "false";
$itable = "info";
$atable = "accounts";
$usernamefield = "login";
$emailfield = "email";

Elfandor
10-22-2009, 07:49 PM
does it support mangos?

TheMagic
11-15-2009, 09:03 PM
Not yet, but support for MaNGOS may be added in the future

Epix
01-07-2010, 02:15 PM
nice and simple i love it!

xzandra
01-07-2010, 08:05 PM
This looks realy good! :) +rep

Gimp
01-07-2010, 10:28 PM
Not yet, but support for MaNGOS may be added in the future

Here's the PHP code for a Mangos registration script, I was going to try converting your registration page to Mangos but yours is quite complicated and I'm just learning PHP still.

<?php
/*Config*/

$realmd = array(
'db_host'=> 'localhost', //ip of db realm
'db_username' => 'mangos',//realm user
'db_password' => '',//realm password
'db_name'=> 'realmd',//realm db name
);


///////////////Start script//////////////////

/*
Function name: CHECK FOR SYMBOLS
Description: return TRUE if matches. ( True = OK ) ( False = NOT OK)
*/
function check_for_symbols($string){
$len=strlen($string);
$alowed_chars="abcdefghijklmnopqrstuvwxyzæøåABCDEFGHIJKL MNOPQRSTUVWXYZÆØÅ";
for($i=0;$i<$len;$i++)if(!strstr($alowed_chars,$string[$i]))return TRUE;
return FALSE;

}
/*
Function name: OUTPUT USERNAME:PASSWORD AS SHA1 crypt
Description: obious.
*/
function sha_password($user,$pass){
$user = strtoupper($user);
$pass = strtoupper($pass);

return SHA1($user.':'.$pass);
}

if ($_POST['registration']){
/*Connect and Select*/
$realmd_bc_new_connect = mysql_connect($realmd[db_host],$realmd[db_username],$realmd[db_password]);
$selectdb = mysql_select_db($realmd[db_name],$realmd_bc_new_connect);
if (!$realmd_bc_new_connect || !$selectdb){
echo "Could NOT connect to db, please check the config part of the file!";
die;
}

/*Checks*/
$username = $_POST['username'];
$password = sha_password($username,$_POST['password']);

$qry_check_username = mysql_query("SELECT username FROM `account` WHERE username='$username'");

if (check_for_symbols($_POST[password]) == TRUE || check_for_symbols($username) == TRUE || mysql_num_rows($qry_check_username) != 0){
echo "Error with creating account, might already be in use or your username / password has invalid symbols in it.";
}else{
mysql_query("INSERT INTO account (username,sha_pass_hash) VALUES
('$username','$password')");// Insert into database.
echo "Account created.";
}


}else{
///////////////Stop script, Start HTML//////////////////
?>


<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
Username <input type="text" name="username">

Password <input type="password" name="password">

<input type="submit" name="registration">
</form>


<?php
// Do not remove this;)
}
?>

terron1
01-22-2010, 08:41 PM
Warning: session_start() [function.session-start]: open(..\Server\tmp\sess_73ae6a6c2aaf4dbd880a744145 a266b8, O_RDWR) failed: No such file or directory (2) in C:\WRMZ-EMU V2\Server\htdocs\SSPORA.php on line 281

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\WRMZ-EMU V2\Server\htdocs\SSPORA.php:281) in C:\WRMZ-EMU V2\Server\htdocs\SSPORA.php on line 281

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\WRMZ-EMU V2\Server\htdocs\SSPORA.php:281) in C:\WRMZ-EMU V2\Server\htdocs\SSPORA.php on line 281

any ideas???? btw it doesnt show any images.

TheMagic
03-10-2010, 11:15 PM
Bumper

http://www.have-fun-in-the-southwest.com/images/BoondocksBumperBoat.gif

didyoudielol
03-10-2010, 11:37 PM
well i think it looks good keep up the work magic i agree simple looking but hey simple works some shit i have seen here looks so fuking complicated to use you would need to be a rocket scientist lol.

Jgro1413
03-13-2010, 11:33 PM
The whole thing looks extremly messed up for me?

TheMagic
05-12-2010, 01:39 PM
You have to have a MySQL server running and have it stored on a Webserver

xxgameovaxx
05-12-2010, 11:39 PM
is this arcemu?

Rewrite
05-18-2010, 01:20 AM
Nice!
bUMp!