ASP.NET Web应用程序的安全性

编程入门 行业动态 更新时间:2024-10-28 12:31:03
本文介绍了ASP.NET Web应用程序的安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在为Web应用程序提供安全性的同时,我们避免使用来自GUI的特殊字符输入。 但是任何客户端都希望在某些字段中允许特殊字符,然后如何处理特殊字符验证。

解决方案

http:// msdn.microsoft/en-us/library/330a99hc(v=vs.71).aspx [ ^ ] msdn.microsoft/en-IN/library/330a99hc(v = VS.100)的.aspx [ ^ ] ASP.NET Web应用程序安全性审查:做'和&不要 [ ^ ]

我假设你正在谈论通过阻止用户输入用户名来阻止SQL注入 max;从客户删除; 例如? 但是后来你的顾客来了,想要进入被分号分隔的点燃物品? 基本上你只需要确保你不是无论输入的文本是什么,都容易受到注入攻击。 例如,不要通过连接来构建SQL字符串。 使用存储过程而不是直接SQL(优先级问题) 使用参数化查询 使用无法直接访问表的数据库用户(即仅通过SP和Vie WS)

While providing security to web applications we are avoiding special characters inputs from GUI. But any client want to allowed the special characters in some fields then how to handle special characters validations.

解决方案

msdn.microsoft/en-us/library/330a99hc(v=vs.71).aspx[^] msdn.microsoft/en-IN/library/330a99hc(v=vs.100).aspx[^] ASP.NET web application security review: Do''s & Don''ts[^]

I''m assuming you are talking about preventing SQL injection by stopping users typing their user name as max;delete from customer; for example? But then a customer of yours comes along and wants to enter a lit of items separated by semi-colons? Essentially you just need to make sure you aren''t vulnerable to injection attacks regardless of the text entered. Don''t build your SQL strings by concatenation, for example. Use stored procedures rather than direct SQL (a matter of preference) Use parameterised queries Utilise a database user that does not have access to tables directly (i.e. only through SP and Views)

更多推荐

ASP.NET Web应用程序的安全性

本文发布于:2023-11-07 21:51:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567529.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   安全性   ASP   NET   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!