我们在客户的服务器上部署了一个 .NET 4.0 应用程序,虽然该站点的 URL 在技术上是公开的,但它不被任何其他站点(我们知道的)引用,包括搜索引擎。但是,时不时地(有时一天两次或三次,有时一周一次),我们会抛出异常并报告;
2013-07-21 13:33:40.4226: Error>An uncaught exception occurred on the site (System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (="<?php echo "Content-...").
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequestWrapper.get_Form()
at System.Web.UI.PageRequestManager.IsAsyncPostBackRequest(HttpRequestBase request)
at System.Web.Handlers.ScriptModule.HttpResponse_Redirecting(Object sender, EventArgs e)
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
at System.Web.Security.FormsAuthenticationModule.OnLeave(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously))
我知道HttpRequestValidationException
当有人在文本字段中填写无效字符时会引发这种情况,例如;<script type="javascript">GiveMeAllYourStuff()</script>
但我对 PHP 不够熟悉,尤其是无法猜测发布内容的目的。这是网络蜘蛛寻找网站 URL 的无辜案例,还是错误或更险恶的事情?