SOA security exposure?

I was talking to my colleague, Dr. Ronan Bradley, the other day and I suddenly got worried about a potential SOA security hole.

As we all know, SOA systems tend to operate with XML data streams, for example when invoking web services. XML is a self-defining mechanism for data, with pointers and references to ensure the data format can be understood by anyone else. However, it is possible to cross-refer to different parts of the XML stream in such a way that the process becomes recursive. In other words, the parsing process to decode the XML information will loop.

My concern here is that this might offer an opportunity for a Denial of Service (DoS) attack. That is, a malicious party might deliberately send a message containing recursive XML, in the hope of causing the XML parser to loop, thereby blocking any other activity. I am not technically up-to-date enough on the various parsers available in the industry to know for sure, but if the parser does not have some sort of fail-safe then this form of attack would definitely seem to be possible.

The standard way to protect systems from outside attack in the case of the internet is to have a security ‘sniffer’ at the boundary of the enterprise that watches incoming data and looks for threat signatures – that is, characteristics that occur in known threats and threat types. But the problem with the XML thing is that the only way to see if the XML is recursive is to parse it, thereby running in to the problem.

Perhaps this is old news, and the industry has already sorted the problem – but if it has, neither I nor my colleagues are aware of it. It is at least worth SOA adopters, and web services users for that matter, assuring themselves that they are protected from this potential SOA security exposure.

Steve

Post to Twitter Post to Delicious Post to Facebook Post to LinkedIn

3 Responses to SOA security exposure?

  • Steve raised an interesting point – most discussion around XML on the network focuses on the problem of network overloading due to the typically larger size of XML messages. In comparison, security issues such as the risk of DoS have been (relatively) ignored. The lack of general interest in the problem can be seen in the repositioning of most of the XML firewall vendors into XML acceleration (Vordel – http://www.vordel.com being one notable exception).
    The first question is why has it been ignored? Clearly the existence of XML firewall products shows it hasn’t been entirely ignored and a quick search throws up some discussion of the issues (http://lists.xml.org/archives/xml-dev/200508/msg00150.html) but it has never really made it into mainstream thinking. I suspect that this partly related to the close connection between html and XML which leads people to assume that if you cover one, you cover the other one as well. While the risk can be dealt with by taking each incoming document and validating it against well-defined schemas that do not allow rogue documents capable of infinite recursion. However, the complexity inherent in many XML schema (take a look at XBRL for financial reporting or FpML for financial derivatives) inevitably increases the chance of deficiencies in the schema definitions (assuming that the schema designer was even aware of the risk in the first place).
    The second question is does it matter? I suspect that the main defence at the moment is probably ignorance – which as any security consultant will tell you – is no defence. And as SOA drives up the number of XML messages being sent around the enterprise the level of exposure is likely to increase. The solution is really two-fold: Implement good policy around schema definition and enforce good policy around document validation.
    Ronan

  • Anil John says:

    Defending against schema poisoning attacks, as you noted, as well as XML DoS attacks are precisely how a properly configured XML Security Gateway deployed as a centralized Policy Enforcement Point in your perimeter network should be used.

  • Steve Craggs says:

    Agreed, Anil.
    and thanks for the information.
    My point is that I think people are using SOA without realising that they need to make sure the appropriate security measures and configurations are in place.
    Steve


Twitter Goodies

Recent Comments

  • Gravatar icon of AJ Brown AJ Brown
    November 1, 2010 (8:36)
    CICS and PHP - DON'T PANIC It's great to see transactional support of any kind for a cloud language... be it PHP or not (whi...
  • Gravatar icon of Vivekanand Kurdikeri Vivekanand Kurdikeri
    July 16, 2010 (12:41)
    Does Micro Focus Server for SOA miss the point? I think Micro Focus has done a tremodeous introduction of Web Service from a COBOL. May not be a ...
  • Gravatar icon of Ian J Mitchell Ian J Mitchell
    June 15, 2010 (6:14)
    CICS and PHP - DON'T PANIC Hi Steve, Well, we don't actually *demand* that you host the PHP in regions separate to those ru...
  • Gravatar icon of Rick Warren Rick Warren
    April 3, 2010 (12:27)
    AMQP - Great idea, but it will never work As someone who has worked on DDS from an implementation perspective as well as an OMG standards p...
  • Gravatar icon of Steve Craggs Steve Craggs
    December 12, 2009 (9:15)
    Did Teilhard's JuxtaComm patent wipe out IBM, Microsoft and SAP? Subsequent to my post, the Calgary Herald ran an article (http://www.calgaryherald.com/business/P...
  • Gravatar icon of John O'Hara John O'Hara
    December 10, 2009 (9:01)
    AMQP - Great idea, but it will never work Now, this is a late reply! @Thorlin. I looked at DDS before embarking on AMQP (I also looked a...
  • Gravatar icon of Jeff Darcy Jeff Darcy
    December 7, 2009 (2:40)
    Come in Texas East District Court, your time is up The important thing to remember about patents is that they're all about the claims. While the bu...
  • Gravatar icon of Emil Emil
    October 27, 2009 (9:08)
    BAM vs BI Good article. Thanks, Emil
  • Gravatar icon of Business Opportunities Business Opportunities
    October 23, 2009 (11:04)
    So Oracle got Sun - but why? Oracle has stepped up the rhetoric when it comes to its plans for Sun. In a message to Sun custom...
  • Gravatar icon of Gaurav Agarwal Gaurav Agarwal
    September 16, 2009 (1:15)
    IBM gets Cognos to fill the gaps IBM has two BAM solutions now Cognos Now! and Websphere Business Monitor. Why two BAM solutions f...