forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbdd19e4
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 parentc59b0be commitbdd19e4
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
435 | 446 |
| |
436 | 447 |
| |
437 | 448 |
| |
|
0 commit comments
Comments
(0)