Library code snippets

The AJAX "Top 5" security tips

To succeed - you must start with good planning. Efforts should be focussed on reducing and simplifying the AJAX calls, and creating a standard format for responses that follows convention (ideally XML) where possible.

Follow best practice from sites such as the Open Web Application Security Project. This especially includes checking for Access Control and Input Validation flaws, whilst ensuring sensitive information travels over SSL rather than in the clear.

Never assume that Server Side AJAX checks for Access Control or User Input Validation will replace the need for final re-checking at the Server. Adding AJAX controls will never reduce your validation workload, they will only increase it.

Never assume that Client Side obfuscation (making the JavaScript difficult to read or decode) will protect your most important commercial secrets. Using JavaScript is a poor way to hide programming tricks and advances from your competitors.

Finally, you must be prepared to exercise a tight reign over your development team. Wonderful ideas using AJAX may sound compelling, but you should consider saving them for version 2, whilst you focus on building a rock-solid version 1.

Originally published at http://profoundway.blogspot.com/2006/06/ajax-net-security.html

Comments

  1. 01 Jan 1999 at 00:00

    This thread is for discussions of The AJAX "Top 5" security tips.

  2. 16 Oct 2006 at 11:50
    Link doesn't work....
  3. 20 Jul 2007 at 08:02
    IMHO...

    returning CSV in a custom flatsheet, XML adds too much bulk and that puts data integrity at risk from failure.

    My personal preference is flatsheet over XML.









  4. 21 Jul 2009 at 03:19

Leave a comment

Sign in or Join us (it's free).

Moe Tarhini

Related podcasts

  • Java Technology Insider: The Ajax developer's toolkit - Nate Schutta

    Published 1 year ago, running time 0h31m

    As Java-based Web developers have learned to take JavaScript seriously,  the rush is on for tools that enrich the Ajax-development experience. In this JavaWorld podcast, Foundations of Ajax co-author Nate Schutta talks with Andrew Glover about the component libraries, debuggers, and frameworks ... the, ajax, as, developer

Related jobs

Events coming up

  • Aug 10

    Getting to grips with... jQuery

    Coventry, United Kingdom

    Bring a laptop and learn how to use JQuery, this event is aimed at anybody who would like to get to know jQuery better.jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. designed to change the way that you write JavaScript.

Want to stay in touch with what's going on? Follow us on twitter or Facebook!