vendor:
IIS
by:
Filip Maertens
7.5
CVSS
HIGH
CGI Filename Decode Error
78
CWE
Product Name: IIS
Affected Version From: Personal Web Server 1.0
Affected Version To: Personal Web Server 3.0
Patch Exists: YES
Related CWE: N/A
CPE: a:microsoft:iis
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
2001
Microsoft IIS CGI Filename Decode Error
When IIS receives a CGI filename request, it automatically performs two actions before completing the request: 1. IIS decodes the filename to determine the filetype and the legitimacy of the file. IIS then carries out a security check. 2. When the security check is completed, IIS decodes CGI parameters. A flaw in IIS involves a third undocumented action: Typically, IIS decodes only the CGI parameter at this point, yet the previously decoded CGI filename is mistakenly decoded twice. If a malformed filename is submitted and circumvents the initial security check, the undocumented procedure will decode the malformed request, possibly allowing the execution of arbitrary commands.
Mitigation:
Ensure that all CGI requests are properly validated and sanitized before being processed.