SNarkhede (Community Member) asked a question.

CWE 384 session fixation

We are getting Session Fixation CWE ID 384 flaw for below piece of code, we tried multiple solution available on network but unable to fix this problem, getting this flaw in below code

 

synchronized (request.getSession()) {

        request.getSession().setAttribute(abc,xyz);

}.

Another thing is as per design restriction we can’t invalidate existing session and recreate new one

Please share possible solution.


VCode likes this.

Topics (4)

No articles found
Loading

Ask the Community

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