I have an application which is developed in vb6 and classic asp (12 years back). Now I have to prevent it from Cross-Site Request Forgery (CSRF).
How can I achieve this?
you can achieve it pretty much the same way like in asp.net mvc.
you could even "copy" the asp.net functionality and write a vbscript function like this:
public function AntiForgeryToken()
AntiForgeryToken = "<input type=""hidden"" name=""CSRFToken"" value=""" & session("CSRFToken") & """/>"
end function
' then in every form as needed:
<form>
<%=AntiForgeryToken()%>
<input type="text" name="" value="">
<input type="submit" value="submit">
</form>
further reading: