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

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.

主站蜘蛛池模板: 肇源县| 北安市| 中方县| 丰城市| 莱西市| 潜山县| 泰来县| 格尔木市| 琼结县| 淅川县| 林州市| 长宁区| 江孜县| 肇庆市| 宁城县| 牟定县| 兴化市| 武宁县| 江门市| 仁寿县| 安乡县| 左贡县| 花莲市| SHOW| 双鸭山市| 武义县| 新巴尔虎右旗| 大丰市| 山东| 松江区| 千阳县| 永济市| 商南县| 莱芜市| 龙游县| 青神县| 陈巴尔虎旗| 台南市| 曲阜市| 鄂尔多斯市| 武胜县|