Skip to content

Customized HostnameVerifier bypasses the hostname verification #4590

@GraceXiaoYa

Description

@GraceXiaoYa
ISSUE TYPE
  • bug report
SUMMARY

We found a security vulnerability. In file cloudstack/plugins/network-elements/palo-alto/src/main/java/com/cloud/network/utils/HttpClientWrapper.java, the customized HostnameVerfier allows all hostname to pass the verification (at Line 76).

Security Impact:

Hostname Verification is required to verify the identity of the other party. Bypassing it could allow man-in-the-middle attacks.

Useful Resources:

https://cwe.mitre.org/data/definitions/297.html

Solution we suggest:

Do not customize the HostnameVerifier or specify the verification logic instead of allowing all hostnames.

Please share with us your opinions/comments if there is any:

Is the bug report helpful?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions