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