logo

Database

CERT-J

Last updated: 2023/09/18
logo

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.

Control-Requirement Mapping

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