Daily using/supporting

Get Firefox browser!
Get Thunderbird!
Get Opera browser!
Get The Gimp!
Get Inkscape!
Get LibreOffice!
Get Videolan!
Get Linux!
Get Mandriva!
Get Joomla!
Hacker Emblem

Archives

Which topics would you like us to cover more?

Latest comments

Latest tweets

about 1 day ago Using REDIPS.drag to add drag and drop to your .Net webapplication #li #dib0 http://t.co/n8zY3s7d
about 7 days ago http://t.co/cknQcDbo #Kindle
about 15 days ago Freedom isn't the ability to choose what to do or say, but the ability to choose what not to do or say #freedom
about 29 days ago http://t.co/61KTQknI #Kindle
12 Apr 2012 Force the use of a networking adapter using C# #li #dib0 http://t.co/ZTJOPzOz
9 Apr 2012 Mandriva 2010.2 and USB devices in Virtualbox http://t.co/fwq9gbHB
9 Apr 2012 Execute a http request to you own site with PHP http://t.co/DIvWPrpd
Home Architecture, security and coding Security rule #1: Don't trust data
Security rule #1: Don't trust data
Written by Division by Zero   
Wednesday, 20 January 2010 15:05

The first rule in software security is don't trust data coming from outside your application. Don't trust user data, you don't know who this user is and if you do (authenticated user) you can never be sure the user is really who he says he is. Don't trust data from another source, how can you be sure if this source is trusted and secure? Is it possible to know if the data isn't tampered with on the way to your application? Don't even trust the database and users within your company. There has to be only one disgruntled employee who has too much access.

Validate all data coming to your application and if you don't know how to validate it (if there aren't any business rules for it) make sure the data is safe for it's purpose. For example html encode everything before sending it to the browser of a user.

 

Add comment


Security code
Refresh

The right word may be effective, but no word was ever as effective as a rightly timed pause. - Mark Twain


© 2009 - 2012, Division by Zero

Template based on the empire template by joomlashack 

Valid XHTML 1.0 Strict  Valid CSS!  Creative Commons License
This work by Division by Zero is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.