Please test my new PHP-MySQL site!

This is a discussion on "Please test my new PHP-MySQL site!" within the PHP Forum section. This forum, and the thread "Please test my new PHP-MySQL site! are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 1st, 2008, 00:51
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Please test my new PHP-MySQL site!

URL: http://www.MHT-CET-Online.com

Purpose: Helps me conduct online test series.

Langauge: PHP and MySQL (and lil bit of javascript).

How to use the site:
1. Check for availability of username. register if available
2. Choose the question paper available and click OK.
3. Once the question paper loads, please select your answers using the radio buttons.
4. Submit the answer sheet to evaluate. Evaluations will be saved into databse.

If encounter any 404 file not found, please let me know the link which you followed.

For programmers and white hat hackers:
Do let me know if you come across any security hole. I have observed the below measures:
1. All input validated on server side
2. No cookies used at all to store any information.


Thank you.
-Rohan Shenoy
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote

  #2 (permalink)  
Old Feb 1st, 2008, 08:18
Reputable Member
Join Date: Sep 2007
Location: UK
Age: 42
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

worked fine for me in firefox 2 (mac)

congrats
Reply With Quote
  #3 (permalink)  
Old Feb 1st, 2008, 08:43
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Please test my new PHP-MySQL site!

Registration:
You can copy/paste your email into the second field. Either prevent that or don't require the retype....

Login:
I registered successfully, but when I login, the control panel display once and when i refresh the page, I am no longer logged in.....
Reply With Quote
  #4 (permalink)  
Old Feb 1st, 2008, 10:42
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by jtyoungs View Post
worked fine for me in firefox 2 (mac)

congrats
Nice to know that. I didn't test on Mac!(I use Windows XP)
Thanks!
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #5 (permalink)  
Old Feb 1st, 2008, 10:45
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by c010depunkk View Post
Registration:
You can copy/paste your email into the second field. Either prevent that or don't require the retype....
Quote:
Originally Posted by c010depunkk View Post
Login:
I registered successfully, but when I login, the control panel display once and when i refresh the page, I am no longer logged in.....
It a security measure. I don't want to use cookies. Hence this problem. The problem with cookies is that they cannot be created/read/deleted/modifiedif I use a .exe compiler on client machines.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #6 (permalink)  
Old Feb 1st, 2008, 10:48
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Please test my new PHP-MySQL site!

So how is the login supposed to work???
Reply With Quote
  #7 (permalink)  
Old Feb 1st, 2008, 11:36
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Please test my new PHP-MySQL site!

Rohan you'll need to use some sorta cookie else users wont be able to do anything
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Reply With Quote
  #8 (permalink)  
Old Feb 1st, 2008, 12:41
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

@Daniel,
The students will not use the usual browser such as IE, FF, Opera, etc. to take the test. They will access it through a .exe file (made using ebook compiler). The exe files such created are not capable of handling cookies, neither opening multiple windows.

@c010depunkk
Login will just authenticate the user and send him to his student control panel. And yes, none of the URL which you see in your address bar will be visible to the student.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #9 (permalink)  
Old Feb 1st, 2008, 13:08
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Please test my new PHP-MySQL site!

Rohan if you do not have a cookie then whenever the student moves to a different page they will be logged out.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Reply With Quote
  #10 (permalink)  
Old Feb 1st, 2008, 13:29
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,772
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Please test my new PHP-MySQL site!

Use sessions then?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #11 (permalink)  
Old Feb 1st, 2008, 13:39
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Use sessions then?
Sessions in PHP still need a cookie for the best security. If you don't use cookies the session ID is passed from page to page in the query string and then anyone can access that session with the url.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #12 (permalink)  
Old Feb 1st, 2008, 13:43
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by Daniel View Post
Rohan if you do not have a cookie then whenever the student moves to a different page they will be logged out.
Try that, they won't be logged out. Ofcourse, if they try to bookmark and page and then access it, or copy-paste the URL from one window to another, they will be logged out.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)

Last edited by RohanShenoy; Feb 1st, 2008 at 13:46.
Reply With Quote
  #13 (permalink)  
Old Feb 1st, 2008, 14:03
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Please test my new PHP-MySQL site!

Please test my new PHP-MySQL site!

See.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Reply With Quote
  #14 (permalink)  
Old Feb 1st, 2008, 14:08
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by Daniel View Post
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #15 (permalink)  
Old Feb 1st, 2008, 14:27
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Please test my new PHP-MySQL site!

Without cookies or session the users don't stay logged in for more than one page load..... Then what's the point of the login system?
Reply With Quote
  #16 (permalink)  
Old Feb 1st, 2008, 15:32
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by c010depunkk View Post
Without cookies or session the users don't stay logged in for more than one page load..... Then what's the point of the login system?
Did you take the test there?It can keep you logged in for more than one page load.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #17 (permalink)  
Old Feb 1st, 2008, 15:47
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

How is it you are doing that?

You surely must be using a session cookie or appending PHPSESSID to the query string...

Or perhaps it works for the tests because it is a form sending data from one page to the next..

If you're not using the above methods then state won't be maintained across pages unless you send it via GET or POST. If you are relying on form data this opens a security hole as well.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #18 (permalink)  
Old Feb 1st, 2008, 15:52
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Please test my new PHP-MySQL site!

nope, after submitting the first page, i get a "validation failed".....
Reply With Quote
  #19 (permalink)  
Old Feb 1st, 2008, 15:56
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by Rakuli View Post
How is it you are doing that?

You surely must be using a session cookie or appending PHPSESSID to the query string...

Or perhaps it works for the tests because it is a form sending data from one page to the next..

If you're not using the above methods then state won't be maintained across pages unless you send it via GET or POST. If you are relying on form data this opens a security hole as well.
Yeah, data is sent using forms.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
Reply With Quote
  #20 (permalink)  
Old Feb 1st, 2008, 15:59
Reputable Member
Join Date: Nov 2007
Location: India
Posts: 150
Blog Entries: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please test my new PHP-MySQL site!

Quote:
Originally Posted by c010depunkk View Post
nope, after submitting the first page, i get a "validation failed".....
Yeah, every script that is supposed to take a input from the user and interact with database will validate it. If validation fails due to malicious input or null input, validation fails and 'Validation Failed' is returned.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)

Last edited by RohanShenoy; Feb 1st, 2008 at 16:02.
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need mac test for PNG on site Aso Graphics and 3D 2 Nov 30th, 2007 19:34
test web site in multi ie ver echessdesign Web Page Design 7 Nov 13th, 2007 07:27
need some one to test the tutorials on my site bruno89 Webforumz Cafe 5 Jul 24th, 2007 01:34


All times are GMT. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43