OPENAFS-SA-2018-003 rxgen: prevent unbounded input arrays
authorMark Vitale <mvitale@sinenomine.net>
Fri, 6 Jul 2018 07:14:19 +0000 (03:14 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 9 Sep 2018 22:35:09 +0000 (17:35 -0500)
commita4c1d5c48deca2ebf78b1c90310b6d56b3d48af6
treeb7d08d53aaa72949531970cf6852a34cf501ab0d
parent8b92d015ccdfcb70c7acfc38e330a0475a1fbe28
OPENAFS-SA-2018-003 rxgen: prevent unbounded input arrays

RPCs with unbounded arrays as inputs are susceptible to remote
denial-of-service (DOS) attacks.  A malicious client may submit an RPC
request with an arbitrarily large array, forcing the server to expend
large amounts of network bandwidth, cpu cycles, and heap memory to
unmarshal the input.

Instead, issue an error message and stop rxgen when it detects an RPC
defined with an unbounded input array.  Thus we will detect the problem
at build time and prevent any future unbounded input arrays.

Change-Id: Ib110f817ed1c8132ea2549025876a5200c728fab
src/rxgen/rpc_parse.c