Coop, an open-source moderation tool, has fixed a flaw that left some encrypted PostgreSQL database connections unable to verify the server they were talking to. A person able to intercept traffic between Coop and the database could have presented a fraudulent certificate and read or changed the traffic, according to the project's security advisory. [1]
The issue affects versions 1.0.0 through 1.2.3 when the relevant PostgreSQL TLS settings are enabled. Version 1.3.0 verifies the certificate and host name by default when TLS is enabled, the advisory says. The person who reported the issue, Emelia, said on Bluesky that it had been fixed and disclosed. [1][2]
Encryption without server verification
TLS encrypts a connection, but a client also needs to verify the server's certificate to guard against an active intermediary posing as the database. In the affected versions, Coop's settings disabled that verification for its server and worker connections and for database migrations, the project said. An attacker would need a position on the network path to exploit the weakness. [1]
The exposed traffic could include database credentials and moderation information. The advisory points to a managed PostgreSQL service reached over the public internet as an example of a connection that could be at risk; it recommends keeping traffic on a trusted private network until upgrading. It says older versions have no setting to enable certificate verification. [1]
What changed in version 1.3.0
The new version checks the certificate chain and host name by default for these connections when TLS is turned on. The project's tagged code also provides modes that check only the certificate authority or skip verification; choosing a weaker mode changes the protection. The update does not itself imply that TLS is enabled in every installation. [1][3][4]
The advisory warns that installations using a provider's private certificate authority can lose database connectivity after upgrading unless the appropriate CA bundle is configured for both the application and migrations. Operators should consult the project's instructions for their own deployment. [1]
What remains unknown
The advisory assigns the issue a 7.4 severity score and credits the reporter. It describes a demonstration of the weakness but does not say it has been exploited against a real deployment. The risk depends on the connection and an attacker's ability to intercept it; the advisory does not establish that every Coop installation was exposed. [1]