[ 
https://issues.apache.org/jira/browse/ARTEMIS-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram resolved ARTEMIS-3070.
-------------------------------------
    Resolution: Not A Problem

> Customized TrustManager bypasses certificate verification
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-3070
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3070
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Ya Xiao
>            Priority: Major
>
> In file 
> [activemq-artemis/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/netty/NettyTransportSupport.java|https://github.com/apache/activemq-artemis/blob/52263663c48082227916cc3477f8892d9f10134b/tests/artemis-test-support/src/main/java/org/apache/activemq/transport/netty/NettyTransportSupport.java],
>  the customized TrustManger allows all certificates to pass the verification 
> (at Line 288).
> *Security Impact*:
> The checkClientTrusted and checkServerTrusted methods are expected to 
> implement the certificate validation logic. Bypassing it could allow 
> man-in-the-middle attacks.
> *Useful Resources*:
> [https://cwe.mitre.org/data/definitions/295.html]
> *Solution we suggest:*
> Do not customize the TrustManger or specify the certificate validation logic 
> instead of allowing all certificates. 
> *Please share with us your opinions/comments if there is any:*
> Is the bug report helpful?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to