text
stringlengths
41
445
<s>[INST] Log Level Info In Catch Block [/INST] Logger level 'error' is expected in catch block.</s>
<s>[INST] Sensitive Info Logged [/INST] Avoid logging of application sensitive data.</s>
<s>[INST] Invalid Logging ClassName [/INST] Avoid incorrect class names while create logger</s>
<s>[INST] Non-ThreadSafe Field Declaration [/INST] Field declared in spring component may not be thread safe.</s>
<s>[INST] Read-Only Transaction [/INST] Readonly transactions is recommended for select queries</s>
<s>[INST] String Concatenation In Logging [/INST] Use of string concatination in logging</s>
<s>[INST] Tightly Coupled Class [/INST] Autowire interface instead of its implementation</s>
<s>[INST] Unusual REST Practice [/INST] REST standards should be followed</s>
<s>[INST] Preserve StackTrace In Logs [/INST] Preserve stack trace in logs</s>
<s>[INST] Use Of Sysout [/INST] Use of System.out.println, use logger instead</s>
<s>[INST] Use Of Syserr [/INST] Use of System.err.println, use logger instead</s>
<s>[INST] Disabled Spring Securitys CSRF [/INST] Do not disable spring security's CSRF</s>
<s>[INST] Security Sensitive REGEX [/INST] Regex pattern coming as input (method parameter, web request attribute, etc.)</s>
<s>[INST] Empty Catch Block [/INST] Catch block should not keep empty.</s>
<s>[INST] Resource Leak [/INST] Close the resources in finally block</s>
<s>[INST] Compile REGEX Once [/INST] Regex pattern not a member, so compiled at every invocation</s>
<s>[INST] Initialization Of SecureRandom At Method Level [/INST] Secure Random should not initialize in method</s>
<s>[INST] Possible ThreadLeak In ExecutorService [/INST] Shutdown the ExecutorService</s>
<s>[INST] Complex REGEX Pattern [/INST] Regex pattern should not be a complex</s>
<s>[INST] Weak Cipher Algorithm [/INST] Use a stronger cipher algorithm</s>
<s>[INST] Sleep In Synchronized Block [/INST] Avoid using Thread.sleep() in a synchronized block or method</s>
<s>[INST] Return Empty Array Or Collection Instead Of Null [/INST] Return an empty array or collection instead of a null value for methods that return an array or collection</s>
<s>[INST] Non-Private Field Access In Synchronized Block [/INST] Non-private field accessed in synchronized block indicates possibly partial synchronization</s>
<s>[INST] Databases Should Be Password Protected [/INST] Use password while creating database connection.</s>
<s>[INST] Potential Command Injection [/INST] Potential Command Injection</s>
<s>[INST] Authenticate LDAP Connection [/INST] LDAP connections should be authenticated</s>
<s>[INST] Web Application Contains Main Method [/INST] Web applications should not have a "main" method</s>
<s>[INST] Should Not Use getRequestedSessionId API [/INST] HttpServletRequest.getRequestedSessionId() should not be used</s>
<s>[INST] Potential Path Traversal [/INST] Potential Path Traversal</s>
<s>[INST] Accessing Android External Storage [/INST] Accessing Android external storage is security-sensitive</s>
<s>[INST] Unsafe Jackson Deserialization [/INST] Using unsafe Jackson deserialization configuration is security-sensitive</s>
<s>[INST] Setting Java Bean Properties [/INST] Setting JavaBean properties is security-sensitive</s>
<s>[INST] Variables Should Not Be Self Assigned [/INST] Re-assignment of a variable to itself is redundant or mistake</s>
<s>[INST] Externalizable Must Have No Arguments Constructor [/INST] Externalizable Must Have No-arguments Constructor </s>
<s>[INST] RunFinalizersOnExit Should Not Be Called [/INST] RunFinalizersOnExit Should Not Be Called </s>
<s>[INST] Run Should Not Be Called Directly [/INST] Do not call run() method directly as it won't create a new thread and it will be in same stack as main.</s>
<s>[INST] Mismatch Regex Boundaries Should Not Be Used [/INST] Mismatch regex boundaries should not be used</s>
<s>[INST] Empty String Should Not Be Used [/INST] Empty string should not be used</s>
<s>[INST] Exceptions Should Not Be Thrown In Finally Block [/INST] Exceptions should not be thrown in finally block</s>
<s>[INST] Shortcircuit Logic Should Be Used In Boolean Contexts [/INST] Shortcircuit logic should be used in boolean contexts</s>
<s>[INST] Getters And Setters Should Access The Expected Fields [/INST] Getters and setters should access the expected fields</s>
<s>[INST] Exclude SpringBootApplication And ComponentScan From The Default Package [/INST] Exclude SpringBootApplication And ComponentScan From The Default Package</s>
<s>[INST] Main Should Not Throw Anything [/INST] Main should not throw anything</s>
<s>[INST] Maps With Enum Values Replace With EnumMap [/INST] Maps With Enum Values Replace With EnumMap</s>
<s>[INST] Avoid Concatenating Char As String [/INST] Avoid Concatenating Char As String</s>
<s>[INST] Avoid Synchronized At Method Level [/INST] Avoid Synchronized At Method Level</s>
<s>[INST] Big Integer Instantiation [/INST] Big Integer Instantiation</s>
<s>[INST] Avoid Catching NPE [/INST] Avoid catching NPE</s>
<s>[INST] Avoid FilecreateTempFile [/INST] Avoid FilecreateTempFile</s>
<s>[INST] Avoid Non Case Labels In Switch Statement [/INST] Avoid non case labels in switch statement</s>
<s>[INST] Clone Without Super [/INST] Clone Without Super</s>
<s>[INST] Unencrypted Socket [/INST] Unencrypted Socket</s>
<s>[INST] Weak SSLContext [/INST] Weak SSLContext</s>
<s>[INST] Improper Validation Of ArrayIndex [/INST] Improper Validation Of ArrayIndex</s>
<s>[INST] Missing Throw In Catch Block [/INST] Missing Throw In Catch Block</s>
<s>[INST] Finalize Without Super [/INST] Finalize Without Super</s>
<s>[INST] Unencrypted Server Socket [/INST] The communication channel used is not encrypted</s>
<s>[INST] Avoid NullCipher [/INST] NullCipher is insecure.</s>
<s>[INST] Non Serializable In Session [/INST] Non Serializable In Session</s>
<s>[INST] Public Static Field Should Be Final [/INST] Field which declared public static should be final</s>
<s>[INST] Empty Synchronized Block [/INST] A troubling part of code may indicate via an empty synchronization block.</s>
<s>[INST] Missing Break Statement In Switch [/INST] Avoid omitting break statement in switch</s>
<s>[INST] Explicit Call To Finalize [/INST] Do not make an explicit call to finalize</s>
<s>[INST] Redirect Without Exit [/INST] Redirect without exit</s>
<s>[INST] Missing Required Cryptographic Step [/INST] Missing required cryptographic step</s>
<s>[INST] Do Not Call System Exit [/INST] Do Not Call System Exit</s>
<s>[INST] Sensitive Data In Serializable Class [/INST] Sensitive Data In Serializable Class can be access by other classes through serialization</s>
<s>[INST] Direct Object Reference [/INST] Direct Object Reference</s>
<s>[INST] Avoid Throwing Generic Exception [/INST] Avoid Throwing Generic Exception</s>
<s>[INST] Error Message Containing Sensitive Data [/INST] Do not use sensitive data in error message</s>
<s>[INST] Return In Finally Block [/INST] Return statement should not used in finally block</s>
<s>[INST] Static Final Array Should Be Private [/INST] An array that declares a final static should not be declared public as malicious code can alter that.</s>
<s>[INST] Avoid Catching Generic Exception [/INST] Avoid Catching Generic Exception</s>
<s>[INST] Public Cloneable Method Without Final [/INST] Public cloneable method should be final</s>
<s>[INST] Missing Default Case In Switch [/INST] Avoid omitting default case in switch</s>
<s>[INST] High Time Complexity Method [/INST] High Time Complexity Method</s>
<s>[INST] Cipher With No Integrity [/INST] Cipher with no integrity</s>
<s>[INST] Finalize Method Declare Public [/INST] Finalize method declare public</s>
<s>[INST] Avoid Using Predictable Random Values [/INST] Avoid Using Predictable Random Values</s>
<s>[INST] Avoid Using RSA Algorithm Without OAEP [/INST] Avoid Using RSA Algorithm Without OAEP</s>
<s>[INST] CNT_ROUGH_CONSTANT_VALUE [/INST] Rough value of known constant found</s>
<s>[INST] NP_BOOLEAN_RETURN_NULL [/INST] Method with Boolean return type returns explicit null</s>
<s>[INST] SW_SWING_METHODS_INVOKED_IN_SWING_THREAD [/INST] Certain swing methods needs to be invoked in Swing thread</s>
<s>[INST] FI_FINALIZER_ONLY_NULLS_FIELDS [/INST] Finalizer only nulls fields</s>
<s>[INST] FI_FINALIZER_NULLS_FIELDS [/INST] Finalizer nulls fields</s>
<s>[INST] UI_INHERITANCE_UNSAFE_GETRESOURCE [/INST] Usage of GetResource may be unsafe if class is extended</s>
<s>[INST] AM_CREATES_EMPTY_ZIP_FILE_ENTRY [/INST] Creates an empty zip file entry</s>
<s>[INST] AM_CREATES_EMPTY_JAR_FILE_ENTRY [/INST] Creates an empty jar file entry</s>
<s>[INST] IMSE_DONT_CATCH_IMSE [/INST] Dubious catching of IllegalMonitorStateException</s>
<s>[INST] CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE [/INST] Class defines clone</s>
<s>[INST] CN_IDIOM [/INST] Class implements Cloneable but does not define or use clone method</s>
<s>[INST] CN_IDIOM_NO_SUPER_CALL [/INST] clone method does not call super.clone</s>
<s>[INST] DE_MIGHT_DROP [/INST] Method might drop exception</s>
<s>[INST] DE_MIGHT_IGNORE [/INST] Method might ignore exception</s>
<s>[INST] DM_EXIT [/INST] Method invokes System.exit</s>
<s>[INST] NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER [/INST] Use of identifier that is a keyword in later versions of Java</s>
<s>[INST] NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER [/INST] Use of identifier that is a keyword in later versions of Java</s>
<s>[INST] JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS [/INST] Fields of immutable classes should be final</s>
<s>[INST] DM_RUN_FINALIZERS_ON_EXIT [/INST] Method invokes dangerous method runFinalizersOnExit</s>
<s>[INST] NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT [/INST] equals</s>