Is CSRF and Cross-site Scripting the same thing?
Cross-Site Scripting exploits the trust that a client has for the website or application. Users generally trust that the content displayed in their browsers was intended to be displayed by the website being viewed. The website assumes that if an ‘action request’ was performed, that this is what the user wanted and happily performs it. CSRF exploits the trust that a site has for the user.