Skip to main content
Menu
Advisories

PYTHON-6189 PyMongo accepts a stapled OCSP Good response for a different server certificate

GHSA-67M8-HVJF-JQPCPublished Updated GitHub

Description

An improper certificate revocation check in the MongoDB Python Driver's optional TLS revocation-checking support allows an unauthenticated party that operates the network endpoint a client connects to, and that holds a revoked but still-dated certificate trusted by that client, to have the connection accepted. This may result in unintended disclosure of application credentials and other session data, and in the client treating responses from that endpoint as genuine.

Details

Connect over TLS to a server presenting a revoked, must-staple certificate stapled with a Good response issued for a different certificate from the same CA (pymongo[ocsp] extra installed).

Proof of concept

Connect over TLS to a server presenting a revoked, must-staple certificate stapled with a Good response issued for a different certificate from the same CA (pymongo[ocsp] extra installed).

Impact

Improper Check for Certificate Revocation

Affected versions

References

GitHub · mongodb/mongo-python-driver