{"id":1069,"date":"2011-08-24T11:55:45","date_gmt":"2011-08-24T11:55:45","guid":{"rendered":"https:\/\/www.techopedia.com\/definition\/cross-site-request-forgery\/"},"modified":"2011-08-24T11:55:45","modified_gmt":"2011-08-24T11:55:45","slug":"cross-site-request-forgery","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/172\/cross-site-request-forgery-csrf","title":{"rendered":"Cross-Site Request Forgery"},"content":{"rendered":"
Cross-site request forgery (CSRF) is a type of website exploit carried out by issuing unauthorized commands from a trusted website user. CSRF exploits a website\u2019s trust for a particular user’s browser, as opposed to cross-site scripting, which exploits the user\u2019s trust for a website. <\/p>\n
This term is also known as session riding or a one-click attack.<\/p>\n
A CSRF usually uses a browser’s “GET” command as the exploit point. CSR forgers use HTML tags such as “IMG” to inject commands into a specific website. A particular user of that website is then used as a host and an unwitting accomplice. Often the website does not know that it is under attack, since a legitimate user is sending the commands. The attacker might issue a request to transfer funds to another account, withdraw more funds or, in the case of PayPal and similar sites, send money to another account.<\/p>\n
A CSRF attack is hard to execute because a number of things have to happen in order for it to succeed: <\/p>\n
For example, suppose that Person A is browsing his bank account while also in a chat room. There is an attacker (Person B) in the chat room who learns that Person A is also logged in to bank.com. Person B lures Person A to click on a link for a funny image. The “IMG” tag contains values for bank.com\u2019s form inputs, which will effectively transfer a certain amount from Person A\u2019s account into Person B\u2019s account. If bank.com does not have secondary authentication for Person A before the funds are transferred, the attack will be successful.<\/p>\n","protected":false},"excerpt":{"rendered":"
What Does Cross-Site Request Forgery Mean? Cross-site request forgery (CSRF) is a type of website exploit carried out by issuing unauthorized commands from a trusted website user. CSRF exploits a website\u2019s trust for a particular user’s browser, as opposed to cross-site scripting, which exploits the user\u2019s trust for a website. This term is also known […]<\/p>\n","protected":false},"author":7813,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[218,230,216],"class_list":["post-1069","definition","type-definition","status-publish","format-standard","hentry","definitioncat-cybersecurity","definitioncat-privacy-and-compliance","definitioncat-software-development"],"acf":[],"yoast_head":"\n