Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is useing $_GET with passwords secure?
Old 01-04-2006, 09:18 PM Is useing $_GET with passwords secure?
Skilled Talker

Posts: 68
Trades: 0
Well belive it or not i'm going to ask
"Is useing $_GET with passwords secure?"
eg: http://www.mysite.com/login.php?user...&password=PASS
Someone once said it's not secure to cary passwords in the url but i cant see what could go wrong? Can someone tell me why i shouldent do this?
mrpaul is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-04-2006, 09:25 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
How about the fact that the password is now openly visible to anyone just walking by. Also, how about the fact that the page could be cached URL and all. It would also be much much easier for someone to hack into an account.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 01-04-2006, 09:52 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Let's put it this way, if YOU can see the password... so can everybody else. It's best to use the post method to pass passwords to another page.
Or store an encrypted version of the password in the session.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 01-05-2006, 02:46 PM
Village Idiot's Avatar
Webmaster Talker

Posts: 535
Trades: 0
as Anacrusis said, use post
__________________
I have the heart of a child, I keep it in a jar on my desk.
Village Idiot is offline
Reply With Quote
View Public Profile
 
Old 01-05-2006, 04:58 PM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Yes please use $_POST for the uername and password. And if not please post a link to your site here so we can all have full access.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-05-2006, 05:37 PM
Skilled Talker

Posts: 68
Trades: 0
full access? can you explain to me how you would get full access just by haveing the password in the url?

anyway it's for a mailing list i created, i was gona have it so that at the bottom of each email sent ther was a link people could click to stop the emails. then i thought maybe i should make them log in coz i dont want anybody stoping anybodys emails. Hence the thought of password in url.
mrpaul is offline
Reply With Quote
View Public Profile
 
Old 01-05-2006, 06:05 PM
Village Idiot's Avatar
Webmaster Talker

Posts: 535
Trades: 0
because we can type in our own get data, we cant do that with post
__________________
I have the heart of a child, I keep it in a jar on my desk.
Village Idiot is offline
Reply With Quote
View Public Profile
 
Old 01-05-2006, 08:38 PM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
When I said full access I just meant the same access any member to the site would have. I wasn't meaning I'd have the same access as you have to the site. The comment was really meant as humor. My apologies if it didn't come across the way.

I think we all agree that you should use post instead of get. Some simple scenarios for what could happen with get.

1. I'm part of your mailing list. You send me that link with the user/pass info in the url. Ok so it's my user/pass so what. Upon seeing that you use it in the url I can start typing in guesses for other people's user/pass to try to login as someone else. I assume since you have user/pass info in the first place you only want people logging in as themselves.

2. Someone logs into your site from a public computer, maybe at a school or library. The next person who comes by looks at the browser history and the url with user/pass info is included. That person can now log in to the site anytime they want.

Both of these scenarios don't even mention someone who deliberately sets out to get into your site. Discovering usernames and passwords isn't really difficult given that most people use very common words as passwords. By using get you're creating a window for anyone who wants to login to your site.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Is useing $_GET with passwords secure?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26499 seconds with 12 queries