Secunia Research: RSLinx OPC Automation ActiveX Control Buffer Overflow

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

                     Secunia Research 29/06/2011

      - RSLinx OPC Automation ActiveX Control Buffer Overflow -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software 

* Rockwell OPC Automation ActiveX Control version 1.1.8.0
* RSLinx 2.3.1 Build 10.

NOTE: Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Highly critical
Impact: System access
Where:  Remote

====================================================================== 
3) Vendor's Description of Software 

"RSLinx Classic provides plant-floor device connectivity for a wide
variety of Rockwell Software applications such as RSLogix 5/500/5000
and RSView32. RSLinx Classic also provides open interfaces for third-
party HMI, data collection and analysis packages, as well as custom 
client-applications."

Product Link:
http://www.rockwellautomation.com/rockwellsoftware/design/rslinx/

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in RSLinx, which can
be exploited by malicious people to compromise a user's system.

The vulnerability is caused by a boundary error in the OPC Automation 
ActiveX control ("RsiOPCAuto.OPCServer") when creating debug strings. 
This can be exploited to cause a stack-based buffer overflow via an 
overly long string passed e.g. in the "ProgID" parameter to the
"Connect()" method.

Successful exploitation allows execution of arbitrary code.

====================================================================== 
5) Solution 

Update to version 2.55 or apply patch (scheduled for July 2011).

====================================================================== 
6) Time Table 

10/06/2011 - Requested security contact.
11/06/2011 - Vendor response.
20/06/2011 - Vendor notified
20/06/2011 - Vendor acknowledgement.
28/06/2011 - Vendor releases a security advisory.
29/06/2011 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Dmitriy Pletnev, Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has not yet
assigned a CVE identifier for the vulnerability.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://secunia.com/advisories/business_solutions/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.

http://secunia.com/advisories/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

http://secunia.com/secunia_research/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/corporate/jobs/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/advisories/mailing_lists/

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2011-50/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

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