The following document contains the results of SpotBugs
SpotBugs Version is 4.10.4
Threshold is medium
Effort is default
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.AbstractConnection(String, Socket) may expose internal representation by storing an externally mutable object into AbstractConnection.client | MALICIOUS_CODE | EI_EXPOSE_REP2 | 132 | Medium |
| new davmail.AbstractConnection(String, Socket, String) may expose internal representation by storing an externally mutable object into AbstractConnection.client | MALICIOUS_CODE | EI_EXPOSE_REP2 | 145 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| The lock object davmail.DavGateway.LOCK used in method davmail.DavGateway.main(String[]) is exposed to untrusted code outside of class davmail.DavGateway, through updating or returning its value from static davmail.DavGateway.access$100()Ljava/lang/Object;. | SECURITY | USO_UNSAFE_ACCESSIBLE_OBJECT_SYNCHRONIZATION | 62-185 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Do not catch NullPointerException like in davmail.Settings.isJFXAvailable() | STYLE | DCN_NULLPOINTER_EXCEPTION | 931 | Medium |
| Hard coded reference to an absolute pathname in davmail.Settings.isDocker() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 938 | Medium |
| Hard coded reference to an absolute pathname in davmail.Settings.isDocker() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 939 | Medium |
| Static synchronized method davmail.Settings.getBooleanProperty(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 625-626 | Medium |
| Static synchronized method davmail.Settings.getBooleanProperty(String, boolean) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 637-642 | Medium |
| Static synchronized method davmail.Settings.getCharArrayProperty(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 566-571 | Medium |
| Static synchronized method davmail.Settings.getConfigFilePath() uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 959-965 | Medium |
| Static synchronized method davmail.Settings.getIntProperty(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 595 | Medium |
| Static synchronized method davmail.Settings.getIntProperty(String, int) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 606-615 | Medium |
| Static synchronized method davmail.Settings.getLoggingLevel(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 741-749 | Medium |
| Static synchronized method davmail.Settings.getProperty(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 535-540 | Medium |
| Static synchronized method davmail.Settings.getProperty(String, String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 551-555 | Medium |
| Static synchronized method davmail.Settings.getSubProperties(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 761-776 | Medium |
| Static synchronized method davmail.Settings.isFirstStart() uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 133 | Medium |
| Static synchronized method davmail.Settings.load() uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 152-176 | Medium |
| Static synchronized method davmail.Settings.load(InputStream) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 143-145 | Medium |
| Static synchronized method davmail.Settings.loadRefreshToken(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 646-650 | Medium |
| Static synchronized method davmail.Settings.save() uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 419-449 | Medium |
| Static synchronized method davmail.Settings.saveProperty(String, String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 804-807 | Medium |
| Static synchronized method davmail.Settings.setConfigFilePath(String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 124-125 | Medium |
| Static synchronized method davmail.Settings.setLoggingLevel(String, Level) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 786-795 | Medium |
| Static synchronized method davmail.Settings.setProperty(String, String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 581-586 | Medium |
| Static synchronized method davmail.Settings.storeRefreshToken(String, String) uses intrinsic lock of class davmail.Settings for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 656-663 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Shared primitive variable "closed" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 230 | Medium |
| Shared primitive variable "closed" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 1433 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.caldav.CaldavConnection$CaldavRequest at new davmail.caldav.CaldavConnection$CaldavRequest(String, String, Map, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1502 | Medium |
| davmail.caldav.CaldavConnection$CaldavRequest.getHrefs() may expose internal representation by returning CaldavConnection$CaldavRequest.hrefs | MALICIOUS_CODE | EI_EXPOSE_REP | 1753 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.caldav.CaldavConnection$CaldavResponse at new davmail.caldav.CaldavConnection$CaldavResponse(CaldavConnection, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1880 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.caldav.CaldavConnection$ChunkedResponse at new davmail.caldav.CaldavConnection$ChunkedResponse(CaldavConnection, int, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1861 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ExchangeSession.sendMessage(List, MimeMessage) may expose internal representation by storing an externally mutable object into ExchangeSession.lastRcptToRecipients | MALICIOUS_CODE | EI_EXPOSE_REP2 | 862 | Medium |
| davmail.exchange.ExchangeSession.CONTACT_ATTRIBUTES is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 3129 | High |
| davmail.exchange.ExchangeSession.DISTRIBUTION_LIST_ATTRIBUTES is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 3206 | High |
| davmail.exchange.ExchangeSession.IMAP_MESSAGE_ATTRIBUTES is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 298 | High |
| davmail.exchange.ExchangeSession.SPECIAL is a mutable collection | MALICIOUS_CODE | MS_MUTABLE_COLLECTION | 105 | High |
| davmail.exchange.ExchangeSession.POP_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 279 | Medium |
| davmail.exchange.ExchangeSession.UID_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 319 | Medium |
| davmail.exchange.ExchangeSession.importanceToPriorityMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3383 | Medium |
| davmail.exchange.ExchangeSession.priorityToImportanceMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3391 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ExchangeSession$Contact(ExchangeSession, String, String, Map, String, String) may expose internal representation by storing an externally mutable object into ExchangeSession$Contact.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1956 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.ExchangeSession$Event at new davmail.exchange.ExchangeSession$Event(ExchangeSession, String, String, String, String, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 2169 | Medium |
| new davmail.exchange.ExchangeSession$Event(ExchangeSession, String, String, String, String, String, String) may expose internal representation by storing an externally mutable object into ExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2166 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ExchangeSession$Folder.getImapFlagMap() may expose internal representation by returning ExchangeSession$Folder.imapFlagMap | MALICIOUS_CODE | EI_EXPOSE_REP | 1370 | Medium |
| new davmail.exchange.ExchangeSession$Folder(ExchangeSession) may expose internal representation by storing an externally mutable object into ExchangeSession$Folder.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1174 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ExchangeSession$Message.getMimeMessage() may expose internal representation by returning ExchangeSession$Message.mimeMessage | MALICIOUS_CODE | EI_EXPOSE_REP | 1624 | Medium |
| new davmail.exchange.ExchangeSession$Message(ExchangeSession) may expose internal representation by storing an externally mutable object into ExchangeSession$Message.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1425 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ExchangeSession$MessageList is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 1827-1844 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ExchangeSession$MultiCondition.getConditions() may expose internal representation by returning ExchangeSession$MultiCondition.conditions | MALICIOUS_CODE | EI_EXPOSE_REP | 464 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Do not catch NullPointerException like in davmail.exchange.ExchangeSessionFactory.getInstance(String, String, String) | STYLE | DCN_NULLPOINTER_EXCEPTION | 255 | Medium |
| Switch statement found in davmail.exchange.ExchangeSessionFactory.getAuthenticatorClass(String) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 443-458 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.ICSBufferedReader at new davmail.exchange.ICSBufferedReader(Reader) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 41 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Public static davmail.exchange.MessageCreateThread.createMessage(ExchangeSession, String, String, HashMap, MimeMessage, OutputStream, String) may expose internal representation by returning MessageCreateThread.message | MALICIOUS_CODE | MS_EXPOSE_REP | 94 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| The 'EEE, dd MMM yyyy hh:mm:ss Z' date format string may lead to unexpected behavior used in writeHeader(String, Date) | BAD_PRACTICE | FS_BAD_DATE_FORMAT_FLAG_COMBO | 69 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.VCalendar at new davmail.exchange.VCalendar(BufferedReader, String, VObject) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 61 | Medium |
| Exception thrown in class davmail.exchange.VCalendar at new davmail.exchange.VCalendar(String, String, VObject) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 79 | Medium |
| Exception thrown in class davmail.exchange.VCalendar at new davmail.exchange.VCalendar(byte[], String, VObject) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 91 | Medium |
| davmail.exchange.VCalendar.getFirstVevent() may expose internal representation by returning VCalendar.firstVevent | MALICIOUS_CODE | EI_EXPOSE_REP | 936 | Medium |
| davmail.exchange.VCalendar.getVTimezone() may expose internal representation by returning VCalendar.vTimezone | MALICIOUS_CODE | EI_EXPOSE_REP | 609 | Medium |
| davmail.exchange.VCalendar.addVObject(VObject) may expose internal representation by storing an externally mutable object into VCalendar.firstVevent | MALICIOUS_CODE | EI_EXPOSE_REP2 | 118 | Medium |
| davmail.exchange.VCalendar.addVObject(VObject) may expose internal representation by storing an externally mutable object into VCalendar.vTimezone | MALICIOUS_CODE | EI_EXPOSE_REP2 | 122 | Medium |
| davmail.exchange.VCalendar.setTimezone(VObject) may expose internal representation by storing an externally mutable object into VCalendar.vTimezone | MALICIOUS_CODE | EI_EXPOSE_REP2 | 112 | Medium |
| Uninitialized read of vTimezone in new davmail.exchange.VCalendar(BufferedReader, String, VObject) | CORRECTNESS | UR_UNINIT_READ | 65 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.VObject at new davmail.exchange.VObject(VProperty, BufferedReader) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 53 | Medium |
| Exception thrown in class davmail.exchange.VObject at new davmail.exchange.VObject(BufferedReader) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 76 | Medium |
| Exception thrown in class davmail.exchange.VObject at new davmail.exchange.VObject(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 86 | Medium |
| davmail.exchange.VObject.getProperties() may expose internal representation by returning VObject.properties | MALICIOUS_CODE | EI_EXPOSE_REP | 185 | Medium |
| Primitive field davmail.exchange.VObject.type is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. | BAD_PRACTICE | PA_PUBLIC_PRIMITIVE_ATTRIBUTE | 55 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.VProperty at new davmail.exchange.VProperty(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 164 | Medium |
| davmail.exchange.VProperty.getValues() may expose internal representation by returning VProperty.values | MALICIOUS_CODE | EI_EXPOSE_REP | 197 | Medium |
| davmail.exchange.VProperty.MULTIVALUED_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 32 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.auth.ExchangeFormAuthenticator.getHttpClientAdapter() may expose internal representation by returning ExchangeFormAuthenticator.httpClientAdapter | MALICIOUS_CODE | EI_EXPOSE_REP | 722 | Medium |
| davmail.exchange.auth.ExchangeFormAuthenticator.PASSWORD_FIELDS is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 87 | Medium |
| davmail.exchange.auth.ExchangeFormAuthenticator.TOKEN_FIELDS is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 102 | Medium |
| davmail.exchange.auth.ExchangeFormAuthenticator.USER_NAME_FIELDS is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 72 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in davmail.exchange.auth.O365Authenticator.retrieveSmsCode(String, String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 718 | High |
| davmail.exchange.auth.O365Authenticator.getToken() may expose internal representation by returning O365Authenticator.token | MALICIOUS_CODE | EI_EXPOSE_REP | 123 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.auth.O365DeviceCodeAuthenticator.getToken() may expose internal representation by returning O365DeviceCodeAuthenticator.token | MALICIOUS_CODE | EI_EXPOSE_REP | 241 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.auth.O365InteractiveAuthenticator.getToken() may expose internal representation by returning O365InteractiveAuthenticator.token | MALICIOUS_CODE | EI_EXPOSE_REP | 59 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.auth.O365InteractiveAuthenticatorFrame at new davmail.exchange.auth.O365InteractiveAuthenticatorFrame() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 116 | Medium |
| davmail.exchange.auth.O365InteractiveAuthenticatorFrame.setO365InteractiveAuthenticator(O365InteractiveAuthenticator) may expose internal representation by storing an externally mutable object into O365InteractiveAuthenticatorFrame.authenticator | MALICIOUS_CODE | EI_EXPOSE_REP2 | 121 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.auth.O365InteractiveAuthenticatorSWT.setO365InteractiveAuthenticator(O365InteractiveAuthenticator) may expose internal representation by storing an externally mutable object into O365InteractiveAuthenticatorSWT.authenticator | MALICIOUS_CODE | EI_EXPOSE_REP2 | 58 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in davmail.exchange.auth.O365ManualAuthenticator.getCodeFromConsole(String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 132 | High |
| davmail.exchange.auth.O365ManualAuthenticator.getToken() may expose internal representation by returning O365ManualAuthenticator.token | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.auth.O365ManualAuthenticatorDialog at new davmail.exchange.auth.O365ManualAuthenticatorDialog(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 57 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.auth.O365StoredTokenAuthenticator.getToken() may expose internal representation by returning O365StoredTokenAuthenticator.token | MALICIOUS_CODE | EI_EXPOSE_REP | 79 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.auth.O365Token at new davmail.exchange.auth.O365Token(String, String, O365DeviceCodeAuthenticator$DeviceCode, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 102 | Medium |
| Exception thrown in class davmail.exchange.auth.O365Token at new davmail.exchange.auth.O365Token(String, String, String, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 87 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.dav.DavExchangeSession at new davmail.exchange.dav.DavExchangeSession(HttpClientAdapter, URI, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 587 | Medium |
| new davmail.exchange.dav.DavExchangeSession(HttpClientAdapter, URI, String) may expose internal representation by storing an externally mutable object into DavExchangeSession.httpClientAdapter | MALICIOUS_CODE | EI_EXPOSE_REP2 | 585 | Medium |
| davmail.exchange.dav.DavExchangeSession.EVENT_REQUEST_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2271 | Medium |
| davmail.exchange.dav.DavExchangeSession.FOLDER_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 1847 | Medium |
| davmail.exchange.dav.DavExchangeSession.ITEM_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2172 | Medium |
| davmail.exchange.dav.DavExchangeSession.importanceToPriorityMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3150 | Medium |
| davmail.exchange.dav.DavExchangeSession.priorityToImportanceMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3158 | Medium |
| Unread public/protected field: davmail.exchange.dav.DavExchangeSession.outboxName | STYLE | URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD | 881 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.dav.DavExchangeSession$Contact at new davmail.exchange.dav.DavExchangeSession$Contact(DavExchangeSession, MultiStatusResponse) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1202 | Medium |
| new davmail.exchange.dav.DavExchangeSession$Contact(DavExchangeSession) may expose internal representation by storing an externally mutable object into DavExchangeSession$Contact.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1228 | Medium |
| new davmail.exchange.dav.DavExchangeSession$Contact(DavExchangeSession, String, String, Map, String, String) may expose internal representation by storing an externally mutable object into DavExchangeSession$Contact.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1221 | Medium |
| new davmail.exchange.dav.DavExchangeSession$Contact(DavExchangeSession, MultiStatusResponse) may expose internal representation by storing an externally mutable object into DavExchangeSession$Contact.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1201 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.dav.DavExchangeSession$Event at new davmail.exchange.dav.DavExchangeSession$Event(DavExchangeSession, MultiStatusResponse) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1393 | Medium |
| new davmail.exchange.dav.DavExchangeSession$Event(DavExchangeSession, String, String, String, String, String, String) may expose internal representation by storing an externally mutable object into DavExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1407 | Medium |
| new davmail.exchange.dav.DavExchangeSession$Event(DavExchangeSession, MultiStatusResponse) may expose internal representation by storing an externally mutable object into DavExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1392 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.dav.DavExchangeSession$Message(DavExchangeSession) may expose internal representation by storing an externally mutable object into DavExchangeSession$Message.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1151 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.dav.Field.distinguishedPropertySetMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 40 | Medium |
| davmail.exchange.dav.Field.fieldMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 89 | Medium |
| davmail.exchange.dav.Field.propertyTypeMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 72 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.ews.AutoDiscoverMethod at new davmail.exchange.ews.AutoDiscoverMethod(String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 42 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.CopyItemMethod(ItemId, FolderId) may expose internal representation by storing an externally mutable object into CopyItemMethod.itemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 35 | Medium |
| new davmail.exchange.ews.CopyItemMethod(ItemId, FolderId) may expose internal representation by storing an externally mutable object into CopyItemMethod.toFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 36 | Medium |
| new davmail.exchange.ews.CopyItemMethod(List, FolderId) may expose internal representation by storing an externally mutable object into CopyItemMethod.itemIds | MALICIOUS_CODE | EI_EXPOSE_REP2 | 47 | Medium |
| new davmail.exchange.ews.CopyItemMethod(List, FolderId) may expose internal representation by storing an externally mutable object into CopyItemMethod.toFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 48 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.CreateAttachmentMethod(ItemId, FileAttachment) may expose internal representation by storing an externally mutable object into CreateAttachmentMethod.attachment | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
| new davmail.exchange.ews.CreateAttachmentMethod(ItemId, FileAttachment) may expose internal representation by storing an externally mutable object into CreateAttachmentMethod.parentItemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 33 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.CreateFolderMethod(FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateFolderMethod.item | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
| new davmail.exchange.ews.CreateFolderMethod(FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateFolderMethod.parentFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 33 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.CreateItemMethod(MessageDisposition, FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateItemMethod.item | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
| new davmail.exchange.ews.CreateItemMethod(MessageDisposition, FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateItemMethod.savedItemFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
| new davmail.exchange.ews.CreateItemMethod(MessageDisposition, SendMeetingInvitations, FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateItemMethod.item | MALICIOUS_CODE | EI_EXPOSE_REP2 | 54 | Medium |
| new davmail.exchange.ews.CreateItemMethod(MessageDisposition, SendMeetingInvitations, FolderId, EWSMethod$Item) may expose internal representation by storing an externally mutable object into CreateItemMethod.savedItemFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 53 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.DeleteFolderMethod(FolderId) may expose internal representation by storing an externally mutable object into DeleteFolderMethod.folderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 32 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.DeleteItemMethod(ItemId, DeleteType, SendMeetingCancellations) may expose internal representation by storing an externally mutable object into DeleteItemMethod.itemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ews.EWSMethod.getResponseItems() may expose internal representation by returning EWSMethod.responseItems | MALICIOUS_CODE | EI_EXPOSE_REP | 856 | Medium |
| davmail.exchange.ews.EWSMethod.handleResponse(HttpResponse) may expose internal representation by storing an externally mutable object into EWSMethod.response | MALICIOUS_CODE | EI_EXPOSE_REP2 | 1235 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ews.EWSMethod$Item.getAttendees() may expose internal representation by returning EWSMethod$Item.attendees | MALICIOUS_CODE | EI_EXPOSE_REP | 751 | Medium |
| davmail.exchange.ews.EWSMethod$Item.getMembers() may expose internal representation by returning EWSMethod$Item.members | MALICIOUS_CODE | EI_EXPOSE_REP | 805 | Medium |
| davmail.exchange.ews.EWSMethod$Item.getOccurrences() may expose internal representation by returning EWSMethod$Item.occurrences | MALICIOUS_CODE | EI_EXPOSE_REP | 784 | Medium |
| davmail.exchange.ews.EWSMethod$Item.setFieldUpdates(List) may expose internal representation by storing an externally mutable object into EWSMethod$Item.fieldUpdates | MALICIOUS_CODE | EI_EXPOSE_REP2 | 677 | Medium |
| Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field attachments | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
| Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field attendees | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
| Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field fieldUpdates | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
| Class davmail.exchange.ews.EWSMethod$Item defines non-transient non-serializable instance field occurrences | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession at new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, O365Token, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 221 | Medium |
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession at new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 200 | Medium |
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession at new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, URI, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 210 | Medium |
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession at new davmail.exchange.ews.EwsExchangeSession(String, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 229 | Medium |
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession at new davmail.exchange.ews.EwsExchangeSession(URI, O365Token, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 225 | Medium |
| new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, O365Token, String) may expose internal representation by storing an externally mutable object into EwsExchangeSession.httpClient | MALICIOUS_CODE | EI_EXPOSE_REP2 | 214 | Medium |
| new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, O365Token, String) may expose internal representation by storing an externally mutable object into EwsExchangeSession.token | MALICIOUS_CODE | EI_EXPOSE_REP2 | 220 | Medium |
| new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, String) may expose internal representation by storing an externally mutable object into EwsExchangeSession.httpClient | MALICIOUS_CODE | EI_EXPOSE_REP2 | 195 | Medium |
| new davmail.exchange.ews.EwsExchangeSession(HttpClientAdapter, URI, String) may expose internal representation by storing an externally mutable object into EwsExchangeSession.httpClient | MALICIOUS_CODE | EI_EXPOSE_REP2 | 204 | Medium |
| davmail.exchange.ews.EwsExchangeSession.CALENDAR_ITEM_REQUEST_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2687 | Medium |
| davmail.exchange.ews.EwsExchangeSession.EVENT_REQUEST_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2672 | Medium |
| davmail.exchange.ews.EwsExchangeSession.FOLDER_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 1041 | Medium |
| davmail.exchange.ews.EwsExchangeSession.GALFIND_ATTRIBUTE_MAP is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3270 | Medium |
| davmail.exchange.ews.EwsExchangeSession.IGNORE_ATTRIBUTE_SET is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 3304 | Medium |
| davmail.exchange.ews.EwsExchangeSession.ITEM_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2661 | Medium |
| davmail.exchange.ews.EwsExchangeSession.MESSAGE_TYPES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 93 | Medium |
| davmail.exchange.ews.EwsExchangeSession.taskTovTodoStatusMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 71 | Medium |
| davmail.exchange.ews.EwsExchangeSession.vTodoToTaskStatusMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 70 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Redundant nullcheck of fieldURI, which is known to be non-null in davmail.exchange.ews.EwsExchangeSession$AttributeCondition.getFieldURI() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 808 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.ews.EwsExchangeSession$Contact at new davmail.exchange.ews.EwsExchangeSession$Contact(EwsExchangeSession, EWSMethod$Item) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1382 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Switch statement found in davmail.exchange.ews.EwsExchangeSession$Event.convertRruleToRecurrenceFieldUpdate(VObject, List) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 1848-1874 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.FieldOrder(FieldURI, FieldOrder$Order) may expose internal representation by storing an externally mutable object into FieldOrder.fieldURI | MALICIOUS_CODE | EI_EXPOSE_REP2 | 32 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.FieldUpdate(FieldURI, String) may expose internal representation by storing an externally mutable object into FieldUpdate.fieldURI | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.FindFolderMethod(FolderQueryTraversal, BaseShape, FolderId, Set, int, int) may expose internal representation by storing an externally mutable object into FindFolderMethod.additionalProperties | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
| new davmail.exchange.ews.FindFolderMethod(FolderQueryTraversal, BaseShape, FolderId, Set, int, int) may expose internal representation by storing an externally mutable object into FindFolderMethod.baseShape | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
| new davmail.exchange.ews.FindFolderMethod(FolderQueryTraversal, BaseShape, FolderId, Set, int, int) may expose internal representation by storing an externally mutable object into FindFolderMethod.parentFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 43 | Medium |
| new davmail.exchange.ews.FindFolderMethod(FolderQueryTraversal, BaseShape, FolderId, Set, int, int) may expose internal representation by storing an externally mutable object into FindFolderMethod.traversal | MALICIOUS_CODE | EI_EXPOSE_REP2 | 41 | Medium |
| new davmail.exchange.ews.FindFolderMethod(FolderQueryTraversal, BaseShape, FolderId, Set, SearchExpression, int, int) may expose internal representation by storing an externally mutable object into FindFolderMethod.searchExpression | MALICIOUS_CODE | EI_EXPOSE_REP2 | 63 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.FindItemMethod(FolderQueryTraversal, BaseShape, FolderId, int, int) may expose internal representation by storing an externally mutable object into FindItemMethod.baseShape | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
| new davmail.exchange.ews.FindItemMethod(FolderQueryTraversal, BaseShape, FolderId, int, int) may expose internal representation by storing an externally mutable object into FindItemMethod.parentFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
| new davmail.exchange.ews.FindItemMethod(FolderQueryTraversal, BaseShape, FolderId, int, int) may expose internal representation by storing an externally mutable object into FindItemMethod.traversal | MALICIOUS_CODE | EI_EXPOSE_REP2 | 36 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.GetFolderMethod(BaseShape, FolderId, Set) may expose internal representation by storing an externally mutable object into GetFolderMethod.additionalProperties | MALICIOUS_CODE | EI_EXPOSE_REP2 | 39 | Medium |
| new davmail.exchange.ews.GetFolderMethod(BaseShape, FolderId, Set) may expose internal representation by storing an externally mutable object into GetFolderMethod.baseShape | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
| new davmail.exchange.ews.GetFolderMethod(BaseShape, FolderId, Set) may expose internal representation by storing an externally mutable object into GetFolderMethod.folderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.GetItemMethod(BaseShape, ItemId, boolean) may expose internal representation by storing an externally mutable object into GetItemMethod.baseShape | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
| new davmail.exchange.ews.GetItemMethod(BaseShape, ItemId, boolean) may expose internal representation by storing an externally mutable object into GetItemMethod.itemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 35 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.MoveFolderMethod(FolderId, FolderId) may expose internal representation by storing an externally mutable object into MoveFolderMethod.folderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 33 | Medium |
| new davmail.exchange.ews.MoveFolderMethod(FolderId, FolderId) may expose internal representation by storing an externally mutable object into MoveFolderMethod.toFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.MoveItemMethod(ItemId, FolderId) may expose internal representation by storing an externally mutable object into MoveItemMethod.itemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 35 | Medium |
| new davmail.exchange.ews.MoveItemMethod(ItemId, FolderId) may expose internal representation by storing an externally mutable object into MoveItemMethod.toFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 36 | Medium |
| new davmail.exchange.ews.MoveItemMethod(List, FolderId) may expose internal representation by storing an externally mutable object into MoveItemMethod.itemIds | MALICIOUS_CODE | EI_EXPOSE_REP2 | 47 | Medium |
| new davmail.exchange.ews.MoveItemMethod(List, FolderId) may expose internal representation by storing an externally mutable object into MoveItemMethod.toFolderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 48 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.MultiValuedFieldUpdate(FieldURI) may expose internal representation by storing an externally mutable object into MultiValuedFieldUpdate.fieldURI | MALICIOUS_CODE | EI_EXPOSE_REP2 | 38 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.ews.RecurrenceFieldUpdate.setEndDate(Date) may expose internal representation by storing an externally mutable object into RecurrenceFieldUpdate.endDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 63 | Medium |
| davmail.exchange.ews.RecurrenceFieldUpdate.setStartDate(Date) may expose internal representation by storing an externally mutable object into RecurrenceFieldUpdate.startDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 59 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.TwoOperandExpression(TwoOperandExpression$Operator, FieldURI, String) may expose internal representation by storing an externally mutable object into TwoOperandExpression.fieldURI | MALICIOUS_CODE | EI_EXPOSE_REP2 | 45 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.UpdateFolderMethod(FolderId, List) may expose internal representation by storing an externally mutable object into UpdateFolderMethod.folderId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 35 | Medium |
| new davmail.exchange.ews.UpdateFolderMethod(FolderId, List) may expose internal representation by storing an externally mutable object into UpdateFolderMethod.updates | MALICIOUS_CODE | EI_EXPOSE_REP2 | 36 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.ews.UpdateItemMethod(MessageDisposition, ConflictResolution, SendMeetingInvitationsOrCancellations, ItemId, List) may expose internal representation by storing an externally mutable object into UpdateItemMethod.itemId | MALICIOUS_CODE | EI_EXPOSE_REP2 | 41 | Medium |
| new davmail.exchange.ews.UpdateItemMethod(MessageDisposition, ConflictResolution, SendMeetingInvitationsOrCancellations, ItemId, List) may expose internal representation by storing an externally mutable object into UpdateItemMethod.updates | MALICIOUS_CODE | EI_EXPOSE_REP2 | 42 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unchecked/unconfirmed cast from davmail.exchange.ExchangeSession$Folder to davmail.exchange.graph.GraphExchangeSession$Folder in davmail.exchange.graph.GraphExchangeSession.refreshFolder(ExchangeSession$Folder) | STYLE | BC_UNCONFIRMED_CAST | 3510 | Medium |
| Exception thrown in class davmail.exchange.graph.GraphExchangeSession at new davmail.exchange.graph.GraphExchangeSession(HttpClientAdapter, O365Token, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 2401 | Medium |
| new davmail.exchange.graph.GraphExchangeSession(HttpClientAdapter, O365Token, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession.httpClient | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2397 | Medium |
| new davmail.exchange.graph.GraphExchangeSession(HttpClientAdapter, O365Token, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession.token | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2398 | Medium |
| davmail.exchange.graph.GraphExchangeSession.CALENDAR_ITEM_REQUEST_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 4113 | Medium |
| davmail.exchange.graph.GraphExchangeSession.CONTACT_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2180 | Medium |
| davmail.exchange.graph.GraphExchangeSession.EVENT_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2263 | Medium |
| davmail.exchange.graph.GraphExchangeSession.EVENT_LIST_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2262 | Medium |
| davmail.exchange.graph.GraphExchangeSession.EVENT_REQUEST_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 4098 | Medium |
| davmail.exchange.graph.GraphExchangeSession.FOLDER_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2386 | Medium |
| davmail.exchange.graph.GraphExchangeSession.GALFIND_ATTRIBUTE_MAP is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 4848 | Medium |
| davmail.exchange.graph.GraphExchangeSession.IMAP_MESSAGE_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2141 | Medium |
| davmail.exchange.graph.GraphExchangeSession.IMAP_MESSAGE_DELTA_ATTRIBUTES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 2169 | Medium |
| davmail.exchange.graph.GraphExchangeSession.ITEM_PROPERTIES is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 4096 | Medium |
| davmail.exchange.graph.GraphExchangeSession.wellKnownFolderMap isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 2129 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.exchange.graph.GraphExchangeSession$Event at new davmail.exchange.graph.GraphExchangeSession$Event(GraphExchangeSession, String, String, String, String, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 257 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$Event(GraphExchangeSession, GraphExchangeSession$FolderId, byte[]) may expose internal representation by storing an externally mutable object into GraphExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 260 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$Event(GraphExchangeSession, String, GraphExchangeSession$FolderId, GraphObject) may expose internal representation by storing an externally mutable object into GraphExchangeSession$Event.graphObject | MALICIOUS_CODE | EI_EXPOSE_REP2 | 250 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$Event(GraphExchangeSession, String, GraphExchangeSession$FolderId, GraphObject) may expose internal representation by storing an externally mutable object into GraphExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 224 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$Event(GraphExchangeSession, String, String, String, String, String, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession$Event.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 255 | Medium |
| Exception is caught when Exception is not thrown in davmail.exchange.graph.GraphExchangeSession$Event.getEventContent() | STYLE | REC_CATCH_EXCEPTION | 339 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.graph.GraphExchangeSession$FolderId(GraphExchangeSession) may expose internal representation by storing an externally mutable object into GraphExchangeSession$FolderId.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2326 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$FolderId(GraphExchangeSession, String, GraphExchangeSession$WellKnownFolderName) may expose internal representation by storing an externally mutable object into GraphExchangeSession$FolderId.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2340 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$FolderId(GraphExchangeSession, String, GraphExchangeSession$WellKnownFolderName, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession$FolderId.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2345 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$FolderId(GraphExchangeSession, String, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession$FolderId.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2329 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$FolderId(GraphExchangeSession, String, String, String) may expose internal representation by storing an externally mutable object into GraphExchangeSession$FolderId.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 2334 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.graph.GraphExchangeSession$GraphIterator(GraphExchangeSession, JSONObject) may expose internal representation by storing an externally mutable object into GraphExchangeSession$GraphIterator.jsonObject | MALICIOUS_CODE | EI_EXPOSE_REP2 | 5086 | Medium |
| new davmail.exchange.graph.GraphExchangeSession$GraphIterator(GraphExchangeSession, JSONObject) may expose internal representation by storing an externally mutable object into GraphExchangeSession$GraphIterator.this$0 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 5085 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.graph.GraphExchangeSession$MessageList doesn't override java.util.ArrayList.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 1 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Switch statement found in davmail.exchange.graph.GraphField.buildGraphId() where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 426-446 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.exchange.graph.GraphObject(JSONObject) may expose internal representation by storing an externally mutable object into GraphObject.jsonObject | MALICIOUS_CODE | EI_EXPOSE_REP2 | 55 | Medium |
| davmail.exchange.graph.GraphObject.importanceToPriorityMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 422 | Medium |
| davmail.exchange.graph.GraphObject.priorityToImportanceMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 430 | Medium |
| davmail.exchange.graph.GraphObject.taskTovTodoStatusMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 393 | Medium |
| davmail.exchange.graph.GraphObject.vTodoToTaskStatusMap is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 392 | Medium |
| Redundant nullcheck of key, which is known to be non-null in davmail.exchange.graph.GraphObject.getBoolean(GraphField) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 292 | Medium |
| Redundant nullcheck of key, which is known to be non-null in davmail.exchange.graph.GraphObject.optBoolean(GraphField) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 300 | Medium |
| Redundant nullcheck of key, which is known to be non-null in davmail.exchange.graph.GraphObject.optString(GraphField) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 65 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.exchange.graph.GraphRequestBuilder.setJsonBody(JSONObject) may expose internal representation by storing an externally mutable object into GraphRequestBuilder.jsonBody | MALICIOUS_CODE | EI_EXPOSE_REP2 | 122 | Medium |
| davmail.exchange.graph.GraphRequestBuilder.setMimeContent(byte[]) may expose internal representation by storing an externally mutable object into GraphRequestBuilder.mimeContent | MALICIOUS_CODE | EI_EXPOSE_REP2 | 251 | Medium |
| davmail.exchange.graph.GraphRequestBuilder.setSelectFields(Set) may expose internal representation by storing an externally mutable object into GraphRequestBuilder.selectFields | MALICIOUS_CODE | EI_EXPOSE_REP2 | 160 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.DavGatewaySSLSocketFactory.createSSLContext() might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 115 | Medium |
| Found reliance on default encoding in davmail.http.DavGatewaySSLSocketFactory.lambda$getProtectionParameter$0(Callback[]): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 151 | High |
| Dereference of the result of readLine() without nullcheck in davmail.http.DavGatewaySSLSocketFactory.lambda$getProtectionParameter$0(Callback[]) | STYLE | NP_DEREFERENCE_OF_READLINE_VALUE | 152 | Medium |
| Exception is caught when Exception is not thrown in davmail.http.DavGatewaySSLSocketFactory.createSSLContext() | STYLE | REC_CATCH_EXCEPTION | 115 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.http.DavGatewayX509TrustManager at new davmail.http.DavGatewayX509TrustManager() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 52 | Medium |
| Found reliance on default encoding in davmail.http.DavGatewayX509TrustManager.isCertificateTrusted(X509Certificate): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 107 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Static synchronized method davmail.http.DavMailIdleConnectionEvictor.shutdown() uses intrinsic lock of class davmail.http.DavMailIdleConnectionEvictor for synchronization, exposing the class to untrusted code. | SECURITY | USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION | 87-96 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Private method davmail.http.DavMailNTLMEngineImpl.encodeLong(int) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 713-715 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getClientChallenge() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.clientChallenge | MALICIOUS_CODE | EI_EXPOSE_REP | 317 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getClientChallenge2() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.clientChallenge2 | MALICIOUS_CODE | EI_EXPOSE_REP | 325 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLM2SessionResponse() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lm2SessionResponse | MALICIOUS_CODE | EI_EXPOSE_REP | 448 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLMHash() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lmHash | MALICIOUS_CODE | EI_EXPOSE_REP | 342 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLMResponse() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lmResponse | MALICIOUS_CODE | EI_EXPOSE_REP | 351 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLMUserSessionKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lmUserSessionKey | MALICIOUS_CODE | EI_EXPOSE_REP | 459 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLMv2Hash() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lmv2Hash | MALICIOUS_CODE | EI_EXPOSE_REP | 377 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLMv2Response() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lmv2Response | MALICIOUS_CODE | EI_EXPOSE_REP | 428 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getLanManagerSessionKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.lanManagerSessionKey | MALICIOUS_CODE | EI_EXPOSE_REP | 523 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLM2SessionResponse() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlm2SessionResponse | MALICIOUS_CODE | EI_EXPOSE_REP | 437 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLM2SessionResponseUserSessionKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlm2SessionResponseUserSessionKey | MALICIOUS_CODE | EI_EXPOSE_REP | 495 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMHash() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmHash | MALICIOUS_CODE | EI_EXPOSE_REP | 359 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMResponse() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmResponse | MALICIOUS_CODE | EI_EXPOSE_REP | 368 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMUserSessionKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmUserSessionKey | MALICIOUS_CODE | EI_EXPOSE_REP | 470 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMv2Blob() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmv2Blob | MALICIOUS_CODE | EI_EXPOSE_REP | 410 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMv2Hash() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmv2Hash | MALICIOUS_CODE | EI_EXPOSE_REP | 386 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMv2Response() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmv2Response | MALICIOUS_CODE | EI_EXPOSE_REP | 419 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getNTLMv2UserSessionKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.ntlmv2UserSessionKey | MALICIOUS_CODE | EI_EXPOSE_REP | 482 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getSecondaryKey() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.secondaryKey | MALICIOUS_CODE | EI_EXPOSE_REP | 333 | Medium |
| davmail.http.DavMailNTLMEngineImpl$CipherGen.getTimestamp() may expose internal representation by returning DavMailNTLMEngineImpl$CipherGen.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP | 402 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.challenge | MALICIOUS_CODE | EI_EXPOSE_REP2 | 294 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.clientChallenge | MALICIOUS_CODE | EI_EXPOSE_REP2 | 296 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.clientChallenge2 | MALICIOUS_CODE | EI_EXPOSE_REP2 | 297 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.secondaryKey | MALICIOUS_CODE | EI_EXPOSE_REP2 | 298 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.targetInformation | MALICIOUS_CODE | EI_EXPOSE_REP2 | 295 | Medium |
| new davmail.http.DavMailNTLMEngineImpl$CipherGen(long, String, String, String, byte[], String, byte[], byte[], byte[], byte[], byte[]) may expose internal representation by storing an externally mutable object into DavMailNTLMEngineImpl$CipherGen.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP2 | 299 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$NTLMMessage at new davmail.http.DavMailNTLMEngineImpl$NTLMMessage(String, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 856 | Medium |
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$NTLMMessage at new davmail.http.DavMailNTLMEngineImpl$NTLMMessage(byte[], int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 864 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$Type2Message at new davmail.http.DavMailNTLMEngineImpl$Type2Message(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1140 | Medium |
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$Type2Message at new davmail.http.DavMailNTLMEngineImpl$Type2Message(byte[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1162 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$Type3Message at new davmail.http.DavMailNTLMEngineImpl$Type3Message(long, String, String, String, String, byte[], int, String, byte[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1256 | Medium |
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$Type3Message at new davmail.http.DavMailNTLMEngineImpl$Type3Message(long, String, String, String, String, byte[], int, String, byte[], Certificate, byte[], byte[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1302 | Medium |
| Exception thrown in class davmail.http.DavMailNTLMEngineImpl$Type3Message at new davmail.http.DavMailNTLMEngineImpl$Type3Message(String, String, String, String, byte[], int, String, byte[], Certificate, byte[], byte[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 1272 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.DavMailNTLMScheme.authenticate(Credentials, HttpRequest, HttpContext) may expose internal representation by storing an externally mutable object into DavMailNTLMScheme.httpContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 117 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in davmail.http.DavMailX509KeyManager.chooseClientAlias(String[], String[]): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 168 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Redundant nullcheck of davmail.http.HttpClientAdapter.provider, which is known to be non-null in new davmail.http.HttpClientAdapter(URI, String, String, boolean) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 246 | Medium |
| Unread field: davmail.http.HttpClientAdapter.userEmail | PERFORMANCE | URF_UNREAD_FIELD | 337 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in davmail.http.KerberosHelper$KerberosCallbackHandler.handle(Callback[]): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 73 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.KerberosLoginConfiguration.getAppConfigurationEntry(String) may expose internal representation by returning KerberosLoginConfiguration.CLIENT_LOGIN_MODULE | MALICIOUS_CODE | EI_EXPOSE_REP | 82 | Medium |
| davmail.http.KerberosLoginConfiguration.getAppConfigurationEntry(String) may expose internal representation by returning KerberosLoginConfiguration.SERVER_LOGIN_MODULE | MALICIOUS_CODE | EI_EXPOSE_REP | 84 | Medium |
| davmail.http.KerberosLoginConfiguration.CLIENT_LOGIN_MODULE should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 60 | Medium |
| davmail.http.KerberosLoginConfiguration.SERVER_LOGIN_MODULE should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 73 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Dead store to length in davmail.http.NTLMMessageDecoder.getValues(byte[], int, String) | STYLE | DLS_DEAD_LOCAL_STORE | 180 | Medium |
| Dead store to maxLength in davmail.http.NTLMMessageDecoder.getValues(byte[], int, String) | STYLE | DLS_DEAD_LOCAL_STORE | 181 | Medium |
| Found reliance on default encoding in davmail.http.NTLMMessageDecoder.decodeMessage(): new String(byte[], int, int) | I18N | DM_DEFAULT_ENCODING | 79 | High |
| Found reliance on default encoding in davmail.http.NTLMMessageDecoder.decodeMessage(): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 78 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.request.ExchangeDavRequest.handleResponse(HttpResponse) may expose internal representation by returning ExchangeDavRequest.responses | MALICIOUS_CODE | EI_EXPOSE_REP | 149 | Medium |
| davmail.http.request.ExchangeDavRequest.handleResponse(HttpResponse) may expose internal representation by storing an externally mutable object into ExchangeDavRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP2 | 111 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.http.request.ExchangePropFindRequest(String, DavPropertyNameSet, int) may expose internal representation by storing an externally mutable object into ExchangePropFindRequest.propertyNameSet | MALICIOUS_CODE | EI_EXPOSE_REP2 | 50 | Medium |
| Return value of org.apache.jackrabbit.webdav.property.DavPropertyName.getName() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 66 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.http.request.ExchangePropPatchRequest(String, Set) may expose internal representation by storing an externally mutable object into ExchangePropPatchRequest.propertyValues | MALICIOUS_CODE | EI_EXPOSE_REP2 | 57 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.request.GetRequest.getHttpResponse() may expose internal representation by returning GetRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP | 108 | Medium |
| davmail.http.request.GetRequest.handleResponse(HttpResponse) may expose internal representation by storing an externally mutable object into GetRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP2 | 61 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.request.PostRequest.getHttpResponse() may expose internal representation by returning PostRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP | 124 | Medium |
| davmail.http.request.PostRequest.getParameters() may expose internal representation by returning PostRequest.parameters | MALICIOUS_CODE | EI_EXPOSE_REP | 84 | Medium |
| davmail.http.request.PostRequest.handleResponse(HttpResponse) may expose internal representation by storing an externally mutable object into PostRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP2 | 65 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.http.request.RestRequest.handleResponse(HttpResponse) may expose internal representation by storing an externally mutable object into RestRequest.response | MALICIOUS_CODE | EI_EXPOSE_REP2 | 115 | Medium |
| davmail.http.request.RestRequest.setJsonBody(JSONObject) may expose internal representation by storing an externally mutable object into RestRequest.jsonBody | MALICIOUS_CODE | EI_EXPOSE_REP2 | 106 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.imap.ImapConnection.handleRefresh(TreeMap, TreeMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 834 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new davmail.ldap.BerDecoder(byte[], int, int) may expose internal representation by storing an externally mutable object into BerDecoder.buf | MALICIOUS_CODE | EI_EXPOSE_REP2 | 46 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.ldap.BerEncoder.getBuf() may expose internal representation by returning Ber.buf | MALICIOUS_CODE | EI_EXPOSE_REP | 102 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in davmail.ldap.HexDumpEncoder.encodeBuffer(byte[]): java.io.ByteArrayOutputStream.toString() | I18N | DM_DEFAULT_ENCODING | 307 | High |
| Found reliance on default encoding in davmail.ldap.HexDumpEncoder.encodeBufferPrefix(OutputStream): new java.io.PrintStream(OutputStream) | I18N | DM_DEFAULT_ENCODING | 85 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Shared primitive variable "ldapVersion" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 541 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Shared primitive variable "abandon" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 1502 | Medium |
| Switch statement found in davmail.ldap.LdapConnection$SearchRunnable.sendPersons(int, String, Map, Set) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 1737-1745 | Medium |
| The lock object davmail.ldap.LdapConnection.searchThreadMap used in method davmail.ldap.LdapConnection$SearchRunnable.run() is visible outside the class, thus exposing class davmail.ldap.LdapConnection$SearchRunnable. | SECURITY | USO_UNSAFE_OBJECT_SYNCHRONIZATION | 1507-1661 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Naked notify in davmail.service.DavService.serviceRequest(int) | MT_CORRECTNESS | NN_NAKED_NOTIFY | 48 | Medium |
| Unconditional wait in davmail.service.DavService.serviceMain(String[]) | MT_CORRECTNESS | UW_UNCOND_WAIT | 76 | Medium |
| Wait not in loop in davmail.service.DavService.serviceMain(String[]) | MT_CORRECTNESS | WA_NOT_IN_LOOP | 76 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.AboutFrame at new davmail.ui.AboutFrame() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 110 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.AcceptCertificateDialog at new davmail.ui.AcceptCertificateDialog(X509Certificate) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 67 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.CredentialPromptDialog at new davmail.ui.CredentialPromptDialog(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 46 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.NotificationDialog at new davmail.ui.NotificationDialog(String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 67 | Medium |
| Exception thrown in class davmail.ui.NotificationDialog at new davmail.ui.NotificationDialog(String, String, String, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 140 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.NumberMatchingFrame at new davmail.ui.NumberMatchingFrame(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 39 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.PasswordPromptDialog at new davmail.ui.PasswordPromptDialog(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 54 | Medium |
| Exception thrown in class davmail.ui.PasswordPromptDialog at new davmail.ui.PasswordPromptDialog(String, Image) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 64 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.SelectCertificateDialog at new davmail.ui.SelectCertificateDialog(String[], String[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 50 | Medium |
| new davmail.ui.SelectCertificateDialog(String[], String[]) may expose internal representation by storing an externally mutable object into SelectCertificateDialog.aliases | MALICIOUS_CODE | EI_EXPOSE_REP2 | 51 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.ui.tray.AwtGatewayTray.getFrameIcons() may expose internal representation by returning AwtGatewayTray.frameIcons | MALICIOUS_CODE | EI_EXPOSE_REP | 69 | Medium |
| davmail.ui.tray.AwtGatewayTray.activeImage should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
| davmail.ui.tray.AwtGatewayTray.frameIcons should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
| davmail.ui.tray.AwtGatewayTray.image should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
| davmail.ui.tray.AwtGatewayTray.inactiveImage should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| davmail.ui.tray.FrameGatewayTray.getFrameIcons() may expose internal representation by returning FrameGatewayTray.frameIcons | MALICIOUS_CODE | EI_EXPOSE_REP | 59 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class davmail.ui.tray.OSXHandler at new davmail.ui.tray.OSXHandler(OSXTrayInterface) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 33 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Shared primitive variable "isActive" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 194 | Medium |
| Shared primitive variable "isActive" in one thread may not yield the value of the most recent write from another thread | MT_CORRECTNESS | AT_STALE_THREAD_WRITE_OF_PRIMITIVE | 171 | Medium |
| davmail.ui.tray.SwtGatewayTray.getFrameIcons() may expose internal representation by returning SwtGatewayTray.frameIcons | MALICIOUS_CODE | EI_EXPOSE_REP | 164 | Medium |