This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Cross-Site Request Forgery (CSRF)

From OWASP
Jump to: navigation, search
This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.


Cross-Site Request Forgery (CSRF) is an attack that tricks the victim into loading a page that contains img links like the one below:

<img src="http://forum.example.org/send.cfm?subject=test&msg=attack" />

When the victim's browser attempts to render this page, it will issue a request to forum.example.org to the send.cfm page with the specified parameters. In this way, the attacker can make the victim perform actions that they didn't intend to, such as logout, purchase item, or any other function provided by the vulnerable website.