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 1jdxmR-00033u-LV for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 May 2020 15:15:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jdxmQ-00017T-IF for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 May 2020 15:15:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdxmQ-00017M-BA for pgsql-jdbc@lists.postgresql.org; Wed, 27 May 2020 15:15:42 +0000 Received: from out-14.smtp.github.com ([192.30.254.197]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdxmN-0000mc-N3 for pgsql-jdbc@lists.postgresql.org; Wed, 27 May 2020 15:15:41 +0000 Received: from github-lowworker-56fcc46.va3-iad.github.net (github-lowworker-56fcc46.va3-iad.github.net [10.48.102.32]) by smtp.github.com (Postfix) with ESMTP id 60B451213D5 for ; Wed, 27 May 2020 08:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1590592538; bh=/7+DMS0JoxUW6uk+S9eIKOKdgHlc9/6sXu69e/jzkcM=; h=Date:From:To:Subject:From; b=su4zjMAjkE6K64geV7JdEd8OBbxeOFmRu3Sv4gySgL3EUntR+yehqmv54ZQgc0V4t /eMGrwqE3IIwpQtb5aVjDYker4EkNsjh4rOkfj9a7XZMCU946E3w+rWuQrB8pSWWdj uE5sdOaZ01X7Y62hfYU8lsAEAokvKeHRadHltapo= Date: Wed, 27 May 2020 08:15:38 -0700 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 7ef93f: refactor: Clean up whitespace in existing PgSQLXML... 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: Precedence: bulk Branch: refs/tags/v42.2.13-rc1 Home: https://github.com/pgjdbc/pgjdbc Commit: 7ef93fb52ddd4614ceb7af89d86af28cb0f16b72 https://github.com/pgjdbc/pgjdbc/commit/7ef93fb52ddd4614ceb7af89d86af28cb0f16b72 Author: Sehrope Sarkuni Date: 2020-05-23 (Sat, 23 May 2020) Changed paths: M pgjdbc/src/test/java/org/postgresql/jdbc/PgSQLXMLTest.java Log Message: ----------- refactor: Clean up whitespace in existing PgSQLXMLTest Commit: 40af8d29862edfe5dffa0cf146dc211f4cc2b535 https://github.com/pgjdbc/pgjdbc/commit/40af8d29862edfe5dffa0cf146dc211f4cc2b535 Author: Sehrope Sarkuni Date: 2020-05-23 (Sat, 23 May 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/PGProperty.java M pgjdbc/src/main/java/org/postgresql/core/BaseConnection.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgSQLXML.java A pgjdbc/src/main/java/org/postgresql/xml/DefaultPGXmlFactoryFactory.java A pgjdbc/src/main/java/org/postgresql/xml/EmptyStringEntityResolver.java A pgjdbc/src/main/java/org/postgresql/xml/LegacyInsecurePGXmlFactoryFactory.java A pgjdbc/src/main/java/org/postgresql/xml/NullErrorHandler.java A pgjdbc/src/main/java/org/postgresql/xml/PGXmlFactoryFactory.java M pgjdbc/src/test/java/org/postgresql/jdbc/PgSQLXMLTest.java Log Message: ----------- fix: Fix XXE vulnerability in PgSQLXML by disabling external access and doctypes Fixes XXE vulnerability by defaulting to disabling external access and doc types. The legacy insecure behavior can be restored via the new connection property xmlFactoryFactory with a value of LEGACY_INSECURE. Alternatively, a custom class name can be specified that implements org.postgresql.xml.PGXmlFactoryFactory and takes a no argument constructor. Commit: c6b3cd5468c93068c5b528773ca990b9f0b29a1a https://github.com/pgjdbc/pgjdbc/commit/c6b3cd5468c93068c5b528773ca990b9f0b29a1a Author: Dave Cramer Date: 2020-05-27 (Wed, 27 May 2020) Changed paths: M gradle.properties Log Message: ----------- release 42.2.13 Compare: https://github.com/pgjdbc/pgjdbc/compare/7ef93fb52ddd%5E...c6b3cd5468c9