forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb048f55
committed
Fix priv checks for ALTER <object> DEPENDS ON EXTENSION
Marking an object as dependant on an extension did not have anyprivilege check whatsoever; this allowed any user to mark objects asdroppable by anyone able to DROP EXTENSION, which could be used to causesystem-wide havoc. Disallow by checking that the calling user owns thementioned object.(No constraints are placed on the extension.)Security:CVE-2020-1720Reported-by: Tom LaneDiscussion: 31605.1566429043@sss.pgh.pa.us1 parent4e81886 commitb048f55
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
441 | 452 |
| |
442 | 453 |
| |
443 | 454 |
| |
|
0 commit comments
Comments
(0)