Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old October 7th, 2002, 08:27 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Tips To Prevent Improper Use Of Your ASP Scripts

Tips To Prevent Improper Use Of Your ASP Scripts If you have any questions or comments on this article then please post them here.

You can read the article here .

Reply With Quote
  #2  
Old October 8th, 2002, 04:54 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Nice article. One small issue.

The article pretty much says that client based info isn't trustworthy. I agree 100%. But the author then goes on to use HTTP_REFFERER with his script. Users should be warned that this is client based, and can be faked.

Reply With Quote
  #3  
Old October 8th, 2002, 07:46 PM
wes wes is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 24 wes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HTTP_REFERER could be faked but by combining all these techniques, scripts should be much more secure. Also I would like to add something that I think I discovered was wrong after I originally wrote this: when you check to see if variable data is a number, do NOT check if it is also less than 0 in the same If/Then statement; nest another if statement for if the data passes as a number.

Code:
If IsNumeric(intID) = True AND intID <> "" Then
    If intID > 0 Then
        ' Good
    Else
        ' Bad
    End If
Else
    ' Bad
End If

Reply With Quote
  #4  
Old February 1st, 2003, 05:35 PM
Vahe Vahe is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Armenia
Posts: 2 Vahe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question "hidden" question

Though this article was written quite a time ago, I have just found it and liked it. I have one question:
I need to pass an SQL string from one ASP page to another. I need it to be done without using forms, as well as without using session variables (since, as I quess, if I will open more than one instance of the page, the same session variable will be overwritten, and I don't need it). Can you please advice what to do? At the present time I am used to pass the SQL string via querystring, and have put the HTTP_reffer check you suggested.
Thank you.

Reply With Quote
  #5  
Old February 1st, 2003, 06:22 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Whats wrong with just using another session variable?
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #6  
Old February 2nd, 2003, 03:37 AM
Vahe Vahe is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Armenia
Posts: 2 Vahe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually, I spent whole the night doing it and have done it!
I have used a session variable, which name is current date/time (this allows it to be unique all the time). The next page simply pass this ID as a URL parameter, and so on.
Thank you!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Tips To Prevent Improper Use Of Your ASP Scripts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway