博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ASP.NET Misconfiguration: Request Validation Disabled
阅读量:6326 次
发布时间:2019-06-22

本文共 984 字,大约阅读时间需要 3 分钟。

Abstract:

Use the ASP.NET validation framework to prevent vulnerabilities that result from unchecked input.

Explanation:

Unchecked input is the leading cause of vulnerabilities in ASP.NET applications. Unchecked input leads to cross-site scripting,

process control, and SQL injection vulnerabilities, among others.

To prevent such attacks, use the ASP.NET validation framework to check all program input before it is processed by the

application.

Example uses of the validation framework include checking to ensure that:

- Phone number fields contain only valid characters in phone numbers

- Boolean values are only "T" or "F"

- Free-form strings are of a reasonable length and composition

Recommendations:

Although validation is on by default, you should make this explicit to prevent confusion by enabling the validation framework in

your Web.config file. An example of a typical setup is:

<configuration>

<system.web>

<pages validateRequest="true" />

</system.web>

</configuration>

转载地址:http://hsgaa.baihongyu.com/

你可能感兴趣的文章
oracle连接两个数据库
查看>>
Sybase常用函数
查看>>
RMAN-format变量及configuration配置项
查看>>
Properties中的主要方法
查看>>
LeetCode44.通配符匹配
查看>>
Win7 IIS 局域网中无法访问网页
查看>>
idea中maven web项目设置的相关问题
查看>>
【java】静态方法声明与调用习题
查看>>
C#中数组、ArrayList和List三者的区别
查看>>
项目总结(2010-8-8)
查看>>
MYSQL-innodb性能优化几个点
查看>>
nstimer,需要注册到 runloop里面去的,
查看>>
C# Socket系列3 Socket服务端开发
查看>>
Spring中IOC和AOP的详细解释
查看>>
SQL Server 表分区(partitioned table/Data Partitioning)
查看>>
linux环境下学习使用pro*c/c++工具
查看>>
Unity游戏开发之“屏幕截图”
查看>>
GDB Layout
查看>>
剑指Offer——面试题27:二叉搜索树与双向链表
查看>>
【HDOJ】2585 Hotel
查看>>