How to demonstrate a CSRF attack

后端 未结 1 840
囚心锁ツ
囚心锁ツ 2020-12-07 23:42

I\'m doing an introduction to the web security to some other people in our enterprise, and I want to show some example to have more impact.

For this I\'ve created a

1条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 00:04

    On the "other host" (the attacker) you just create a FORM with method POST whose action (i.e. where the form is submitted) is your vulnerable app. Then you submit it with javascript on that page.

    Like this:

    
      

    This will submit a POST to your vulnerable app from the attacker's host, when you open that page.

    0 讨论(0)
提交回复
热议问题