Since the digital signature of an ActiveX control stays with the file it was attached to, there is a permanent evidence of the designed intent of the control by the developers. However, this evidence does not account for all possible conditions the control may be used in but were never tested for.
ActiveX controls marked as safe are supposed to be safe in all possible conditions. So a control marked as safe for scripting (SFS) or safe for initialization (SFI) must be written to protect itself from any unpredictable results a script author might unintentionally create when scripting the control. While it is relatively easy for a programmer to create a control with adequate guards to avoid misuse, it is impossible to guarantee that the control is always safe when used with scripting created by another author or programmer.
If a control is marked safe for initializing or safe for scripting, the developers are claiming that no matter what values are used to initialize the control, it will not do anything to damage a user’s system or compromise the user’s security when the control is initialized in any way.
The developer of an ActiveX control should take extra care to ensure that a control is in fact safe before it is marked as safe. For example, each ActiveX control, at a minimum, should be evaluated for the following issues:
- It does not over-index arrays or otherwise manipulate memory incorrectly, thereby causing a memory leak or corrupt memory region.
- It validates and corrects all input, including initialization, method parameters, and property setting functions (implements acceptable I/O validation and defense methods)
- It does not misuse any data about, or provided by, the user
- It was tested in a variety of circumstances
One Response to “Determining if an ActiveX control is safe”
Leave a Reply
You must be logged in to post a comment.
August 15th, 2007 at 7:58 am
EDraw Office Viewer Component has been designed as a safety ActiveX Control for the developers to do web application. When you register the ACtiveX Control successfully, you can use it in the default Internet safety setting. But the DSOFramer ActiveX Control hasn’t realized both SFS and SFI interfaces. So the computer with the default internet safety setting will fail to load the office document.