Search Issue Tracker

By Design



Found in





Issue ID




[2018.4] has a sHostnameVerifier which doesn't have server identity check implemented


- has a sHostnameVerifier variable which doesn't have server identity check implemented.

Actual result: the verify boolean is just set to True.
Expected result: The verification happens and verify is set either to True or False.

Reproducible with: 2018.3, 2018.4, 2019.1.
Not reproducible with: 2019.2, 2019.3, 2020.1.

- The issue is not reproducible with any repro steps, more information in the edits.
- The is implemented in 2018.3 and removed since 2019.2.

  1. Response avatar

    Resolution Note:

    This issue is not so straight forward.
    The mentioned sHostnameVerifier is only used when UnityWebRequest has a CertificateHandler attached to it. The point of CertificateHandler is to establish trust with the server, when it's attached, it is completely up to implementer of it to determine the trust.
    Based on this it currently looks like a false positive from code analysis.

    Unless it's proven to be impossible to implement hostname verification in a CertificateHandler.

    Additional note: I've tried on a couple of different phones to access which I believe is a showcase of such verification. The verifier was not called on either of them.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.