The DefaultHostnameVerifier parses the subject DN by tokenizing on the comma.
This could allow specially crafted certificate DNs to inject a common name.
For instance:
/CN=a.foo.com/O=CN=b.embed.com, foo/
Would parse as multiple CNs even though the second CN is embed in the O
attribute.
The DefaultHostnameVerifier is used for LDAPS connection when a custom socket
factory is not provided.
Original issue reported on code.google.com by dfis...@gmail.com on 3 Sep 2014 at 5:52
Original issue reported on code.google.com by
dfis...@gmail.com
on 3 Sep 2014 at 5:52