- What is SharePoint 2010? Vision and Reality
view comments - Knowledge Management in 2012? Probably Dead
view comments - Wrapping Your Head Around the SharePoint Beast
view comments - iPad 3 vs. New Samsung Tablet: War Starts in February
view comments - Is There A Business Case For Using SharePoint as an Enterprise CMS?
view comments - 5 Critical Steps to SharePoint Information Architecture Planning
view comments - Alfresco Enterprise 4: Social, Collaborative, Mobile, Cloud Connected Content Management
view comments - iOS 5.1 Update Does More Than Fix the iPhone's Battery Issues
view comments
For a More Secure Web Offering, Be Wary with AJAX
Who doesn't love AJAX? It alters a site's content without users having to reload. It's rendered the pageview virtually worthless, inspiring Nielsen/BuzzMetrics to pursue a time-based site tracking model for calculating the popularity of sites. And in many ways, its availability is one manner of gauging the hip-with-it-ness of a site.
As with any snazzy and hype-ridden new technology, there is reason to take caution.
Asynchronous JavaScript and XML, otherwise known as AJAX, is the coolest kid in town since Web 2.0. Found on trendy tech-hipster offerings like GMail, it's hard to resist the technology's allure.
Last Wednesday at the Black Hat USA 2007 conference in Las Vegas, SPI Dynamics decided to demonstrate a few fallible characteristics of a site built with AJAX.
Dubbing the AJAX trend “premature AJAX-ulation,” SPI focused on the security issues associated with AJAX by building a site called HackerVacations.com, then easily manipulating all the options available to front-end users, including seat selection, flight pricing and others.
SPI's Development Manager Bryan Sullivan explained it thus in an interview with InformationWeek: “Developers write these applications the way they're supposed to be used […] That's great, except that you've only ever tried to exercise the application the way it's intended to be used.”
The point is, hackers aren't interested in using an app the way it's “supposed” to be used. And because JavaScript utilizes the client more readily, anyone seeking to compromise an AJAX-based app has instant access to larger chunks of the app code.
AJAX can also hurt the site ranking of a badly-planned online destination. Search engine spiders typically trawl a URL in order to read the (typically static) content featured there, lending a sense of what your destination focuses on and whether it's more or less relevant to that topic.
But an AJAX-driven URL may display different content over time. And because JavaScript is used to fetch the content, search engines will simply skip that particular information on your URL.
There are solutions to these problems for those still seeking to leap aboard the AJAX train (and what a promising train it is!).
To start with, if your site is mostly content-driven, be selective about what information you'll make dynamic. You'll definitely need the search engine spiders on your side if you want a good, strong PageRank.
Pathfinder also has some good advice. Here are a couple of points:
- Don't put your “crown jewels” in the browser - a little mystery is in order, particularly for AJAX-based sites. Pathfinder recommends using server-side component frameworks like Echo2 or ZK to keep most of your business logic on the server side.
- Obscure your script source code. You can do this manually, or use a code generation framework that produces unreadable code, such as Morfik or GWT. There are issues associated with this option, too — code generators are vulnerable to decompilers — so pick your poison with care.
There are definitely benefits, and some cool things you can do, with AJAX. And generally speaking, you're doing a good job if you can carefully define and validate the data parameters accepted by your AJAX-based app.
But be mindful, and use your AJAX sparingly.
Featured Events View all
| Add event
|
RSS
- Feb 22, 2012 – Intelligent Content Palm Springs 2012
- Feb 26, 2012 – SPTechCon - Sharepoint Conference San Francisco 2012
- Feb 28, 2012 – (Webinar) How to Build Great Mobile Websites
- Mar 6, 2012 – Get Social with Microsoft & Telligent in Dallas
- Mar 8, 2012 – Get Social with Microsoft & Telligent in New York
Who's Hiring? View all
| Post a job
|
RSS
- Technical Writer in Charleston at Blackbaud
- Interaction Designer in Maryland at Inmedius
- Project Manager in London at Brandworkz
- Sales Director, Consumer Electronics at Synacor
- Regional Sales Manager - East Coast at Elcom
- Communications and Web Content Manager in New York- at Common Ground
- Business Development Specialist in Boise at Balihoo
- Director of Corporate Marketing in Charleston at Blackbaud

Receive
the Free CMSWire Newsletter
Email It