logo

CERT-J


Summary

The SEI CERT® Oracle® Secure Coding Standard for Java™ provides rules designed to eliminate insecure coding practices that can lead to exploitable vulnerabilities. This standard, published in 2011, covers security issues.


Definitions

DefinitionRequirements
CERTJ-IDS00-J. Prevent SQL injection
CERTJ-IDS01-J. Normalize strings before validating them
CERTJ-IDS03-J. Do not log unsanitized user input
CERTJ-IDS06-J. Exclude unsanitized user input from format strings
CERTJ-IDS14-J. Do not trust the contents of hidden form fields
CERTJ-IDS16-J. Prevent XML injection
CERTJ-IDS17-J. Prevent XML External Entity attacks
CERTJ-NUM00-J. Detect or prevent integer overflow
CERTJ-OBJ10-J. Do not use public static nonfinal fields
CERTJ-MET02-J. Do not use deprecated or obsolete classes or methods
CERTJ-MET03-J. Methods that perform a security check must be declared private or final
CERTJ-ERR01-J. Do not allow exceptions to expose sensitive information
CERTJ-LCK11-J. Avoid client-side locking when using classes that do not commit to their locking strategy
CERTJ-TSM00-J. Do not override thread-safe methods with methods that are not thread-safe
CERTJ-TSM02-J. Do not use background threads during class initialization
CERTJ-FIO00-J. Do not operate on files in shared directories
CERTJ-FIO01-J. Create files with appropriate access permissions
CERTJ-FIO03-J. Remove temporary files before termination
CERTJ-FIO13-J. Do not log sensitive information outside a trust boundary
CERTJ-FIO14-J. Perform proper cleanup at program termination
CERTJ-SER02-J. Sign then seal objects before sending them outside a trust boundary
CERTJ-SER12-J. Prevent deserialization of untrusted data
CERTJ-SEC04-J. Protect sensitive operations with security manager checks
CERTJ-ENV02-J. Do not trust the values of environment variables
CERTJ-ENV06-J. Production code must not contain debugging entry points
CERTJ-MSC00-J. Use SSLSocket rather than Socket for secure data exchange
CERTJ-MSC02-J. Generate strong random numbers
CERTJ-MSC04-J. Do not leak memory
CERTJ-MSC11-J. Do not let session information leak within a servlet
CERTJ-DRD19-J. Properly verify server certificate on SSL/TLS
CERTJ-DRD15-J. Consider privacy concerns when using Geolocation API
CERTJ-STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator

Last updated

2023/09/18