pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sehrope Sarkuni <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 14b62a: Merge pull request from GHSA-37xm-4h3m-5w3v
Date: Mon, 01 Jun 2020 05:54:49 -0700
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/97e2e8-14b62a@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 14b62aca4764d496813f55a43d050b017e01eb65
      https://github.com/pgjdbc/pgjdbc/commit/14b62aca4764d496813f55a43d050b017e01eb65
  Author: Sehrope Sarkuni <sehrope@jackdb.com>
  Date:   2020-06-01 (Mon, 01 Jun 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/ds/common/BaseDataSource.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:
  -----------
  Merge pull request from GHSA-37xm-4h3m-5w3v

* refactor: Clean up whitespace in existing PgSQLXMLTest

* 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.

* fix: Add missing getter and setter for XML_FACTORY_FACTORY to BasicDataSource







Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/97e2e8-14b62a@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2F97e2e8-14b62a@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/97e2e8-14b62a@github.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] 14b62a: Merge pull request from GHSA-37xm-4h3m-5w3v
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/97e2e8-14b62a@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/97e2e8-14b62a@github.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox