summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNoah Misch2017-11-06 15:11:10 +0000
committerNoah Misch2017-11-06 15:11:13 +0000
commit29d06705194396d46004a48bf56e741c79269790 (patch)
treea7529ae4548830c8bfd9aea8850951b0042c80cc /doc
parentd4fcc0ceaa9029267c8605d79049e24e6fc0551b (diff)
start-scripts: switch to $PGUSER before opening $PGLOG.
By default, $PGUSER has permission to unlink $PGLOG. If $PGUSER replaces $PGLOG with a symbolic link, the server will corrupt the link-targeted file by appending log messages. Since these scripts open $PGLOG as root, the attack works regardless of target file ownership. "make install" does not install these scripts anywhere. Users having manually installed them in the past should repeat that process to acquire this fix. Most script users have $PGLOG writable to root only, located in $PGDATA. Just before updating one of these scripts, such users should rename $PGLOG to $PGLOG.old. The script will then recreate $PGLOG with proper ownership. Reviewed by Peter Eisentraut. Reported by Antoine Scemama. Security: CVE-2017-12172
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions