Answered by:
Is SharePoint 2013 vulnerable to cross-site request forgery?

Question
-
I am wondering if there is any Microsoft article which states that SharePoint 2013 OOTB is NOT vulnerable to cross-site request forgery! I would appreciate if MVPs can provide here an evidence for this purpose.
Thanks
Tuesday, December 20, 2016 12:26 PM
Answers
-
Hi Rio,
SharePoint uses a FormDigest to prevent common CSRF attacks, and the pages which inherits the OOTB master page will contain the Form Digest canary value.
For pages which does not inherit the OOTB master page, you need to use the Microsoft.SharePoint.WebControls.FormDigest control to write the value into the page.
For more reference:
http://blog.sandeeprawat.com/2010/09/sharepointpreventing-csrf-using-dynamic.html
Best Regards,
VictoriaPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Wendy DZMicrosoft contingent staff Wednesday, January 4, 2017 1:54 AM
- Marked as answer by Sjoukje ZaalMVP Monday, January 16, 2017 1:55 PM
Friday, December 30, 2016 9:36 AM
All replies
-
Hi Rio- I don't know if any article actually exists, but the answer is that SharePoint IS vulnerable, just like anything else. However, steps have been taken to prevent it and give you the ability on your end to make sure it doesn't happen. See the following link for detailed information:
cameron rautmann
Tuesday, December 20, 2016 1:28 PM -
Hi, My question is related to cross-site request forgery (CSRF) as stated at https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF). NOT cross site scripting.Wednesday, December 21, 2016 4:27 AM
-
Sorry, but the same answer. Read more here:
cameron rautmann
Wednesday, December 21, 2016 1:16 PM -
I have gone to thru the article you had mentioned. But neither it says SharePoint prevents CSRF nor explains how to prevent CSRF. Can you explain how to prevent CSRF on OOTB SP2013 if it is not prevented by default?
If prevented by default can you get me an evidence or explain how to obtain an evidence?
Thanks in advance
Wednesday, December 28, 2016 4:54 AM -
Hi Rio,
SharePoint uses a FormDigest to prevent common CSRF attacks, and the pages which inherits the OOTB master page will contain the Form Digest canary value.
For pages which does not inherit the OOTB master page, you need to use the Microsoft.SharePoint.WebControls.FormDigest control to write the value into the page.
For more reference:
http://blog.sandeeprawat.com/2010/09/sharepointpreventing-csrf-using-dynamic.html
Best Regards,
VictoriaPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Wendy DZMicrosoft contingent staff Wednesday, January 4, 2017 1:54 AM
- Marked as answer by Sjoukje ZaalMVP Monday, January 16, 2017 1:55 PM
Friday, December 30, 2016 9:36 AM -
How does this work with SharePoint Online?
I mean, there are no Server Controls in SharePoint Online. Right?
Karthick S
Tuesday, March 13, 2018 4:29 PM -
You don't have control over this with the online version.
cameron rautmann
Tuesday, March 13, 2018 4:59 PM