Is it possible to have CSRF if developer mitigates by referrer header
问题 After pentration testing, developer mitigates the CSRF vulnerability by using only referrer header. The application have other vulnerability like XSS. Is it possible to exploit CSRF with the help of XSS? if yes how? 回答1: Short story: Its very difficult to design effective CSRF protection when XSS is present. Mitigation of CSRF via referrer header is generally considered a weak defense - there are situations where these are stripped (by the browsers or proxies) and you would need to fail these