-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WirePayForData
with empty Message
#8
Comments
Great find! We definitely have to address the spamming issue, so I don't want to distract from that, but just to note that there is currently a very small base fee added by the default cosmos-sdk for all txs for signature verification and size of tx. this is something that we have to consider when designing a goal base fee and proper resource allocation, which we still need to do a lot of work for celestiaorg/celestia-app#658 |
Thanks. I was not aware of it, but I was hoping that something like this exists :) |
No longer seems necessary given the above
Added in celestiaorg/celestia-app#1083 |
MsgWirePayForData.ValidateBasic
doesn't check ifmsg.MessageSize == 0
. As a result, a malicious user could spam the system withWirePayForData
transactions with no data. Such attack is possible since the gas consumed per TXs ismsg.MessageSize
(there are no reads or writes to the store).Suggestions:
WirePayForData
transactions withMessageSize == 0
MessageSize
The text was updated successfully, but these errors were encountered: