Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,690 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,320 people online right now. Registration is fast and FREE... Join Now!




please check out my collage final project

2 Pages V  1 2 >  
Reply to this topicStart new topic

please check out my collage final project

dreamincodehamza
post 12 Sep, 2008 - 02:25 PM
Post #1


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


My project is basically a simple online banking system which offer basic services towords customers
and
please tell me how it is and how much it needs to improve in which
areas i will work more to get the grade A
waitign for your valueable reply

the website link is show below :

main page
http://76.163.166.217/hamza/my_work/user/main_page.php

and
ON LEFT side of the meue click on the link onlin_banking
then it will as you for login name and password
then enter 123456 username and password is 123
enter in the site and explore the following optiosn


waiting for the valuable replies

User is offlineProfile CardPM

Go to the top of the page

pr4y
post 25 Sep, 2008 - 06:30 AM
Post #2


D.I.C Head

Group Icon
Joined: 19 Sep, 2008
Posts: 62



Dream Kudos: 50
My Contributions


Well I've check it out... tested the admin page and login page for SQL injection vulnerabilities... none found. Seems like you put a LOT of work into this. Obviously you have a lot of knowledge of website security, which is always a very good thing to have.

few bugs I've found:

CAPTCHA IMAGE - doesn't always work... 4/5 times it worked, but I'm not sure why this happened. tested 20 times (i know the submit was correct) and still got errors about 20% of the time.

NEWSLETTER - not sure if it works. I noticed that after you sign up, it outputs:

Name: $email

not sure if this is just an inproperly declared variable or if you forgot to <?php echo $email ?>

ACCOUNT REGISTRATION - data input check isn't working properly. ALL fields were filled out, and upon clicking submit, i get a "Please enter characters in the name field" error.




all in all, seems like a very complete and well put together website.

You'll get an A. smile.gif

This post has been edited by pr4y: 25 Sep, 2008 - 06:33 AM
User is offlineProfile CardPM

Go to the top of the page

dreamincodehamza
post 25 Sep, 2008 - 11:43 AM
Post #3


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


thank you so much for checking my site
i will check all these error's soon.


please anyone else have a time to check then
please check it and tell me the bugs in it
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 25 Sep, 2008 - 12:45 PM
Post #4


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


General:
You may want to take a look at the styles, it displays pretty weird if js is disabled. If you are ok with that, then don't worry about it.

I must also ask that you remove the marquee tags, they are a horrible excuse for a tag and should never really be used. On top of the fact that they will not work in most browsers.

You are abusing the crap out of tables, there are all kinds of empty cells to align things, you should probably look at doing this with css and divs instead for the most part.

Your folders are viewable, by manually removing the file names. Not a huge exploit, but should be protected against.

on the left it says "currency ratess" with the extra s.

Captcha:
1) the background colours are too distinct from the characters and could easily be scripted around.
2) captchas should be used when creating an account, not when logging in, i suppose it offers extra security, but anyone who has stolen the login information is going to have no issues typing in a captcha as well.
3) It should not be case sensitive

Login:
passing the session id value in the form is a bad idea on both the login and forgot password, these should be retrieved server side.



SQL injection does appear to be prevented +1
User is offlineProfile CardPM

Go to the top of the page

dreamincodehamza
post 25 Sep, 2008 - 02:47 PM
Post #5


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


Mr William_Wilson
how should i protect my all website pages which is viewable in the web without extension.please tell me about that.
-----------------------------------------------
and "passing the session id value in the form is a bad idea on both the login and forgot password, these should be retrieved server side."
so what should i do any alternative solution for that can you illustrate any example
-----------------------------------------------

"captchas should be used when creating an account, not when logging in, i suppose it offers extra security,"
can you explain it again please
and what other security type or thing is required over here
-----------------------------------------------
how should i check for the js disable or not.
please explain me
-----------------------------------------------
waiting for your valuable comments

This post has been edited by dreamincodehamza: 25 Sep, 2008 - 02:50 PM
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 25 Sep, 2008 - 03:05 PM
Post #6


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


to protect your folders you edit the permissions. Making it so that users cannot view the folders. A value of 711 is reasonably secure for most folders. You may want to look into permissions or chmod for folders.

Session Ids are part of the Session data, I assume that's how you are creating this value in the first place. Instead of passing the value as part of the form, you should have on the php file which is method of the form $id = $_SESSION['id']; to access the value. There is always the possibility for modifying this value with javascript injection or other methods from within the form.

A Captcha is not commonly used when logging in. Captcha's are meant to prevent automated scripts from activating a form, such as spamming comments, or creating countless accounts. I don't see the need for having one just to sign in, it should instead be apart of the account creation.

You would need to ensure that the styles and code handles js enabled or not, you could add a <noscript>Javascript is required to view this site properly</noscript>, or something to that effect, and it will only show up if js is not enabled. There is no way to see if js is enabled in php, you can only check if the browser has js capabilities unfortunately.
User is offlineProfile CardPM

Go to the top of the page

dreamincodehamza
post 25 Sep, 2008 - 04:00 PM
Post #7


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


Really thank you so much for you valuable time.
but
after your post i have triend this code to check the js script but nothing happened.
if js is disable as you know php code will not showed just blank page will be output
i think.
but using this code both the text is outputing by the browser IE.
what should i do now

CODE

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<noscript>
  Please enable the scripting
</noscript>
</head>

<body>
<?php
    echo '<br>testing no script';
?>
</body>
</html>



And

Captcha : why i use this .
because to avoid the robot script. i have red from some where is that
robot script try to login again and agaign so to protect login i have
used this.

i think i should chech the php folder permission fucntions from php.net
okey if have all the function than where should i but those fucntions
and
tell me one thing that i have apply all the folder permission now to
protect each folder in my website.

again waiting for your valuable comments

User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 25 Sep, 2008 - 04:19 PM
Post #8


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


noscript tags are in the body of the document, not the head.

I understand why you use the captcha, i just think in use users would become annoyed by continually having to enter captcha values. Websites usually combat the scripts you speak of, by having a limit to the number of login attempts to an account or from an ip, thus locking out an account or ip if that count is exceeded.

You do not need to use functions to set the permissions, you can set them manually on the folders using an ftp software, etc. Most will offer check boxes for each setting, so understanding the chmod values is not necessary.

User is offlineProfile CardPM

Go to the top of the page

dreamincodehamza
post 25 Sep, 2008 - 04:26 PM
Post #9


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


Really nice for the chmod
i understand what you said about chnmod
but if i need to apply chnmod manually then any
php function for it .
and

now i have put the code in the body of the current page but still same thing is happening
can you please try it in yoru IE brower i have disabled the js in IE and tried this
code but both lines are showing ....
CODE

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<noscript>
  Please enable the scripting
</noscript>
<?php
    echo '<br>testing no script';
?>
</body>
</html>






and
number of loin tries ccount or ip if that count is exceeded
then i think it requires a databae table for insrting
number of tries . for perticuler ip address.
am i right or anything else should be posibble .


User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 25 Sep, 2008 - 04:29 PM
Post #10


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


a function would make chmod easier for sure.

noscript only shows up when js is disabled, it does not stop php code from being rendered. The echo call would show up with or without the noscript tags. All they are for is informing the user that they do not have js enabled and they need to have it enabled.

database isn't really necessary, a session variable could handle it as well. If you aren't using a database, how are you handling the usernames and passwords?
User is offlineProfile CardPM

Go to the top of the page

dreamincodehamza
post 25 Sep, 2008 - 05:00 PM
Post #11


D.I.C Head

Group Icon
Joined: 12 Sep, 2008
Posts: 108



Dream Kudos: 75
My Contributions


we can handly with text files as well what say about it .

and
if you go to hotmail page and your js is disabled then they will show you the message.
without renderting the actual login code.

any solution for noscript when using php / any alternative solution you have.

few min ago i have tried the chnmod ftl software setting but the server on
which i have hosted temporarly said that this server do not support chnmod.
so i think i mnaually do the permissin.

User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 25 Sep, 2008 - 05:07 PM
Post #12


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


Hotmail is using more than php to make this check.

javascript does not prevent any site functionality, I was merely offering an option for your users to get the best experience from your site.

You can always make some sort of javascript function call to display the login form, thus without it, the form cannot appear. The login is not the issue, mostly it is your scrolling news feed that displays overlapped, you should make this have no value or a basic value, and have the text loaded initially by javascript, thus without it it has a default value, perhaps static text and a scroll bar.

This post has been edited by William_Wilson: 25 Sep, 2008 - 05:08 PM
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 07:37AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month