SMUNDE145961 (Community Member) asked a question.

Insertion of Sensitive Information Into Sent Data (CWE ID 201)

Following is the piece of code in JSP

<jsp:useBean id="test1" scope="session" class="java.lang.String" />

<%=test1%>

 

In the line "<%=test1%>" I am getting the vera code issue . How to fix the issue


  • Hi @SMUNDE145961 (Community Member)​ 

     

    Since the variable has a session scope, it is believed to contain sensitive data.

    It is best to review whether the variable really contains sensitive data or not. If not, you can declare it in the mitigation statement. And if it is sensitive, then ensure the information sent is intended and as per the requirement of the functionality and confirm that it does not violate the application security policy.

    Regards

    Kashif

    Expand Post

Topics (3)

No articles found
Loading

Ask the Community

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