Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEsI9-0005Ku-M5 for pgsql-jdbc@arkaria.postgresql.org; Tue, 01 Feb 2022 12:29:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nEsHd-0001zB-5k for pgsql-jdbc@arkaria.postgresql.org; Tue, 01 Feb 2022 12:29:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEsFx-0000gd-4a for pgsql-jdbc@lists.postgresql.org; Tue, 01 Feb 2022 12:27:33 +0000 Received: from out-22.smtp.github.com ([192.30.252.205] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEsFt-0008M4-Gr for pgsql-jdbc@lists.postgresql.org; Tue, 01 Feb 2022 12:27:32 +0000 Received: from github.com (hubbernetes-node-d21708c.ac4-iad.github.net [10.52.11.55]) by smtp.github.com (Postfix) with ESMTPA id F2383562892 for ; Tue, 1 Feb 2022 04:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1643718446; bh=5PPN2x9zMdaS847gdfrlAg7hYByf1qnP8NYivU0t4Hg=; h=Date:From:To:Subject:From; b=DCuwNX4J6uUXAgfZQ9Bl9M7iLKz97nBN6geIpkVRzjmIGEOR4W9fqXLhITljmicYM J8jB/vp0wMrmsKRYKAhsg//y7+hP/+zRMK0ZfWki7jAxmvHnTca/5NwP1/kGfdZrjY 2pKJL5I7SGhA302NHpFwepCZ16QDbbT0SjJMNNs0= Date: Tue, 01 Feb 2022 04:27:26 -0800 From: Vladimir Sitnikov To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 8a363a: Merge pull request from GHSA-v7wg-cpwc-24m4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/release/42.2 Home: https://github.com/pgjdbc/pgjdbc Commit: 8a363a7c0989ef8a8f45bb055b4003f758ceabd5 https://github.com/pgjdbc/pgjdbc/commit/8a363a7c0989ef8a8f45bb055b4003f758ceabd5 Author: Vladimir Sitnikov Date: 2022-02-01 (Tue, 01 Feb 2022) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/SocketFactoryFactory.java M pgjdbc/src/main/java/org/postgresql/ssl/LibPQFactory.java M pgjdbc/src/main/java/org/postgresql/ssl/MakeSSL.java M pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java A pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java Log Message: ----------- Merge pull request from GHSA-v7wg-cpwc-24m4 * test: Add some SSL helpers to TestUtil * security: verify plugin classes adhere to the expected interface before instantiating the class This ensures arbitrary classes can't be passed instead of SocketFactory, SSLSocketFactory, CallbackHandler, HostnameVerifier Co-authored-by: Sehrope Sarkuni