|
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Assume my webpage doesn't have external links, How to cross-site forgery?
Users login websiteA (mywebsite) with valid user_name / password,
Didn't close down the webpage, goes to another website B,
Website B runs some actions (xxxx/deleteabc?abc_id=80) to mywebsite
If this is the only scenario,
Firstly, it's unlikely, --- website B must know my actions,
Secondly, we can check the referrer HttpRequest.UrlReferrer
And thirdly, of couse, set the session to expire (10 mins?)
Back to LZ's question
Our internal website was required to pass the penetration test (including CSRF)--conducted by a security company.
What we done is: check the HttpRequest.UrlReferrer, set the login session to expire. The risk may be still there but the risk level is very low.
[ 本帖最后由 典 于 2011-1-10 14:25 编辑 ] |
评分
-
查看全部评分
|