当前位置:网站首页>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.尽量不打开一些不信任的网站
同源策略:

边栏推荐
- Dynamic programming (interval DP)
- Redis things
- Programmers' entrepreneurial trap: taking private jobs
- A simple method of adding dividing lines in recyclerview
- Qt+VTK+OCCT读取IGES/STEP模型
- 面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
- 2. Hal hardware abstraction layer
- 00后抛弃互联网: 毕业不想进大厂,要去搞最潮Web3
- C语言二维数组
- Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests
猜你喜欢

Spl06-007 air pressure sensor (example of barometer)

Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.

Processes and threads

英特尔13代酷睿旗舰曝光,单核5.5GHz

历经一个月,终于拿到金蝶Offer!分享一下四面面经+复习资料

Viewing binary bin files with notepad++ editor

After using the thread pool for so long, do you really know how to reasonably configure the number of threads?

Hal - General

Event preview | the live broadcast industry "rolled in" to drive new data growth points with product power

Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
随机推荐
Spl06-007 air pressure sensor (example of barometer)
英特尔13代酷睿旗舰曝光,单核5.5GHz
Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)
用了这么久线程池,你真的知道如何合理配置线程数吗?
一些常用术语
浅析-JMM内存模型
A simple method of adding dividing lines in recyclerview
POI excel cell wrap
How to: configure ClickOnce trust prompt behavior
表空间创建管理及控制文件管理
Execute kubectl on Tencent cloud container service node
如何成为一名高级数字 IC 设计工程师(1-2)Verilog 编码语法篇:Verilog 1995、2001、2005 标准
C语言二维数组
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
How to become a senior digital IC Design Engineer (1-5) Verilog coding syntax: operand
2022-07-02: what is the output of the following go language code? A: Compilation error; B:Panic; C:NaN。 package main import “fmt“ func mai
CorelDRAW Graphics Suite 2022新版功能详情介绍
在腾讯云容器服务Node上执行 kubectl
1. Hal driven development
Unity移动端游戏性能优化简谱之 画面表现与GPU压力的权衡