1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00
Commit Graph

3634 Commits

Author SHA1 Message Date
Tom Lane
9d4269f087 Stamp release 7.3.21.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:42:44 +00:00
Tom Lane
d66dcb144a Update release notes for security releases.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:36:29 +00:00
Tom Lane
218cf59b60 Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX,
and CLUSTER) execute as the table owner rather than the calling user, using
the same privilege-switching mechanism already used for SECURITY DEFINER
functions.  The purpose of this change is to ensure that user-defined
functions used in index definitions cannot acquire the privileges of a
superuser account that is performing routine maintenance.  While a function
used in an index is supposed to be IMMUTABLE and thus not able to do anything
very interesting, there are several easy ways around that restriction; and
even if we could plug them all, there would remain a risk of reading sensitive
information and broadcasting it through a covert channel such as CPU usage.

To prevent bypassing this security measure, execution of SET SESSION
AUTHORIZATION and SET ROLE is now forbidden within a SECURITY DEFINER context.

Thanks to Itagaki Takahiro for reporting this vulnerability.

Security: CVE-2007-6600
2008-01-03 21:25:58 +00:00
Tatsuo Ishii
a6b6e71fa6 Fix "Page Layout" table. The second row should be ItemIdData, not
ItemPointerData.
2007-11-23 00:42:56 +00:00
Tom Lane
1aea75f047 Update release notes for last-minute fix. 2007-09-16 03:04:09 +00:00
Tom Lane
8ea2d503b6 Fix markup that doesn't work in back branches. 2007-09-14 15:57:27 +00:00
Tom Lane
dc3fa6afb0 Minor editorialization on release notes. 2007-09-14 15:51:59 +00:00
Bruce Momjian
5373878775 Stamp releases 8.2.5, 8.1.10, 8.0.14, 7.4.18, 7.3.20.
Update FAQs for 8.2.5.
2007-09-11 17:36:33 +00:00
Bruce Momjian
4147492693 Stamp 2007-09-11 17:19:07 +00:00
Neil Conway
a8ac5f7626 Fix newly-introduced documentation typo. 2007-04-23 16:53:15 +00:00
Tom Lane
653f0f0b53 Fix markup.
Security: CVE-2007-2138
2007-04-20 03:28:17 +00:00
Tom Lane
a174b6fb6c Fix markup.
Security: CVE-2007-2138
2007-04-20 03:10:57 +00:00
Tom Lane
a796aac46f Support explicit placement of the temporary-table schema within search_path.
This is needed to allow a security-definer function to set a truly secure
value of search_path.  Without it, a malicious user can use temporary objects
to execute code with the privileges of the security-definer function.  Even
pushing the temp schema to the back of the search path is not quite good
enough, because a function or operator at the back of the path might still
capture control from one nearer the front due to having a more exact datatype
match.  Hence, disable searching the temp schema altogether for functions and
operators.

Security: CVE-2007-2138
2007-04-20 02:38:59 +00:00
Bruce Momjian
f085ee088e Release wording updates for releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 13:01:44 +00:00
Bruce Momjian
def3f81fa1 Update FAQ to mention most recent release for releases
8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19.
2007-04-19 04:16:09 +00:00
Bruce Momjian
eaeacaf374 Update FAQ to mention most recent release for releases
8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19.
2007-04-19 04:04:14 +00:00
Bruce Momjian
af6b2e30a4 Stamp releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 03:06:28 +00:00
Bruce Momjian
28ecd60233 Release note updates for 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 02:46:29 +00:00
Tom Lane
af8a424324 Stamp release 7.3.18.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:16:01 +00:00
Tom Lane
c07313161f Update release notes for security-related releases in all active branches.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:11:14 +00:00
Bruce Momjian
4c884c3ceb Fix markup because older releases couldn't like to refernce pages. 2007-01-06 04:15:43 +00:00
Bruce Momjian
43a9728290 Fix markup because lc_numeric didn't have an SGML tag in this release. 2007-01-06 03:14:18 +00:00
Tom Lane
3941045cd3 Minor copy-editing for release note updates. 2007-01-05 22:35:22 +00:00
Bruce Momjian
3294607a6a Stamp release 7.3.17. 2007-01-05 20:52:58 +00:00
Bruce Momjian
4f58c0db22 Create release notes for 7.3.17. 2007-01-05 20:02:22 +00:00
Tom Lane
9dd224e3c6 A bit of copy-editing on back-branch release notes. 2006-10-11 20:56:31 +00:00
Bruce Momjian
68b856f065 Stamp releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:38:14 +00:00
Bruce Momjian
850f5f3287 Update release notes for releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:22:58 +00:00
Tom Lane
e675978ff5 Stamp release 7.3.15. 2006-05-21 21:54:31 +00:00
Tom Lane
78e237e1e3 Update release notes for upcoming releases. 2006-05-21 21:50:14 +00:00
Bruce Momjian
502b68876c Stamp releases 7.3.15, 7.4.13, and 8.0.8. 2006-05-21 20:28:22 +00:00
Tom Lane
e6f43f7786 Modify libpq's string-escaping routines to be aware of encoding considerations
and standard_conforming_strings.  The encoding changes are needed for proper
escaping in multibyte encodings, as per the SQL-injection vulnerabilities
noted in CVE-2006-2313 and CVE-2006-2314.  Concurrent fixes are being applied
to the server to ensure that it rejects queries that may have been corrupted
by attempted SQL injection, but this merely guarantees that unpatched clients
will fail rather than allow injection.  An actual fix requires changing the
client-side code.  While at it we have also fixed these routines to understand
about standard_conforming_strings, so that the upcoming changeover to SQL-spec
string syntax can be somewhat transparent to client code.

Since the existing API of PQescapeString and PQescapeBytea provides no way to
inform them which settings are in use, these functions are now deprecated in
favor of new functions PQescapeStringConn and PQescapeByteaConn.  The new
functions take the PGconn to which the string will be sent as an additional
parameter, and look inside the connection structure to determine what to do.
So as to provide some functionality for clients using the old functions,
libpq stores the latest encoding and standard_conforming_strings values
received from the backend in static variables, and the old functions consult
these variables.  This will work reliably in clients using only one Postgres
connection at a time, or even multiple connections if they all use the same
encoding and string syntax settings; which should cover many practical
scenarios.

Clients that use homebrew escaping methods, such as PHP's addslashes()
function or even hardwired regexp substitution, will require extra effort
to fix :-(.  It is strongly recommended that such code be replaced by use of
PQescapeStringConn/PQescapeByteaConn if at all feasible.
2006-05-21 20:20:48 +00:00
Tom Lane
16e77740ea Add a new GUC parameter backslash_quote, which determines whether the SQL
parser will allow "\'" to be used to represent a literal quote mark.  The
"\'" representation has been deprecated for some time in favor of the
SQL-standard representation "''" (two single quote marks), but it has been
used often enough that just disallowing it immediately won't do.  Hence
backslash_quote allows the settings "on", "off", and "safe_encoding",
the last meaning to allow "\'" only if client_encoding is a valid server
encoding.  That is now the default, and the reason is that in encodings
such as SJIS that allow 0x5c (ASCII backslash) to be the last byte of a
multibyte character, accepting "\'" allows SQL-injection attacks as per
CVE-2006-2314 (further details will be published after release).  The
"on" setting is available for backward compatibility, but it must not be
used with clients that are exposed to untrusted input.

Thanks to Akio Ishida and Yasuo Ohgaki for identifying this security issue.
2006-05-21 20:12:20 +00:00
Tom Lane
ee7c1a3fd4 Update release notes. 2006-02-12 22:36:16 +00:00
Bruce Momjian
da91fde3e8 Update FAQ latest version 2006-02-12 18:50:07 +00:00
Bruce Momjian
c551fd362e Stamp releases for 2006-02-14 release 2006-02-12 18:41:22 +00:00
Bruce Momjian
db4534e31f Update release notes for 2006-02-14 release 2006-02-12 18:23:00 +00:00
Tom Lane
751c4818bf Release-note updates and copy editing. 2006-01-06 03:00:46 +00:00
Bruce Momjian
a93eb7cef2 New pgcrypto item wording. 2006-01-05 15:17:08 +00:00
Bruce Momjian
e6e13b5da9 Wording improvements. 2006-01-05 15:11:07 +00:00
Bruce Momjian
7251950412 Improve markup. 2006-01-05 14:52:40 +00:00
Bruce Momjian
00214b611c *** empty log message *** 2006-01-05 05:21:40 +00:00
Bruce Momjian
44a3ad2ab0 Stamp release 7.3.13. 2006-01-05 03:59:21 +00:00
Tom Lane
fbb687fa1b Stamp 7.3.12. 2005-12-09 20:56:45 +00:00
Tom Lane
52d70a3088 Add release notes for back branches (7.3 and up).
Also minor improvements to 8.1.1 release notes.
2005-12-09 20:41:11 +00:00
Bruce Momjian
62b91ec937 Properly document return value of strpos(). 2005-11-16 03:58:08 +00:00
Tom Lane
ae049f191d Stamp release 7.3.11. 2005-10-03 17:24:27 +00:00
Tom Lane
69fbf4816b Update release notes for pending back-branch releases. 2005-10-03 16:05:29 +00:00
Tom Lane
e5921b3230 Update release notes for upcoming re-releases. 2005-05-09 00:10:35 +00:00
Tom Lane
07e3879c95 Stamp release 7.3.10. 2005-05-05 20:09:12 +00:00