OPENAFS-SA-2018-002 budb: prevent BUDB_* information leaks
authorMark Vitale <mvitale@sinenomine.net>
Tue, 26 Jun 2018 08:39:44 +0000 (04:39 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 9 Sep 2018 22:33:55 +0000 (17:33 -0500)
commite96771471134102d3879a0ac8b2c4ef9d91a61b8
treed51732ef66b466f335b20e8cc635cc4c0a4369f9
parent211b6d6a4307006da1467b3be46912a3a5d7b20b
OPENAFS-SA-2018-002 budb: prevent BUDB_* information leaks

The following budb RPCs do not initialize their output correctly.
This leaks buserver memory contents over the wire:

BUDB_FindLatestDump (backup dump)
BUDB_FindDump (backup volrestore, diskrestore, volsetrestore)
BUDB_GetDumps (backup dumpinfo)
BUDB_FindLastTape (backup dump)

struct budb_dumpEntry
- up to 32 bytes in member volumeSetName
- up to 256 bytes in member dumpPath
- up to 32 bytes in member name
- up to 32 bytes in member tape.tapeServer
- up to 32 bytes in member tape.format
- up to 256 bytes in member dumper.name
- up to 128 bytes in member dumper.instance
- up to 256 bytes in member dumper.cell

Initialize the buffer in common routine FillDumpEntry.

Change-Id: Ic057a6c906ce2acd39e0e4ea0a0ba1e100bba3e9
src/budb/procs.c