OPC: ASLR Not Enabled for opccomn_ps.dll and opcproxy.dll in OPC.|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC: ASLR Not Enabled for opccomn_ps.dll and opcproxy.dll in OPC.
Avatar
Bibhudatta Bibhudatta
Member
Members
Forum Posts: 3
Member Since:
07/30/2019
sp_UserOfflineSmall Offline
1
10/12/2019 - 20:42
sp_Permalink sp_Print sp_EditHistory

Address Space Layout Randomization (ASLR) not enabled.

=========================================

The following OPC binaries do not have ASLR enabled when allocating dynamic memory.

  • opccomn_ps.dll (version: 1.10.105.1)
  • opcproxy.dll (Version: 3.0.105.1)

I would like to know whether which version of above dll are having "ASLR" enable option and from where I can get it. Could anyone give opinion on it.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/14/2019 - 00:34
sp_Permalink sp_Print

The DLLs may predate that feature in the C++ compilers and it is likely not a good idea to turn it on because those DLLs are shared by many different applications and changes like that could break something.

Avatar
Bibhudatta Bibhudatta
Member
Members
Forum Posts: 3
Member Since:
07/30/2019
sp_UserOfflineSmall Offline
3
10/17/2019 - 01:51
sp_Permalink sp_Print

Randy Armstrong said
The DLLs may predate that feature in the C++ compilers and it is likely not a good idea to turn it on because those DLLs are shared by many different applications and changes like that could break something.

  

Thank you so much for the information. I would like to get the latest source code of the two binaries (opccomn_ps.dll, opcproxy.dll). Could you please provide link or reference from where I can get the source code downloaded.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
10/17/2019 - 08:25
sp_Permalink sp_Print

These DLLs cannot be built by individual vendors because only one version of the DLL can be installed on a system. The source code is available but only for developer testing - it should never be used to build copies of the proxies for distribution.

Avatar
Bibhudatta Bibhudatta
Member
Members
Forum Posts: 3
Member Since:
07/30/2019
sp_UserOfflineSmall Offline
5
11/03/2019 - 22:59
sp_Permalink sp_Print

 Could you please share your recommendation to mitigate risk associated with not enabling ASLR.
 Is there any plan/timeline in the near future to have this addressed, please share the timeline.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
11/04/2019 - 05:11
sp_Permalink sp_Print

I suggest you do some testing after enabling system wide mandatory ASLR on Windows 8 or later:

https://msrc-blog.microsoft.co.....tory-aslr/

It can be used with DLLs that have not enabled ASLR and should give you "better than nothing" protection when you control the specific systems that are being used.

There are no plans to make any changes to proxy/stubs because they are used by thousands of applications that are not maintained anymore and could break if ASLR is enabled in the proxy/stubs. The link above indicates that Microsoft has limited the effectiveness of the mandatory ASLR  specifically because of the risk of creating problems with legacy applications.

Avatar
Max Mustermann
New Member
Members
Forum Posts: 1
Member Since:
06/23/2016
sp_UserOfflineSmall Offline
7
12/07/2022 - 14:22
sp_Permalink sp_Print

Hi Randy,

I understand that the source code is available for testing purposes only. Could you please share where to access the code for these libraries?

Thanks! 🙂

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
8
12/07/2022 - 20:30
sp_Permalink sp_Print

All code is here:

https://opcfoundation.org/deve.....urce-code/

Only available to Corporate Members.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 43
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1350
Posts: 4578