| By Mark O'Neill | Article Rating: |
|
| December 8, 2012 11:46 PM EST | Reads: |
511 |
This is a blacklisting approach. We're checking if any of the content is on the blacklist. But often it makes sense to do whitelisting. This involves a strict check that the content is valid, so that any invalid content (e.g. an attack such as SQL Injection or Cross-Site Scripting) will simply fail the check. Here's an example of a whitelisting policy I've configured in the Vordel API Server to scan SOAP body content. There are a number of simple steps. Firstly, I am using XPath to read in the content of the XML elements into a string (called "ContentToScan"). I'm reading in the content of the elements under the SOAP operation.
Then, I'm using a "Validate Selector Expression" filter to validate this string. You can see below that I'm validating it using a regular expression which checks that the content of the XML elements contains only alphanumeric characters or a dash ('-').
In this way, any content which does not pass this validation rule will result in this filter returning false, and therefore going down the red line in the policy execution (as opposed to the green line if it's valid). You can see the policy execution graphically in the screenshot above.
You can also combine blacklisting with whitelisting, simply by combining the two in one policy on the Vordel API Server, or calling one policy from the other using a Policy Shortcut. That gives you the best of both worlds.
Read the original blog entry...
Published December 8, 2012 Reads 511
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Mark O'Neill
Mark O'Neill is Chief Technology Office of Vordel. Vordel connects applications to applications, businesses to other businesses, and SOA to Cloud Computing. A regular speaker at industry conferences and a contributor to SOA World Magazine and Cloud Computing Journal, Mark holds a degree in mathematics and psychology from Trinity College Dublin and graduate qualifications in neural network programming from Oxford University.
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York: Delivering Digital Marketing on the Cloud
- AWS Going into a New Line of Work
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- Five Big Data Features in SQL Server
- How Bon-Ton Stores Align Business Goals with IT Requirements
- Amazon Cuts Prices on S3
- Cloud Conversations: AWS EBS, Glacier and S3 Overview | Part 2 S3
- Cloud Conversations: AWS EBS, Glacier and S3 Overview | Part 3
- Compuware Signs New APM Partnership
- Google Submits Concessions to EC; Gets Sued in the UK
- GenieDB Makes MySQL Web-Scale & Always Available
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York: Delivering Digital Marketing on the Cloud
- AWS Going into a New Line of Work
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- Help Desk Solution Empowers Employees
- Five Steps Toward Achieving Better Compliance with Identity Analytics
- Five Big Data Features in SQL Server
- Big Data Is Not Just About Marketing: Don’t Forget the IT Department’s Needs
- How Bon-Ton Stores Align Business Goals with IT Requirements
- A Cloud-Based Testing Tool for the Budget-Minded
- Top Considerations for Your Hybrid Cloud Environment
- Componentizing Applications with Layered Architecture
- Where Are RIA Technologies Headed in 2008?
- Processing XML with C# and .NET
- AJAX World RIA Conference & Expo Kicks Off in New York City
- JSON vs XML - A Jason vs Freddie Sequel
- The Top 250 Players in the Cloud Computing Ecosystem
- Has the Technology Bounceback Begun?
- BPEL Processes and Human Workflow
- i-Technology Viewpoint: The Very Confused World of 3D and XML
- Generating XML from Relational Database Tables
- "HP's Problem Ain't the SAP Install," Says Sun's Schwartz
- Open Source Database Special Feature: An Introduction to Berkeley DB XML
- eXist - An Introduction To Open Source Native XML Database




























