You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming here from fuzzing by my colleague @cuonglm who found a vector #9060
in which AddressFromBalancesStore naively just tries to slice values without bounds checking. If we look at the code
The second form is most dangerous because on a quick audit of data flowing through, if at all a len(...) check were made or examining what's retrieved from genesis files, it would look okay but really it is deceptive about the length of the slice hence would crash
Summary of Bug
Coming here from fuzzing by my colleague @cuonglm who found a vector #9060
in which AddressFromBalancesStore naively just tries to slice values without bounds checking. If we look at the code
cosmos-sdk/x/bank/types/key.go
Lines 40 to 45 in 29ff333
There are 2 problems:
a) If an empty byte sequence is passed it, it crashes
b) If I lie about the length of that sequence, we'll get a panic say with
The second form is most dangerous because on a quick audit of data flowing through, if at all a len(...) check were made or examining what's retrieved from genesis files, it would look okay but really it is deceptive about the length of the slice hence would crash
Version
All versions
Steps to Reproduce
I kindly request that we backport the fix for it.
For Admin Use
The text was updated successfully, but these errors were encountered: