Data in a web session is considered inside the "trust boundary". That is, it is assumed to be trustworthy. But storing unvetted data from an unauthenticated user violates the trust boundary, and may lead to that data being used inappropriately.
This rule raises an issue when data from Cookie
s or HttpServletRequest
s is stored in a session.
login = request.getParameter("login"); session.setAttribute("login", login); // Noncompliant