Apache Thrift, Apache Thrift: The C++ and D clients fall back to the certificate Common Name when subjectAltName entries are present but do not match
Apache Software Foundation Apache Thrift
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Thrift |
| No fix yet |
| Apache Software Foundation Apache Thrift |
| No fix yet |
Original description
Improper Validation of Certificate with Host Mismatch in the C++ and D libraries of Apache Thrift.
Both libraries install a default access manager for client sockets — TSSLSocketFactory does so in C++, and the accessManager property does so in D — which compares the peer certificate against the host
name that was connected to. That comparison walks the subjectAltName dNSName entries first and consults the certificate Common Name afterwards. A name that does not match yields a "skip" result rather than