OPC Data Client Applications and DCOM Hardening (CVE-2021-26414, KB5004442)
Contents
Specific Product Editions/Versions or Use Cases Affected and Not Affected
- Because of the nature of this product, we STRONGLY RECOMMEND our developer users carefully review this FAQ, our general DCOM hardening FAQ, understand how your users are using your custom application and plan ahead. There are options that require code changes, and ones that do not, but require the addition of other software.
- Because access to your source code would be required, our support team is not able to assist users of your custom written compiled application who are affected. We are empowering you as the developer with options to manage the risk of issues. You are responsible for supporting the users of your compiled applications.
- If you are NOT using OPC Classic DA or OPC A&E with the OPC Data Client toolkit, this FAQ does NOT apply to your application.
- OPC UA client/server connections are not affected
- If your OPC Classic DA or OPC A&E client application always interacts with OPC Classic DA or OPC A&E Servers running on the SAME COMPUTER as your application, this may not apply to you but you should still review this FAQ unless you have chosen to not allow your users to connect to remote OPC servers and implemented limitations to that effect in your custom software.
General Relevant Product information
-
OPC UA Server - no/not applicable as this is an OPC client development toolkit product.
-
OPC UA Client - yes, in all OPC Data Client editions, though we highly recommend you use the Enterprise Edition if you are adding OPC UA to your application. Upgrades to current version and expanded functionality editions are available. Contact us for a quote.
Operating System Support Details - see the OPC Data Client Specifications FAQ
Respects Component Services Settings? It depends on version of toolkit in use and your application code. See Product Specific Details in this FAQ.
Uses Hard-Coded Co-Initialize security Calls? It depends on version of toolkit in use and your application code. See Product Specific Details in this FAQ.
DCOM Hardening Specific Updates Relevant and Available? OPC Data Client Version 2022.1 added specific features to help developers deal with DCOM hardening and were notified of it's availability. We always recommend running the most current version of the product and reserve the right to limit support for non-current software.
Obtaining Current Product Versions - Users on active support & maintenance agreements are entitled to update at no additional cost. Current version is available on the OPC Data Client website. Contact us with your license details to check your support status and if necessary, obtain quote for reinstatement of support & maintenance
Product Specific Settings Recommendations
- Use the information in this FAQ and related resources we link to, to help you assess how you can improve your OPC Classic DA or OPC A&E client application, especially if you are using or can upgrade to OPC Data Client version 2022.1 or newer. There are also options for developers using prior versions of the toolkit.
- Change your application using OPC Data Client toolkit to use OPC UA generic data (For DA) or UA Alarms and Conditions (for A&E)
- All current OPC Data Client toolkit editions support basic OPC UA, but switching your application to support OPC UA and DA or OPC UA instead of DA would require code changes.
- The professional edition supports OPC UA Alarms & Conditions. Edition upgrades are possible, contact us if you need a quote.
- If your OPC servers do not support OPC UA:
- If you need an OPC UA/DA gateway/convertor for DA servers that do not natively support OPC UA, the DataHub OPC Gateway is a robust solution for those OPC DA servers.
- If you need an OPC UA A&C to OPC Classic A&E convertor, we can add the UA A&C and Classic A&E support to DataHub OPC Gateway as an option. Contact us for details.
- If you are unable to change your client application, but your OPC servers support OPC UA, you could put the DataHub OPC Gateway on your client machine, so that your client is talking to the gateway as a local OPC server, and then the gateway communicates via OPC UA to the servers. We can add OPC A&C / OPC Classic A&E support to the Gateway. Contact us for details.
- If you cannot change your OPC client application, and you have OPC Classic DA and/or A&E Servers, then OPC tunneling using the DataHub Tunneler for OPC DA or A&E or both, would be an option.
Understanding OPC Data Client Configuration Settings Affecting DCOM settings
- They can set DCOM security settings programmatically, or
- They can allow their application to use settings in Windows Component Services DCOM Config to determine their security settings
ComManagement.Instance.Configuration.SecurityParameters.EnsureDataIntegrity, which is false by default for backwards compatibility, if set to true, will force compatibility with the Microsoft DCOM hardening update.Our ability to help you with handling these Microsoft changes are subject to the explanations in these articles from our developer partner OPC Labs about COM Security Initialization and Guidance for project types and tools. When reading the articles the terms QuickOPC and OPC Data Client are interchangeable.
EasyDAClient.SharedParameters.MachineParameters.UseCustomSecurity that if set False, will allow the client application to use DCOM Config settings. If this is left at the default of True and not changed, you will have problems because the OPC Data Client code will attempt to override DCOM settings, which will fail after Microsoft enforces their change. You will need to consider one of the options we covered earlier in this FAQ.