Layered Communications and the Web Site Concentrator
Examples of content aggregation often refer to the use of web services and XML data such as RSS feeds. But today's world of web 2.0 in creating more and more data in a wide variety of formats including JSON (JavaScript Object Notation); and web applications are being used as a concentrator to combine these together.
With the growth of layered communications, multiple communication channels such as text, video and audio are merged into one event. If the content is recorded it can be republished via a web site. But what are the specific security risks of this?
Web services and XML data can include invalid or malicious data. The format/schema may be incorrect. But with the increase in layered communications, content from many different devices in many media may need to be aggregated into a single resource; and these often don't have any formal syntactical structure. The data might even include active content such as embedded rich applications.
If these need to be stored and replayed such content at a later date, how might they affect a web page? The content could contain, or link to, malicious content that steals user data such as session cookies, modifies the page's content or installs malware onto user's computers.
- Identify all the data streams.
- Determine their formats and encoding where appropriate.
- Ruthlessly limit what active (script) content is allowed and what ability it has to interact with the parent web site and its domain.
- Analyse the data streams to validate they contain what is intended and scan for malware.
- Sanitise content where applicable.
- Limit file size/length/number of nodes.
- Avoid merging trusted and untrusted content in data fields.
- Encode the output correctly for your own application.
- Monitor activity and look out for unusual events.
And beware embedding rich internet applications (RIAs) such as Adobe Flash or Microsoft Silverlight, which may be doing this aggregation themselves.
After all, you don't want your web site to be a concentrator multiplexing malware.
Posted on: 20 November 2009 at 12:20 hrs

Comments are filtered automatically and should appear shortly after they been checked.