forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb403f41
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 parent54d4a8f commitb403f41
File tree
4 files changed
+7
-7
lines changed- src
- backend
- access/transam
- utils/init
- include
4 files changed
+7
-7
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8982 | 8982 |
| |
8983 | 8983 |
| |
8984 | 8984 |
| |
8985 |
| - | |
| 8985 | + | |
8986 | 8986 |
| |
8987 | 8987 |
| |
8988 | 8988 |
| |
| |||
9261 | 9261 |
| |
9262 | 9262 |
| |
9263 | 9263 |
| |
9264 |
| - | |
| 9264 | + | |
9265 | 9265 |
| |
9266 | 9266 |
| |
9267 | 9267 |
| |
|
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 | |
---|---|---|---|
| |||
669 | 669 |
| |
670 | 670 |
| |
671 | 671 |
| |
672 |
| - | |
| 672 | + | |
673 | 673 |
| |
674 | 674 |
| |
675 | 675 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
398 |
| - | |
| 398 | + | |
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
|
0 commit comments
Comments
(0)