当前位置:网站首页>web安全--逻辑越权
web安全--逻辑越权
2022-07-02 06:28:00 【藤原千花的败北】
攻击访问控制
逻辑越权从技术上来说就是访问控制存在缺陷。以下攻击访问控制即为逻辑越权。
从客户端的请求,Web应用程序要做到以下两点识别:
- 核实用户身份
- 确认请求序列由该用户提出
基于这两点,web服务端决定是否允许某个请求执行特定的操作或访问它请求的资源。访问控制是个应用程序的重要防御机制,因为它负责做出这些关键决定。如果访问孔子存在缺陷,攻击者往往能够攻破整个应用程序,控制其管理功能并访问属于其他用户的敏感数据。
概念
访问控制漏洞:应用程序允许攻击者执行某种攻击者没有资格执行的操作
各种漏洞之间的差异实际上可归结为这些核心漏洞表西安方式上的不同,以及检测它们所需使用的技巧之间的差异。
分类
访问控制可分为三大类:
- 垂直访问控制
- 水平访问控制
- 上下文相关的访问呢控制
垂直访问控制允许不同的用户访问应用程序不同的功能。例如你在CSDN查看我的文章,如果你不喜欢,你不能下架我的文章,这是管理员才有的权限。这种情况下,应用程序通过这种控制界定普通用户和管理员
水平访问控制允许用户访问一组相同类型的、内容极其广泛的资源。你是CSDN用户,我也是CSDN用户,,我们在这上面能做的操作都一样。
上下文相关的访问控制可确保基于应用程序当前的状态,将用户访问权限仅限于所允许的内容。例如某个过程中,用户需要完成多个阶段的操作,上下文相关的访问控制可防止用户不按规定的顺序访问这些阶段。
如果用户能够访问他无权限访问的功能或资源,就表示访问控制存在缺陷,即存在逻辑越权漏洞。主要由三种类型的以访问控制为攻击的目标,分别与三种访问控制相对应:
- 垂直权限提升:一名用户能够执行某项功能,但分配给他的角色并不具有这种权限。即普通用户执行管理员的操作
- 水平权限提升:一名用户能够查看或修改他没资格的查看或修改的同级别的资源。如你可以编辑我这篇的文章
- 业务逻辑漏洞:用户可以利用应用程序状态机中的漏洞获得关键资源的访问权限。如用户能够避开购物结算序列中支付步骤
实战
pikachu水平越权
水平越权,即要用我的账号,查看你的账号的学习资源。看提示,有用户kobe、lucy。
- 登录kobe账号
- 如上图所示,用burpsuite抓包“查看信息”
- 将kobe改为 lucy,返回lucy的信息
参考
几乎照搬《黑客攻防技术宝典Web实战篇》
边栏推荐
- 静态库和动态库
- Vscode下中文乱码问题
- Use Matplotlib to draw a preliminary chart
- SQLyog远程连接centos7系统下的MySQL数据库
- Live broadcast platform development, flexible menu, and freely adjust the horizontal size of the menu bar
- Backup, recovery and repair of XFS file system
- OpenCV 6.4 中值滤波器的使用
- On the back door of deep learning model
- OpenCV3 6.2 低通滤波器的使用
- 用C# 语言实现MYSQL 真分页
猜你喜欢
How to back up the configuration before the idea when reinstalling the idea
Sequence problem for tqdm and print
Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
Development of digital collection trading website development of metauniverse digital collection
Specification for package drawing
St-link connection error invalid ROM table of STM32 difficult and miscellaneous diseases
Array and string processing, common status codes, differences between PHP and JS (JS)
链表经典面试题(反转链表,中间节点,倒数第k个节点,合并分割链表,删除重复节点)
DWORD ptr[]
Vs code configuration problem
随机推荐
Wang extracurricular words
Introduction to parameters of CarSim pavement 3D shape file
Comparison between setTimeout and requestanimationframe (page refresh)
The internal network of the server can be accessed, but the external network cannot be accessed
Jz-061-serialized binary tree
How to uninstall SQL Server cleanly
常量指针和指针常量
Matlab数学建模工具
Specification for package drawing
Learn to write article format
Get the width and height of the screen in real time (adaptive)
笔记本电脑卡顿问题原因
Sqlyog remote connection to MySQL database under centos7 system
St-link connection error invalid ROM table of STM32 difficult and miscellaneous diseases
樂理基礎(簡述)
On November 24, we celebrate the "full moon"
11月24号,我们为“满月”庆祝
AR system summary harvest
Find and rfind methods in string
Business architecture diagram