forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite5fdb8f
committed
Make REPLICATION privilege checks test current user not authenticated user.
The pg_start_backup() and pg_stop_backup() functions checked the privilegesof the initially-authenticated user rather than the current user, which iswrong. For example, a user-defined index function could successfully callthese functions when executed by ANALYZE within autovacuum. This couldallow an attacker with valid but low-privilege database access to interferewith creation of routine backups. Reported and fixed by Noah Misch.Security:CVE-2013-19011 parentfe6b242 commite5fdb8f
File tree
4 files changed
+7
-7
lines changed- src
- backend
- access/transam
- utils/init
- include
4 files changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9413 | 9413 | | |
9414 | 9414 | | |
9415 | 9415 | | |
9416 | | - | |
| 9416 | + | |
9417 | 9417 | | |
9418 | 9418 | | |
9419 | 9419 | | |
| |||
9743 | 9743 | | |
9744 | 9744 | | |
9745 | 9745 | | |
9746 | | - | |
| 9746 | + | |
9747 | 9747 | | |
9748 | 9748 | | |
9749 | 9749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
0 commit comments
Comments
(0)