Skip to content
Memory corruption Advisory Advanced CVE-2020-7560

Schneider Electric EcoStruxure Control Expert APX project file processing code execution vulnerability

A local code execution vulnerability exists in the APX project file processing of Schneider Electric EcoStruxure Control Expert 14.1. An attacker can provide a malicious STA project archive containing a crafted APX file to trigger an integer overflow, leading to arbitrary memory writes and potential code execution.

Jared Rittle Follow

Originally disclosed on Cisco Talos

High 8.6 View original

A local code execution vulnerability exists in the APX project file processing functionality of Schneider Electric EcoStruxure Control Expert 14.1. The opening of a STA project archive containing a specially crafted APX project file can lead to code execution.

Jared Rittle, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an integer overflow in the calculation of RTE_offset + RTE_length, which bypasses a size check and allows a memcpy to write to an arbitrary offset from a heap buffer.

Impact

An attacker could achieve arbitrary memory writes and potentially execute code in the context of the application, but the attack requires the user to open a malicious file.

What the attacker needed

Victim opens a malicious STA file; local access to the application

How it was found

  1. Craft an APX file with an RTE where RTE_offset and RTE_length are non-null and their sum overflows 0xFFFFFFFF.
  2. Place the APX file inside an STA project archive.
  3. Open the STA archive in Schneider Electric EcoStruxure Control Expert 14.1.
  4. The application parses the APX file, extracts the RTE, and performs the vulnerable memcpy with the attacker-controlled offset and length.
  5. The memcpy overwrites heap metadata, leading to a crash or potential code execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes a flaw in how a program reads project files. By crafting a file with a very large offset value, an attacker can cause the program to write data to an unintended memory location, which can lead to running malicious code. The attacker needs to convince a user to open the malicious file.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Jared Rittle

View all

64 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.