| Medium (Medium) | Format String Error |
Description | A Format String error occurs when the submitted data of an input string is evaluated as a command by the application. |
| |
| xmlns:soapenv |
| ZAP |
Instances | 1 |
Solution | Rewrite the background program using proper deletion of bad character strings. This will require a recompile of the background executable. |
Other information | Potential Format String Error. The script closed the connection on a /%s |
Reference | |
CWE Id | 134 |
WASC Id | 6 |
Request format is unrecognized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized.
Source Error:
|
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
[InvalidOperationException: Request format is unrecognized.] System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +169729 System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +209 System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +48 System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +339 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 |
MAC:~/Temp$ cat zap2.txt
zap
MAC:~/Temp$ curl -d@zap2.txt -v https://myhost.com/demo/myservice.asmx
* Connected to myhost.com (1.1.1.1) port 443 (#0)
...
> POST /demo/myservice.asmx HTTP/1.1
> Host: myhost.com
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Length: 3
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 3 out of 3 bytes
< HTTP/1.1 500 Internal Server Error
< Cache-Control: private,no-cache, no-store, must-revalidate, private
< Content-Type: application/soap+xml; charset=utf-8
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< X-Frame-Options: DENY
< X-XSS-Protection: 1
< X-Content-Type-Options: nosniff
< Date: Thu, 15 Sep 2016 18:27:43 GMT
< Content-Length: 509
<
* Connection #0 to host myhost.com left intact
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Server was unable to process request. ---> Data at the root level is invalid. Line 1, position 1.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>MAC:~/Temp$ cat zap.txt
%s
MAC:~/Temp$ curl -d@zap.txt -v https://myhost.com/demo/myservice.asmx
* Connected to myhost.com (1.1.1.1) port 443 (#0)
...
> POST /demo/myservice.asmx HTTP/1.1
> Host: myhost.com
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Length: 2
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 2 out of 2 bytes
< HTTP/1.1 500 Internal Server Error
< Cache-Control: private,no-cache, no-store, must-revalidate, private
< Content-Type: application/soap+xml; charset=utf-8
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< X-Frame-Options: DENY
< X-XSS-Protection: 1
< X-Content-Type-Options: nosniff
< Date: Thu, 15 Sep 2016 18:27:56 GMT
< Content-Length: 509
<
* Connection #0 to host myhost.com left intact
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Server was unable to process request. ---> Data at the root level is invalid. Line 1, position 1.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>