Hunt prep
Before you test Karak Restaking
What 9 disclosed reports say about Karak Restaking: 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 | 4 | 0 | – | – | $0 |
| Business logic lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 1 | 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.
-
Slashing NativeVault will lead to locked ETH for the users
The mitigation only burns the ETH that has already been credited to the user, avoiding the double reduction of totalAssets.
Disclosed
-
Changing the slashingHandler for NativeVaults will DoS slashing
The report suggests restricting slashStore changes to the Manager, adding a Core function anyone can call to sync a NativeVault's slashStore, or removing the equality check.
Disclosed
-
A DoS on snapshots due to a rounding error in calculations
The fix adds a check to only subtract when `node.totalRestakedETH` is greater than `convertToAssets(balanceOf(nodeOwner))`, otherwise set slashedAssets to zero.
Disclosed
-
Delayed slashing window and lack of transparency for pending slashes could lead to loss of funds
The protocol mitigated by pausing vault deposits during a queued slashing event and exposing a getter to determine if a vault is queued for slashing.
Disclosed
-
When malicious behavior occurs and DSS requests slashing against vault during 2 day period after SLASHING_WINDOW of 7 days is passed after staker initiates a withdrawal, token amount to be slashed is calculated to be higher than what it should be
The slashing amount should be computed at finalization time so that only currently staked assets are slashed; the project says this was fixed.
Disclosed
-
The operator can create a NativeVault that can be silently unslashable
The protocol should validate that the slashStore address provided during vault deployment matches the protocol's slashing handler for ETH, or remove the slashStore parameter entirely.
Disclosed
-
Violation of Invariant Allowing DSSs to Slash Unregistered Operators
The protocol was fixed by validating the operator and vault status when finalizing a slashing.
Disclosed
-
A snapshot may face a permanent DoS if both a slashing event occurs in the NativeVault and the staker’s validator is penalized
The _decreaseBalance function should cap the number of shares burned at the staker's actual share balance; the project mitigated this by accounting for the decrease in the user's shares before burning.
Disclosed
-
Slashings will always fail in some cases
The vault's slashAssets function should only approve and call the slashing handler if the transfer amount is greater than zero.
Disclosed