All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.S3318.html Maven / Gradle / Ivy

There is a newer version: 8.6.0.37351
Show newest version

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 that that data being used inappropriately.

This rule raises an issue when data from Cookies or HttpServletRequests is stored in a session.

Noncompliant Code Example

login = request.getParameter("login");
session.setAttribute("login", login);  // Noncompliant

See





© 2015 - 2025 Weber Informatics LLC | Privacy Policy