forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitadc97d0
committed
Prevent access to external files/URLs via contrib/xml2's xslt_process().
libxslt offers the ability to read and write both files and URLs throughstylesheet commands, thus allowing unprivileged database users to both readand write data with the privileges of the database server. Disable thatthrough proper use of libxslt's security options.Also, remove xslt_process()'s ability to fetch documents and stylesheetsfrom external files/URLs. While this was a documented "feature", it waslong regarded as a terrible idea. The fix forCVE-2012-3489 broke thatcapability, and rather than expend effort on trying to fix it, we're justgoing to summarily remove it.While the ability to write as well as read makes this security holeconsiderably worse thanCVE-2012-3489, the problem is mitigated by the factthat xslt_process() is not available unless contrib/xml2 is installed,and the longstanding warnings about security risks from that should havediscouraged prudent DBAs from installing it in security-exposed databases.Reported and fixed by Peter Eisentraut.Security:CVE-2012-34881 parent17351fc commitadc97d0
File tree
5 files changed
+97
-26
lines changed- contrib/xml2
- expected
- sql
- doc/src/sgml
5 files changed
+97
-26
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + |
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + |
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + |
Lines changed: 52 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
64 |
| - | |
| 65 | + | |
| 66 | + | |
65 | 67 |
| |
66 | 68 |
| |
67 | 69 |
| |
| |||
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
86 |
| - | |
| 88 | + | |
| 89 | + | |
87 | 90 |
| |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 |
| |
93 | 95 |
| |
94 | 96 |
| |
95 | 97 |
| |
96 | 98 |
| |
97 | 99 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
| 100 | + | |
| 101 | + | |
105 | 102 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
110 | 109 |
| |
111 | 110 |
| |
112 | 111 |
| |
113 | 112 |
| |
114 | 113 |
| |
115 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
116 | 144 |
| |
117 | 145 |
| |
118 | 146 |
| |
| |||
128 | 156 |
| |
129 | 157 |
| |
130 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
131 | 163 |
| |
132 | 164 |
| |
133 | 165 |
| |
| |||
139 | 171 |
| |
140 | 172 |
| |
141 | 173 |
| |
| 174 | + | |
| 175 | + | |
142 | 176 |
| |
143 | 177 |
| |
144 | 178 |
| |
|
Lines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
446 |
| - | |
447 | 439 |
| |
448 | 440 |
| |
449 | 441 |
| |
|
0 commit comments
Comments
(0)