Hunt prep
Before you test Gravitybridge
What 8 disclosed reports say about Gravitybridge: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| DoS lesson | 5 | 0 | – | – | $0 |
| Business logic lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Freeze Bridge via Non-UTF8 Token Name/Symbol/Denom
The fix is non-trivial; one approach is to validate UTF-8 in the Solidity contract, or to encode invalid bytes as hex instead of failing.
-
Cannot actually submit evidence
The handler for MsgSubmitBadSignatureEvidence should be added to the module's handler.go file; the project confirmed and patched it.
-
Freeze The Bridge Via Large ERC20 Names/Symbols/Denoms
The error should be handled by checking for a byte limit error and chunking the search size into 2 and retrying, or by requiring validators to sign ERC20 creation requests.
-
The function updateValset does not have enough sanity checks
The report suggests adding an on-chain check that the new set's power exceeds the threshold and that its size is bounded, or alternatively making the update a two-step process where the pending set must itself pass the threshold checks.
-
Crash Eth Oracle On Any LogicCallEvent
The recommendation is to implement the missing parsing method.
-
Incorrect accounting on transfer-on-fee/deflationary tokens in Gravity
The contract should calculate the actual received amount by comparing the token balance before and after the transfer, and use that amount in the event.