Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2004, 03:00 PM
WebProWorld New Member
 

Join Date: Jun 2004
Posts: 1
shawc RepRank 0
Default Security

To begin with all, all data is passed via https protocol. I have to log each user into two different systems. I have a login screen that takes username & password. This posts to an asp page that validates the user in a database. If the user is validated, the following code is used to send the username/password to the second system for additional validation.

======Seamless Login Code===============
%>
<form name=LoginBridge action='Validate.aspx' method='post'>
<input type='hidden' name='usr_Name' value='<%Response.Write(strUserName)%>'>
<input type='hidden' name='usr_Password' value='<%Response.Write(strUserPassword)%>'>
</form>

<script language=javascript>
document.LoginBridge.submit()
</script>
<%

Please note that the second system exists because we are in the process of migrating to the sole use of this system. I think there will be a 6 month to 1 year migration time frame.

I would like to know how vurnerable it is to pass each user's username/password via https protocol.
Reply With Quote
  #2 (permalink)  
Old 06-01-2004, 03:20 PM
WebProWorld Member
 

Join Date: May 2004
Location: UK
Posts: 83
M0rtym0use RepRank 0
Default

shawc,
it would be more secure to use session variables, these are do not store the fields as hidden fields like you have coded and when this data is posted it effectively posts to data in a hidden querystring i am curious though are you actually developing in .net as the form code is standard html/asp code.

you can also use a check at the top of each page so that if their session times out they are forced to login again ie they leave a public computer with secure info desplayed and someone else uses the machines and accesses this data.

<%
if session("session name") = "" then
response.redirect("login.asp")
end if
%>

hope this answers you question slightly. but ssl should be secure enough but storing details in hidden fields is not generally a good idea!

MM
__________________
M0rtyM0use

Simply Rugby
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags:



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0