LZhang172972 (Community Member) asked a question.

Help required to fix CWE-352 (CSRF) vulnerability in Asp.Net

Hi,

 

We are applying this practice of CSRF as:

  1. Generate a random key and store it in cookie
  2. Use Double Submit Cookie approach to prevent CSRF. This is to get random key value from cookie, and copy to http header and at the back end validates that random id in cookie and header match.

But in Veracode scan, we got this CWE 352 flaws. Just wondering what is likely being missed for our approach. Thanks in advance.


Topics (7)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.