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.
Originally disclosed on Cisco Talos
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.
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
- Craft an APX file with an RTE where RTE_offset and RTE_length are non-null and their sum overflows 0xFFFFFFFF.
- Place the APX file inside an STA project archive.
- Open the STA archive in Schneider Electric EcoStruxure Control Expert 14.1.
- The application parses the APX file, extracts the RTE, and performs the vulnerable memcpy with the attacker-controlled offset and length.
- 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.