Files
cosmos-sdk/client
Emmanuel T Odekeandmergify[bot] 9f17bc77af baseapp, client: reject gRPC connections with out-of-range/nefarious x-cosmos-block-height values (#7663)
* baseapp, client: reject gRPC connections with out-of-range/nefarious x-cosmos-block-height values

Rejects gRPC connections that send out-of-range x-cosmos-block-height
values that previously weren't checked for. We now reject any negative
values and any value greater than max(int64) aka >9223372036854775807.

Also added an enforcement for returning an error if any negative heights
are passed into (*BaseApp).createQueryContext.

Fixes #7662

* baseapp, client: reject gRPC connections with out-of-range/nefarious x-cosmos-block-height values

Rejects gRPC connections that send out-of-range x-cosmos-block-height
values that previously weren't checked for. We now reject any negative
values and any value greater than max(int64) aka >9223372036854775807.

Also added an enforcement for returning an error if any negative heights
are passed into (*BaseApp).createQueryContext.

Fixes #7662

* Address Robert's feedback to extract negative height checker

* Fix tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-11-03 18:35:22 +00:00
..
2020-10-02 15:13:58 +02:00
2020-11-02 15:13:48 +00:00
2020-10-08 13:41:35 -04:00
2020-09-23 13:44:40 +00:00
2020-10-30 12:32:02 +00:00
2020-09-23 13:44:40 +00:00
2020-09-23 13:44:40 +00:00
2020-10-08 13:41:35 -04:00
2020-10-23 12:07:52 +00:00
2020-07-24 08:17:11 +00:00