vendor:
cmd.exe
by:
bitform
CVSS
LOW
Buffer Overflow
119
CWE
Product Name: cmd.exe
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: none
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Windows Server 2003 SP2 and Windows XP SP2
2010
cmd.exe Unicode Buffer Overflow (SEH)
The TYPE command in Windows is equivalent to cat in *nix. It simply outputs the contents of a file to stdout. If you use TYPE in conjunction with the device file CON, you can feed stdin into a file. Example: TYPE CON > evil.txt. CON is also interpreted as a file so you can append an extension to it. Supplying a overly large extension will overflow the structured exception handler. This buffer overflow is not exploitable since cmd.exe and it's DLLs are all compiled with SafeSEH.
Mitigation:
Compile cmd.exe and its DLLs with SafeSEH.