Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Geeks,

I am stuck up with XSRF Security threat fix.

Quote:
var thisURL = window.location.href;

...
...
Quote:
this.navigateTarget.location.href = url;



The above code snippet is from a method which gets a parameter
from a user request URL from element href. I am using checkmarx tool to validate my code, but it is showing as vulnerable to Client DOM XSRF.

Can you please suggest me how can I fix it ?
Posted
Updated 16-Apr-15 17:20pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900