- Notifications
You must be signed in to change notification settings - Fork28
Commitad0009e
committed
Force PL and range-type support functions to be owned by a superuser.
We allow non-superusers to create procedural languages (with restrictions)and range datatypes. Previously, the automatically-created supportfunctions for these objects ended up owned by the creating user. Thisrepresents a rather considerable security hazard, because the owning usermight be able to alter a support function's definition in such a way as tocrash the server, inject trojan-horse SQL code, or even execute arbitraryC code directly. It appears that right now the only actually exploitableproblem is the infinite-recursion bug fixed in the previous patch forCVE-2012-2655. However, it's not hard to imagine that future additions ofmore ALTER FUNCTION capability might unintentionally open up new hazards.To forestall future problems, cause these support functions to be owned bythe bootstrap superuser, not the user creating the parent object.1 parent33c6eaf commitad0009e
File tree
6 files changed
+10
-1
lines changed- src
- backend
- catalog
- commands
- include/catalog
6 files changed
+10
-1
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
| 236 | + | |
236 | 237 |
| |
237 | 238 |
| |
238 | 239 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| |||
100 | 101 |
| |
101 | 102 |
| |
102 | 103 |
| |
103 |
| - | |
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
978 | 978 |
| |
979 | 979 |
| |
980 | 980 |
| |
| 981 | + | |
981 | 982 |
| |
982 | 983 |
| |
983 | 984 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
| 128 | + | |
127 | 129 |
| |
128 | 130 |
| |
129 | 131 |
| |
| |||
160 | 162 |
| |
161 | 163 |
| |
162 | 164 |
| |
| 165 | + | |
163 | 166 |
| |
164 | 167 |
| |
165 | 168 |
| |
| |||
199 | 202 |
| |
200 | 203 |
| |
201 | 204 |
| |
| 205 | + | |
202 | 206 |
| |
203 | 207 |
| |
204 | 208 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| |||
1513 | 1514 |
| |
1514 | 1515 |
| |
1515 | 1516 |
| |
| 1517 | + | |
1516 | 1518 |
| |
1517 | 1519 |
| |
1518 | 1520 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
|
0 commit comments
Comments
(0)