当前位置:网站首页>Web安全总结
Web安全总结
2022-07-03 10:34:00 【江南无故人】
SQL注入
原理:
利用Web应用对后台数据库查询语句处理存在的安全漏洞,攻击者提交一段精心构造的数据库查询代码,根据返回的结果,获得他想得知的数据
受影响的系统:对输入参数不进行检查和过滤的系统
常见的SQL注入过程:
1.修改参数值等数据,被修改的数据注入到SQL语句中
2.数据库引擎执行被修改的SQL命令,将结果返回
3.根据返回的敏感信息构造语句进行进一步注入

例:


跨站脚本攻击(XSS)
原理:
Web服务器没有对用户输入进行有效性验证,而又轻易返回给客户端
攻击者往Web页面里插入恶意html代码,当用户浏览该网页时,嵌入其中的恶意代码被执行
危害:
可以盗取用户帐户,修改用户设置,盗取/污染cookie,做虚假广告,查看主机信息等

攻击步骤:
1.寻找漏洞
2.注入恶意代码
3.欺骗用户访问


跨站请求伪造(CSRF)
原理:
目标网站A,恶意网站B

文件包含漏洞

当使用这4个函数包含一个新的文件时,该文件将作为php代码执行,php内核并不会在意该被包含文件的类型
验证码技术
用于人机区分,是防御http攻击的一种手段

总结
客户端和服务器面临的威胁:
防御Web攻击:
服务器:
1.简单性,最好把不必要的服务卸掉
2.使用超级用户需谨慎
3.本地和远程访问控制
4.审计,在审计记录中查找可疑数据
5.备份策略,方便快速恢复服务以减少损失
客户端:
1.对浏览器的安全性进行设置,使用漏洞数较少的浏览器,经常对浏览器进行升级
2.经常对操作系统打补丁、升级
3.尽量不打开一些不信任的网站
同源策略:

边栏推荐
- Illustrated network: what is virtual router redundancy protocol VRRP?
- Repo ~ common commands
- Key switch: press FN when pressing F1-F12
- VPP三层网络互联配置
- 帝国cms 无缩略图 灵动标签(e:loop)判断有无标题图片(titlepic)的两种写法
- 一文搞懂Go语言Context
- Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)
- C language log base zlog basic use
- [VTK] vtkWindowedSincPolyDataFilter 源码注释解读
- Oracle withdraw permission & create role
猜你喜欢

Matlab extracts numerical data from irregular txt files (simple and practical)

Cadence background color setting

用了这么久线程池,你真的知道如何合理配置线程数吗?

Abandon the Internet after 00: don't want to enter a big factory after graduation, but go to the most fashionable Web3

面试题总结(2) IO模型,集合,NIO 原理,缓存穿透,击穿雪崩

DS90UB949

DS90UB949

A simple method of adding dividing lines in recyclerview

LeetCode 46:全排列

Machine learning 3.2 decision tree model learning notes (to be supplemented)
随机推荐
如何成为一名高级数字 IC 设计工程师(1-2)Verilog 编码语法篇:Verilog 1995、2001、2005 标准
图解网络:什么是虚拟路由器冗余协议 VRRP?
Redis things
Solicitation for JGG special issue: spatio-temporal omics
Matlab extracts numerical data from irregular txt files (simple and practical)
聊聊Flink框架中的状态管理机制
Asyncio warning deprecationwarning: there is no current event loop
Unique in the industry! Fada electronic contract is on the list of 36 krypton hard core technology enterprises
Oracle withdraw permission & create role
How to become a senior digital IC Design Engineer (1-2) Verilog coding syntax: Verilog 1995, 2001, 2005 standards
.\vmware-vdiskmanager.exe -k “c:\\xxxxx.vmdk”
Bi skills - permission axis
Phpcms prompt message page Jump to showmessage
[VTK] vtkPolydataToImageStencil 源码解读
Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)
如何成为一名高级数字 IC 设计工程师(1-4)Verilog 编码语法篇:表达式
DS90UB949
Google Earth engine (GEE) -- when we use the front and back images to make up for the interpolation effect, what if there is no effect?
[vtk] interpretation of source code comments of vtkwindowedsincpolydatafilter
Dynamic programming (interval DP)