- Notifications
You must be signed in to change notification settings - Fork5
Commitec3aebd
committed
Reject, in pg_dumpall, names containing CR or LF.
These characters prematurely terminate Windows shell command processing,causing the shell to execute a prefix of the intended command. Thechief alternative to rejecting these characters was to bypass theWindows shell with CreateProcess(), but the ability to use such nameshas little value. Back-patch to 9.1 (all supported versions).This change formally revokes support for these characters in databasenames and roles names. Don't document this; the error message isself-explanatory, and too few users would benefit. A future majorrelease may forbid creation of databases and roles so named. For now,check only at known weak points in pg_dumpall. Future commits will,without notice, reject affected names from other frontend programs.Also extend the restriction to pg_dumpall --dbname=CONNSTR arguments and--file arguments. Unlike the effects on role name arguments anddatabase names, this does not reflect a broad policy change. Amigration to CreateProcess() could lift these two restrictions.Reviewed by Peter Eisentraut.Security:CVE-2016-54241 parent640768c commitec3aebd
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2130 | 2130 |
| |
2131 | 2131 |
| |
2132 | 2132 |
| |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
2133 | 2139 |
| |
2134 | 2140 |
| |
2135 | 2141 |
| |
| |||
2140 | 2146 |
| |
2141 | 2147 |
| |
2142 | 2148 |
| |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
2143 | 2157 |
| |
2144 | 2158 |
| |
2145 | 2159 |
| |
| |||
2151 | 2165 |
| |
2152 | 2166 |
| |
2153 | 2167 |
| |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2154 | 2176 |
| |
2155 | 2177 |
| |
2156 | 2178 |
| |
|
0 commit comments
Comments
(0)