Welcome Guest, Not a member yet? Register   Sign In
Database Update Question
#13

[eluser]Negligence[/eluser]
To make it secure, you have to do either one or two things.

1) Ensure that the database record is valid before you do anything with it. I've seen too many applications that don't check to see if an ID exists before operating with it.

2) If necessary, check that the database record belongs to, or is editable, by the current user. If not, stop what you're doing.

These two steps are simple and they go a long way towards making your application less susceptible to security problems.

In response to your solution Michael, a better approach is to store the record ID in the session, do not use it in the URL/form, and retrieve it after the form has been submitted. This way the ID itself cannot be tampered with it all, making the process foolproof.


Messages In This Thread
Database Update Question - by El Forum - 12-12-2007, 10:51 AM
Database Update Question - by El Forum - 12-12-2007, 10:58 AM
Database Update Question - by El Forum - 12-12-2007, 11:13 AM
Database Update Question - by El Forum - 12-12-2007, 11:14 AM
Database Update Question - by El Forum - 12-12-2007, 11:40 AM
Database Update Question - by El Forum - 12-12-2007, 11:45 AM
Database Update Question - by El Forum - 12-12-2007, 11:52 AM
Database Update Question - by El Forum - 12-12-2007, 11:54 AM
Database Update Question - by El Forum - 12-12-2007, 12:04 PM
Database Update Question - by El Forum - 12-12-2007, 12:31 PM
Database Update Question - by El Forum - 12-12-2007, 12:36 PM
Database Update Question - by El Forum - 12-12-2007, 01:24 PM
Database Update Question - by El Forum - 12-12-2007, 01:44 PM
Database Update Question - by El Forum - 12-12-2007, 01:56 PM
Database Update Question - by El Forum - 12-12-2007, 02:05 PM
Database Update Question - by El Forum - 12-12-2007, 02:29 PM
Database Update Question - by El Forum - 12-12-2007, 02:36 PM
Database Update Question - by El Forum - 12-12-2007, 05:58 PM
Database Update Question - by El Forum - 12-12-2007, 07:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB