rspec/rules/S106/java/rule.adoc
2022-07-08 13:58:56 +02:00

37 lines
870 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
[source,java]
----
System.out.println("My Message"); // Noncompliant
----
== Compliant Solution
[source,java]
----
logger.log("My Message");
----
== See
* https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/[OWASP Top 10 2021 Category A9] - Security Logging and Monitoring Failures
* https://www.owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure[OWASP Top 10 2017 Category A3] - Sensitive Data Exposure
* https://wiki.sei.cmu.edu/confluence/x/nzdGBQ[CERT, ERR02-J.] - Prevent exceptions while logging data
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]