Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 14 votes, 3.79 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-23-2004, 12:42 AM   PM User | #61
TRINITY1
New to the CF scene

 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
TRINITY1 is an unknown quantity at this point
Host

My understanding is that NTL does not support server side,so this is why the vb script looks good.

http://www.cableforum.co.uk/board/article.php?a=5
TRINITY1 is offline   Reply With Quote
Old 11-06-2004, 02:42 PM   PM User | #62
rhodopsin
New Coder

 
Join Date: Oct 2004
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
rhodopsin is an unknown quantity at this point
weaknesses

For me I think that the weakness of this script is being able to see what files are on the server. You see one called CodingForums.js. You open it - and you have the url of the protected web page. YOu have just circumnavigated this security system. Indeed - u can even see the url of the protected webpage: page.html - on the server. Type this into your browser and there you have the protected web content.

So this brings me to my Q: how can you prevent someone from seeing all the filenames on your server (such that they can then type them into their browser and look at them)? IS this possible?

To repeat for clarity:
Even this really good script is vulnerable to persons looking at your filenames on the server.

Is there anyway that I can prevent persons from discovering the names of all the files on my server? Best,
rhodopsin is offline   Reply With Quote
Old 11-06-2004, 05:44 PM   PM User | #63
kansel
Regular Coder

 
Join Date: Jul 2002
Location: Kansas, USA
Posts: 465
Thanks: 0
Thanked 45 Times in 44 Posts
kansel is on a distinguished road
rhodopsin: just make sure the directory where your .js files are stored has an index.html file.
kansel is offline   Reply With Quote
Old 11-09-2004, 11:08 PM   PM User | #64
W-Unit
New to the CF scene

 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
W-Unit is an unknown quantity at this point
Could they not bypass the protection by skipping directly to /page.htm ???
W-Unit is offline   Reply With Quote
Old 11-10-2004, 02:37 AM   PM User | #65
kwhubby
Regular Coder

 
Join Date: Nov 2002
Location: Carmel California
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
kwhubby is an unknown quantity at this point
Another way you can do it is with .htaccess If you have that option, which many hosts do at least limited support. You can have a .htaccess file that has IndexIgnore * in it which should prevent indexing. A good resource for this: http://www.javascriptkit.com/howto/htaccess11.shtml
__________________
Kris Hubby
kwhubby site
kwhubby is offline   Reply With Quote
Old 11-22-2004, 11:28 PM   PM User | #66
bearsdenred
New to the CF scene

 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
bearsdenred is an unknown quantity at this point
HI guys just found this forum tonight, searching around the internet looking for help in various aspects of my course work for uni.

I need a secure login (using either, java / VB) and a authentication program to check members exist. This program does this very nicely.

only one question i have just now....

Heres my site.

http://www10.brinkster.com/tester2003/index.html

Now, how do i get the code to create a password and username through registering at this site?

register.htm <--- file i want the user to register, i want to create the password and username here. in this form to create the .js File?

And does anyone know anything regarding XML ?? im a network engineer not a programer.
bearsdenred is offline   Reply With Quote
Old 12-05-2004, 03:07 AM   PM User | #67
Pavel
New to the CF scene

 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Pavel is an unknown quantity at this point
Secure?

How could this auth method be secure?

1. When the auth.htm has to check if the Login+Password.js exists, the browser has to request the URL http://server/path/Login+Password.js from the web server.
This request is transmitted plaintext, so every sniffer could read it. And even worse, the web server logs this request plaintext in his log. So the HTTP BASIC AUTH is better, because the password is not logged.

2. How do you difference user "Neo",password "Matrix" and the user "NeoM", password "atrix" ???

The only "secure" way (beside SSL) is, to hash the password with md5 or sha1 and to verify the hashed password on server side. And don't forget to include a salt, do make brute force attacks more difficult.
Pavel is offline   Reply With Quote
Old 12-05-2004, 03:45 AM   PM User | #68
joh6nn
wei wu wei


 
joh6nn's Avatar
 
Join Date: Jun 2002
Location: 72° W. 48' 57" , 41° N. 32' 04"
Posts: 1,887
Thanks: 0
Thanked 1 Time in 1 Post
joh6nn is an unknown quantity at this point
Pavel, the points you bring up, while valid, have already been hashed over in the preceeding 5 pages of this thread.
__________________
bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

i am a loser geek, crazy with an evil streak,
yes i do believe there is a violent thing inside of me.
joh6nn is offline   Reply With Quote
Old 01-12-2005, 01:07 PM   PM User | #69
Tatty
New to the CF scene

 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Tatty is an unknown quantity at this point
.. How would I get the protected page/pages to open in an i-frame .. is that possible?

Thanks in advance

**Tatty**
Tatty is offline   Reply With Quote
Old 01-20-2005, 05:50 PM   PM User | #70
spicyfetus
New to the CF scene

 
Join Date: Jan 2005
Location: TN
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
spicyfetus is an unknown quantity at this point
amazing

this is one hell of a script. very good stuff with some incredible diversity and functionality. i might have to use this one...though i dont have anything on my website that would require someone to need a user name and password...hahahaha. oh well...maybe in the future. very cool stuff though amigo

very clever
spicyfetus is offline   Reply With Quote
Old 02-07-2005, 10:40 PM   PM User | #71
sgrimmett
New to the CF scene

 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sgrimmett is an unknown quantity at this point
Clutter

Just like to say superb and simple script, am finding it very useful already. I have a question though and i'm afraid my JS is so bad i can't even figure this out by myself lol.

I want to reduce clutter in my directories and want to put all the .js files in a subdirectory called ID which file would i need to amend to do this and what change would i need to make?

Many thanks Simon
sgrimmett is offline   Reply With Quote
Old 02-12-2005, 05:29 AM   PM User | #72
Bolter99
New Coder

 
Join Date: Feb 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Bolter99 is an unknown quantity at this point
Login Script

Hey, i just threw together a simple but really secure javascript.

Writes the usernames in a list (select tag). The usernames and passwords are stored in an Array in a javascript file witha a complex file name and some of the source code is heavily encrypted.

Here it is:

Click here for a live preview

Click here to download this script.

NOTE: Username: User01, Password: Pass01.

Last edited by Bolter99; 02-12-2005 at 05:33 AM..
Bolter99 is offline   Reply With Quote
Old 02-24-2005, 12:29 PM   PM User | #73
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Man, the secure and javascript are two opposite words. javascript was not design as a security language, thus it will be never ever suitable for a secure pass login. As any other client-side language the codes are loaded in the user's cache where from the user can see the codes and, sooner or later, will find the algorithm to decrypt. Man, it's so simple to understand that, yet so many people try and try again and again to square the circle, on and on...
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 03-22-2005, 05:55 AM   PM User | #74
ph30nix
New to the CF scene

 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ph30nix is an unknown quantity at this point
one thing i want to know about this.
How can i make it so anyone accessing the site doesnt know about what other pages there are. Because i obviously know the URL it redirects to, but how can i make it so that to view the page they need to login.

That might not have been clear.

say i have a downloads page, it has a login thing, no when i login it redirects to a page with a list of files to download, how can i make it so when it login in it has something like www.MYWEBSITE/download=<usermane> etc etc.

I guess you know what i mean by now, hiding the page , im thinking mabye this isnt possible using HTLM/JS, does someone know anyway to do it with PHP etc. Im willing to try and learn. , as long as someone gives me a go.

Thanks in advance,
Ph30nIX
ph30nix is offline   Reply With Quote
Old 04-06-2005, 03:02 PM   PM User | #75
Phoenix1
New to the CF scene

 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix1 is an unknown quantity at this point
Ideas and password settings

In auth.htm it searches *.js basically but having changed the .js to .dfsdfd it still works. if you have something like .gif it also works. Maybe this could add a little bit if security.

Ideas/Does the script...

?? - Create time out cookies?

Idea - search is conducted in a *.php file which has an include which brings in the *.password files. One more step away from detection and an extra language to go though.

Idea - Log each access attempt, username only as not want to leave passwords about!

idea - Change password after x amount of days?

idea - Make a valid looking list/website so hackers think they are in when they are not
Phoenix1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:34 AM.


Advertisement
Log in to turn off these ads.