WebGoat教程学习(五)--并发(Concurrency)

本文介绍了一种通过利用并发错误查看其他用户登录信息的方法。该方法要求使用两个浏览器同时请求特定用户名的数据,以此来展示多线程安全问题的重要性。

1、The user should be able to exploit the concurrency error in this web application and view login information for another user that is attempting the same function at the same time. This will require the use of two browsers. Valid user names are 'jeff' and 'dave'.

Please enter your username to access your account.

 

同时开2个浏览器,分别请求jeff 和 dave的数据,然后同时请求。

 

但是因为没有考虑到多线程安全的问题,然后后面返回的结果会冲掉之前的。

 

设计程序时,需要考虑线程安全问题。

转载于:https://www.cnblogs.com/cindy-2014/p/6018700.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值