Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 03:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Secure PHP Web Registration Script (MSSQL ODBC)

Discussion on [RELEASE] Secure PHP Web Registration Script (MSSQL ODBC) within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 09/20/2012, 14:47   #16
 
elite*gold: 0
Join Date: Feb 2012
Posts: 267
Received Thanks: 50
Solved thank you.

Edit:
Cant create Accounts now, cause RowID cant insert nulls -.-

What about RowID = NULL <- does it make problems for players?
cypherxxl is offline  
Old 10/08/2012, 23:16   #17
 
elite*gold: 0
Join Date: Aug 2012
Posts: 1
Received Thanks: 0
Hello, I had the same problem I fixed easily RowID
1: I did step which showed JohnHeatz
2: Next just put a check RowID



I hope to help and sorry for bad english
venci12345 is offline  
Old 10/09/2012, 13:52   #18
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,286
Set UserUID as the Primary Key, and drop RowID
RebeccaBlack is offline  
Thanks
5 Users
Old 02/02/2013, 12:18   #19
 
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 203
Tested with Acunetix web vulnerability scanner 8
Results:
This script is possibly vulnerable to SQL Injection attacks.

SQL injection is a vulnerability that allows an attacker to alter backend SQL statements by manipulating the user input. An SQL injection occurs when web applications accept user input that is directly placed into a SQL statement and doesn't properly filter out dangerous characters.

This is one of the most common application layer attacks currently being used on the Internet. Despite the fact that it is relatively easy to protect against, there is a large number of web applications vulnerable.
This vulnerability affects /registration/changepass.php.
Discovered by: Scripting (Blind_Sql_Injection.script).
infinite59 is offline  
Old 02/02/2013, 13:13   #20
 
TeddyBear94's Avatar
 
elite*gold: 10
Join Date: May 2012
Posts: 1,857
Received Thanks: 2,628
the script at all is vulnerable to sql injection true. but the recaptcha which is placed in that script avoids the sql injection. if that recaptcha isnt placed in the registration that is it possible to get into via sql injection so i suggest to leave recaptcha in or otherwise u will be an easy target.
TeddyBear94 is offline  
Old 02/04/2013, 23:16   #21
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
Quote:
Originally Posted by infinite59 View Post
Tested with Acunetix web vulnerability scanner 8
Results:
This script is possibly vulnerable to SQL Injection attacks.

SQL injection is a vulnerability that allows an attacker to alter backend SQL statements by manipulating the user input. An SQL injection occurs when web applications accept user input that is directly placed into a SQL statement and doesn't properly filter out dangerous characters.

This is one of the most common application layer attacks currently being used on the Internet. Despite the fact that it is relatively easy to protect against, there is a large number of web applications vulnerable.
This vulnerability affects /registration/changepass.php.
Discovered by: Scripting (Blind_Sql_Injection.script).
Your scanner is unable tell if it is vulnerable or not, which is why it says it is "possibly" vulnerable to SQL injection attacks. If you look at the scripts you will see there is no place where user input is directly placed into a SQL statement. Thus, the scripts are not vulnerable to SQL injection.


Quote:
Originally Posted by TeddyBear94 View Post
the script at all is vulnerable to sql injection true. but the recaptcha which is placed in that script avoids the sql injection. if that recaptcha isnt placed in the registration that is it possible to get into via sql injection so i suggest to leave recaptcha in or otherwise u will be an easy target.
The purpose of ReCaptcha is to prevent people from botting account creation. It has no effect at all in regards to SQL injection.
abrasive is offline  
Thanks
2 Users
Old 02/06/2013, 03:35   #22
 
elite*gold: 0
Join Date: May 2012
Posts: 75
Received Thanks: 155
Quote:
Your scanner is unable tell if it is vulnerable or not, which is why it says it is "possibly" vulnerable to SQL injection attacks. If you look at the scripts you will see there is no place where user input is directly placed into a SQL statement. Thus, the scripts are not vulnerable to SQL injection.
^ Exactly. There is no possible SQL injection through those scripts, even using TamperData to manually edit the data in transit SQLi is blocked. There is however confirmed XSS in the input fields. If you put in code it is reflected back to the user. Although the type of XSS isn't even remotely high impact the code should probably be changed up a bit to provide better input sanitization (I would do it but I am a horrible coder).

Kudos on the scripts Abrasive.

Also, you can't rely to heavily on the output from vulnerability scanners as they tend to only test heuristics instead of actually trying the attack vector. Heuristic scanners are always prone to give out false positives. This is true of Acunetix, WebSecurify, W3AF, Arachni, Nessus, OpenVAS, etc. They are useful for giving you an idea of where a vulnerability may be present, but you always need to test it yourself before you can really know for sure.
Su1ph3r is offline  
Thanks
4 Users
Old 02/06/2013, 06:53   #23
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
Quote:
Originally Posted by Su1ph3r View Post
^ Exactly. There is no possible SQL injection through those scripts, even using TamperData to manually edit the data in transit SQLi is blocked. There is however confirmed XSS in the input fields. If you put in code it is reflected back to the user. Although the type of XSS isn't even remotely high impact the code should probably be changed up a bit to provide better input sanitization (I would do it but I am a horrible coder).

Kudos on the scripts Abrasive.

Also, you can't rely to heavily on the output from vulnerability scanners as they tend to only test heuristics instead of actually trying the attack vector. Heuristic scanners are always prone to give out false positives. This is true of Acunetix, WebSecurify, W3AF, Arachni, Nessus, OpenVAS, etc. They are useful for giving you an idea of where a vulnerability may be present, but you always need to test it yourself before you can really know for sure.
You are correct about the XSS in a sense. You can only XSS yourself with it, which I can't think of a single useful reason to do that. Also in that context it would not really be cross site scripting, since only you can see it, and not everyone accessing the site.

It is still my bad for overlooking the htmlentities() call in the view though -.-
abrasive is offline  
Old 02/06/2013, 08:37   #24
 
elite*gold: 0
Join Date: May 2012
Posts: 75
Received Thanks: 155
Quote:
Originally Posted by abrasive View Post
You are correct about the XSS in a sense. You can only XSS yourself with it, which I can't think of a single useful reason to do that. Also in that context it would not really be cross site scripting, since only you can see it, and not everyone accessing the site.

It is still my bad for overlooking the htmlentities() call in the view though -.-
Yeah that's why I said it wasn't even remotely high impact. In the context of the Registration Script as is, it isn't even close to XSS, but that's only if you are using traditional methods for XSS such as javascript or html (iframes, anchors, etc.) BUT since XSS can actually be exploited through any scripting language, it becomes a bit more of an issue if you use other scripting languages.

I've not been able to do anything high impact with it, and I doubt it could be done tbh, but I have been able to get certain CGI languages to render through the input fields. Nothing more than a popup though.

The scripts are really nicely coded. It's clear you put some thought into them.
Su1ph3r is offline  
Old 02/11/2013, 23:55   #25
 
elite*gold: 0
Join Date: Sep 2012
Posts: 19
Received Thanks: 0
hi i want to know if it possible to setup auto increment with a script or modified the table:
CREATE TABLE [dbo].[Users_Master](
[UserUID] [int] NOT NULL,AUTO_INCREMENT or something like that ( this request not work) because i cant change propriety of the columm the screen is blocked . i try with all account of sql but options screen is blocked i cant anything thanks

Problem resolved , i don't see the little crooss at left of name for open the submenus in propeties . so my web register work when i run it with xampp i can create account but now the problem is when i try to create an account on my website (ucoz) thats said 404 error not found .
i think problem come from IP or maybe i need change in xampp or server or to insert a link of the webpage to xammp . i m lost . can help me please thx
seb35137 is offline  
Old 07/14/2013, 18:21   #26
 
elite*gold: 0
Join Date: Apr 2012
Posts: 11
Received Thanks: 0
If i set UserUID allows Nulls, this can be a problem when the server seach for an ID? Because in one regsystem use UserUID and in this one use RowID ...
sitrus123 is offline  
Old 07/14/2013, 19:33   #27
 
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 203
You can drop column RowID and set UserUID to auto increment
And definitely no, don't make UserUID allow nulls as this identifier is the one used by the server to recognise you
infinite59 is offline  
Old 08/14/2013, 13:41   #28
 
elite*gold: 0
Join Date: Feb 2013
Posts: 99
Received Thanks: 7
Ok, needing some help and not understanding why I'm getting this error: Failed to determine if this username already exists in the database.

Never had this one until now. Setup is on WinServ 2008 R2 x64 MSSQL Server 2012
oasis1984 is offline  
Old 07/05/2014, 05:50   #29
 
elite*gold: 0
Join Date: Feb 2014
Posts: 110
Received Thanks: 11
That a joke ? Well I dropped RowID, account created successfully but can't log on game, because don't add a new user on the OMG GameWEB, what I need to do ?

I think had a problem on the script or something like that, I only have the Users_Masters and not the OMG_GameWEB account.
white95260 is offline  
Old 07/07/2014, 23:07   #30
 
oldjayy's Avatar
 
elite*gold: 16
Join Date: Jun 2011
Posts: 63
Received Thanks: 159
You don't need OMG_GameWEB at all. Also dropping RowID would not cause any problem.
oldjayy is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE] Secure PHP Web Registration Script
10/08/2019 - Shaiya PServer Guides & Releases - 208 Replies
This is technically obsolete now, and I'd recommend using my newer script instead. This is a secure registration script meant for Shaiya private servers. I noticed a lot of private servers were using sandolkakos's registration script, which is very dangerous since it is vulnerable to SQL injection. Ideally your UserUID column in the table PS_UserData.dbo.Users_Master should be set to auto-increment. If this is not the case, you will need to adjust this script, or ideally fix your...
[Release] PVP Rankings (MSSQL ODBC)
07/16/2017 - Shaiya PServer Guides & Releases - 57 Replies
First of all please don't ask how to use these files in this thread. There are plenty of sites on the internet which explain how to set up a WAMP/XAMPP/IIS server on a Windows OS based computer. All you need to run this is an MSSQL database, and a web server which can process PHP files, such as Apache (the A in the WAMP/XAMPP acronyms), or IIS7+. This is a PHP based rankings script for use with the MSSQL ODBC database connector. Features Tool-tip showing recent killed/killed by...
Secure PHP Web Registration Script
07/21/2011 - Shaiya Private Server - 2 Replies
Original Thread Link - http://www.elitepvpers.com/forum/shaiya-pserver-de velopment/886028-release-secure-php-web-registrati on-script.html Does anybody know if there is a video tutorial for this out there, and if there isn't then can somebody please post one and send me link via messaging through this website. Or post reply on this thread, i genuinely have no idea how to configure my SQL to suit the required files you need to do this. Then when you do finish it, how does it go from SQL to...
[RELEASE]Web Pack ( MSSQL / ODBC )
05/01/2009 - Dekaron Private Server - 8 Replies
Hello guys. Here my little Web Script Pack as MSSQL and ODBC version. I hope , i have found now all bugs and errors and its work. In the Packs are the follow scripts : register.php <--- Register Accounts ranking.php <--- List characters , order by Level and Exp , list only non GMs guild.php <--- List all guilds . order by members count and list all guild members



All times are GMT +2. The time now is 03:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.