官术网_书友最值得收藏!

  • Bug Bounty Hunting Essentials
  • Carlos A. Lozano Shahmeer Amir
  • 196字
  • 2021-06-10 18:35:36

Why does the CSRF exist?

Let's go back to the Facebook example. Josefina is a Facebook user, and she accessed Facebook using her username and password. Facebook created a session ID, and stored it in a cookie, which is managed by Josefina's browser. A week later, Josefina accessed Facebook again, but this time, Josefina did not enter her username and password. The browser sends the session that it has in the cookie to Facebook, and Josefina could access her account.

Josefina used a game in Facebook that had an external link. This means that the business logic Josefina is interacting with does not reside in Facebook's servers. After finishing the game, Josefine came back to her account and noticed posts on her wall about Viagra. All of them were posted by her, but she did not do it. What happened?

The game played by Josefina used the information stored in the cookie to post spam on her wall. In Facebook's eyes, this is a completely valid action.

In simple terms, this is a CSRF attack, without big consequences, but just imagine the impact if an online bank, a casino, or a trading application, allowed a CSRF.

主站蜘蛛池模板: 门头沟区| 彩票| 颍上县| 太康县| 灌南县| 玛曲县| 江油市| 阳高县| 城固县| 岚皋县| 德江县| 扎囊县| 宜黄县| 肥东县| 石林| 建阳市| 牡丹江市| 湘潭县| 玛曲县| 峨边| 通城县| 龙门县| 红原县| 新野县| 神木县| 汉阴县| 台州市| 水城县| 上蔡县| 昌乐县| 昌平区| 平原县| 红河县| 治多县| 建水县| 石嘴山市| 南开区| 腾冲县| 桂阳县| 内乡县| 峨眉山市|