ASF is Microsoft’s new audio/video format, meant specifically for streaming purposes. It doesn’t specify how the video or audio should be encoded, but instead just specifies the structure of the video/audio stream. This means that ASF files can be encoded with basically any audio/video codec and would still be in ASF format. Many times ASF is confused with Microsoft’s implementation of MPEG-4 video format, because most of the ASF streams are encoded using this technology.
A new attack uses ASF files opened in Windows Media Player to launch Internet Explorer which will then prompt you to download a malicious executable file. If you want to share the asf file with your friends and don’t want to get them infected with malicious scripts, you can convert asf video to flash video and upload it to website, which would benefits both you and your friends.
The Microsoft ASF file format (and some other formats) allows creation of a script stream. The script stream can use certain, simple, script commands in Windows Media Player. The playing application that supports ASF is responsible for executing the script commands at the proper time.
While this attack is not sophisticated at all (and there is no real exploit here, just a “feature”), one thing that is worrying is the fact that this can be used to launch a browser on machines which are not patched, through Windows Media Player. And this also works with the latest Windows Media Player on Vista.
It is possible to disable this “feature” in Windows Media Player by modifying certain registry keys:
Open HKEY_CURRENT_USER\SOFTWARE\Microsoft\MediaPlayer\Preferences
And change values to:
- PlayerScriptCommandsEnabled: 0 (disabled) – disabled as default
- WebScriptCommandsEnabled: 0 (disabled) – default is 1 (enabled)
- URLAndExitCommandsEnabled: 0 (disabled) – default is 1 (enabled)
More information is available at http://support.microsoft.com/kb/320944. The keys might not exist and be very careful when changing anything in the registry.
Due to the recent attacks, the scripts are recommended to be disabled.