cbcvebase.
CVE-2013-0657
published 2013-01-21

CVE-2013-0657: Stack-based buffer overflow in Schneider Electric Interactive Graphical SCADA System (IGSS) 10 and earlier allows remote attackers to execute arbitrary code by…

PriorityP271critical10CVSS 2.0
AVNACLAuNCCICAC
EXPLOIT
EPSS
21.26%
97.3th percentile
Stack-based buffer overflow in Schneider Electric Interactive Graphical SCADA System (IGSS) 10 and earlier allows remote attackers to execute arbitrary code by sending TCP port-12397 data that does not comply with a protocol.

Affected

2 ranges
VendorProductVersion rangeFixed in
schneider-electricinteractive_graphical_scada_system<= 10.0
schneider-electricinteractive_graphical_scada_system

Detection & IOCsextracted from sources · hover to see the quote

port12397/TCP
port12401/TCP
otherROP gadget: pop/pop/ret at 0x0F9C520B in exprsrv.dll
pathC:\Documents and Settings\All Users\Application Data\7T\
commandopcode 0x0D (Write packets) to port 12401; opcode 0x0A (EXE packet) to port 12397
snort
alert tcp any any -> $HOME_NET 12397 (msg:"ET SCADA SEIG SYSTEM 9 - Remote Code Execution"; flow:established,to_server; content:"|14 60 00 00 66 66 07 00 10 00 00 00 19 00 00 00 00 00 04 00 00 00 60 00|"; depth:24; content:!"|0d|"; distance:0; content:!"|0a|"; distance:0; content:!"|ff|"; content:!"|00|"; distance:0; reference:url,exploit-db.com/exploits/45218/; reference:cve,2013-0657; classtype:attempted-user; sid:2026003; rev:1;)
bytes
|14 60 00 00 66 66 07 00 10 00 00 00 19 00 00 00 00 00 04 00 00 00 60 00|
  • Monitor for TCP connections to port 12397 carrying out-of-protocol data; the Snort/ET rule triggers on a 24-byte magic header |14 60 00 00 66 66 07 00 10 00 00 00 19 00 00 00 00 00 04 00 00 00 60 00| at depth 24 with absence of bytes 0x0D, 0x0A, 0xFF, and 0x00.
  • The exploit uses a two-stage attack: Write packets (opcode 0x0D) to TCP/12401 drop a payload EXE, then an EXE packet (opcode 0x0A) to TCP/12397 triggers dc.exe to execute it via CreateProcessA. Alert on sequential connections to both ports from the same source.
  • Dropped payload EXE lands in C:\Documents and Settings\All Users\Application Data\7T\ — monitor this directory for unexpected executable creation.
  • The exploit bypasses SafeSEH via exprsrv.dll (a library compiled without SafeSEH). Presence of a return address pointing into exprsrv.dll during a crash/exception in dc.exe is a strong indicator of exploitation.
  • IGSS communicates over both TCP/12397 and TCP/12399 by default; firewall rules should restrict these ports to known ICS device IPs only.
  • ·The ROP gadget address (0x0F9C520B in exprsrv.dll) is version-specific to IGSS v9 on Windows 7 x86; it will differ across OS versions and IGSS patch levels.
  • ·The Metasploit module notes that service packs do not influence exploitability, but targets are limited to Windows XP, Windows 7, and Windows Server 2003/R2.
  • ·The shellcode uses EXITFUNC=thread; without this, the application enters a resource-exhausting loop. Detection of missing EXITFUNC may indicate a DoS-only payload variant.
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.