DirectShow Security (Windows Embedded CE 6.0)
1/6/2010
DirectShow should be used with caution in environments that require high security.
DirectShow does not have the intimate interaction with system hardware commonly found in other multimedia features, so it does not involve the same types of security concerns as these other features.
Instead, DirectShow can introduce vulnerabilities to a platform through interaction with other software outside the control of the platform developer or applications programmer.
DirectShow opens network ports for streaming data. This exposes DirectShow applications, and the Windows Embedded CE-based devices that they run on, to the typical security concerns associated with networking, such as denial of service attacks.
However, this means as well that you can implement typical known countermeasures, such as firewalls for streaming media, to enhance the security of your platform or application.
Note
DirectShow opens port 80 when streaming over HTTP and it opens port 1755 when streaming from a Microsoft Media Server (MMS). These port associations hard-coded into DirectShow and therefore cannot be changed.
Note
However, a user can override these settings by explicitly specifying a port number in the URL for their streamed content.
Note
For example, a user could request http://www.southridgevideo.com/movie.wmv:8080 and so long as the server recognized port 8080, DirectShow could receive the content.
DirectShow is designed around the assumption that your application will be working with privileged networks and privileged data sources. It relies on other layers in your application or system architecture to address common network security tasks, such as and authenticating requests or performing packet checksums.
It is also possible for DirectShow applications to be exposed to malicious scripts embedded within certain media file types, such as .asf files.
You should always make sure that any third-party software, like codecs, that you introduce into your DirectShow application is well-tested and comes from a privileged source.
When writing DirectShow applications, always code with the assumption that media data contains formatting or description errors.
See Also
Concepts
Other Resources
DirectShow
DirectShow Application Development
Enhancing the Security of a Device