Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #16  
Old 03-01-2006, 02:31 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
How secure is comparing an MD5 result, as the password?
__________________
  #17  
Old 03-01-2006, 11:09 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
well i dont know if u can use md5 because its one of this one-way encryptions, but i think at a php file you have to write the unencrypted password in...
or you could just connect at the php file and make a database for passwords
  #18  
Old 03-01-2006, 11:04 PM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
MD5 is NOT a form of encryption.
http://en.wikipedia.org/wiki/Md5
  #19  
Old 03-02-2006, 01:04 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by SilentOne1988
MD5 is NOT a form of encryption.
http://en.wikipedia.org/wiki/Md5
I already know that. I asked if MD5 comparison was a simple but relatively safe method?
__________________
  #20  
Old 03-31-2006, 12:46 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Any plans to enable this function anytime soon?
__________________

Current Maloria Event: (click to go to it)
  #21  
Old 09-02-2006, 12:48 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
Exclamation >.>

First off, you DON'T need to send the password OR username, you make a config PHP file for that; Sending ANYTHING as get vars (The vars after ?, seperated by &s), is INSECURE, and downright retarded. Second, MD5 is hashing, it is one way, and it's common sense how you use it, no word will hash the same way, so you just hash both and compare. If you don't know about SQL Servers, don't even try them, just use scripted databasing. If you got your own SQL server, create an account that can only send INSERT and SELECT, that's all you need to add and read from a database.
__________________
<body>Signature</body>
  #22  
Old 09-02-2006, 01:05 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by linkoraclehero
First off, you DON'T need to send the password OR username, you make a config PHP file for that; Sending ANYTHING as get vars (The vars after ?, seperated by &s), is INSECURE, and downright retarded.
Eh, it is not really any more or less secure than opening a socket to your sql server and shooting data down it.
  #23  
Old 09-02-2006, 01:07 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
><

It's very insecure, get data can be read by anyone, thus anyone seeing the username and password can use a database manager to hack in, whereas using a PHP file, your using serverside vars, noone can see them, And the only accesses that can be made are serverside.
__________________
<body>Signature</body>
  #24  
Old 09-02-2006, 01:08 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by linkoraclehero
It's very insecure, get data can be read by anyone, thus anyone seeing the username and password can use a database manager to hack in, whereas using a PHP file, your using serverside vars, noone can see them, And the only accesses that can be made are serverside.
That was not really my argument; my argument was about sending GET variables as a part of a HTTP request.
  #25  
Old 09-02-2006, 01:10 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
;o

GET vars are always insecure, no matter the case.
__________________
<body>Signature</body>
  #26  
Old 09-02-2006, 01:23 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Yeah, while you could use php as a way to access mysql it's not secure using GET vars and sending whole queries is very insecure since anyone who had access to the script could manipulate the database. Of course sending the password as a GET variable could make it slightly more secure if someone just had the script, but if you were connecting from graal clientside someone could just use a packet sniffer and get the info.

If you're going to access mysql through graal via php you should check the IP address of the person who called the script. This way you can limit it to the graal server getting access to your database. Of course this would make it impossible to connect to your database from a clientside script.

Quote:
I thought it was
requestmysql(server,account,password,database,quer y);
That would be a terribly inefficient way of connecting to mysql since it would make a new connection to mysql every time it performed a query.

Keep in mind too, that querying mysql on another machine is, in most cases, going to be slower than creating a database npc to do the job.
__________________

Coming soon (Hopefully:P)
  #27  
Old 09-02-2006, 01:58 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
Good point.

It isn't ENTIRE insufficient, but it would be like making a bunch of pages that are used to grab one var each, then loading all those pages at once..... It'll work normally, causing lag on slower servers
__________________
<body>Signature</body>
  #28  
Old 09-02-2006, 02:00 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
Oh! Also,

As I just posted in the main board, seems requesthttp's 3rd argument can be of some use to checking if Graal is the requestee. That would mean you can only do the coding IF the client is accessing through graal. I'll be working on getting my account info in a database, on www.bladestrife.net/nsc/user.php
__________________
<body>Signature</body>
  #29  
Old 09-02-2006, 07:14 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Actually I found a way to help detect whether it's graal or not.

Graal does not set most of the HTTP variables. HTTP_ACCEPT, HTTP_ACCEPT_LANGUAGE, HTTP_ACCEPT_CHARSET, HTTP_KEEP_ALIVE, HTTP_CONNECTION are all not set by graal, you could check to make sure these are all not set in your php script.

That should be enough to stop most wannabe hackers. Of course it would be possible to mimick this behaiviour using cURL or through another scripting like php or perl (WWW:mechanize could do this with ease, unfortunatly).

If functionaility was brought in so we could set one or more of these variables ourselves we could make it a lot more secure because we could use these values as checks. You could set them as something in graal and check them in your php script. (of course doing this from clientside would still leave it open to packet sniffing, but no moreso than a requestmysql() function.)
__________________

Coming soon (Hopefully:P)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.