Skip to content

Code4rena

Karak Restaking

Every publicly disclosed report for Karak Restaking and what kind of bugs they were.

disclosed reports
9
most reported class
DoS
bug classes found
4
first disclosure
2024
Find Karak Restaking on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Karak Restaking chose to make public.

Smart contracts

Slashing NativeVault will lead to locked ETH for the users

A flaw in the slashing and withdrawal logic of NativeVault causes users to receive less ETH than they are entitled to after a slashing event, with the remaining ETH permanently locked in the contract. An attacker cannot directly exploit this, but users lose funds when they withdraw after being slashed.

Karak Restaking

High
DoS

Changing the slashingHandler for NativeVaults will DoS slashing

NativeVault's slashAssets function requires the slashingHandler argument to equal the vault's stored slashStore, but the Core allowlist can be updated to a new handler, so existing NativeVaults then always revert when slashed. An attacker or admin action of changing the handler could block slashing for all previously deployed NativeVaults until they are individually upgraded or the old handler is restored.

Karak Restaking

Medium
DoS

A DoS on snapshots due to a rounding error in calculations

A rounding error in the NativeVault contract can cause the calculation of slashed assets to underflow, reverting the snapshot function. An attacker can exploit this by making small donations to nodes, potentially preventing a user from taking snapshots and withdrawing funds.

Karak Restaking

High
Business logic

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 is calculated from the vault's total assets, which includes tokens queued for withdrawal that should no longer be slashable after the slashing window. A DSS can therefore slash more tokens than intended, potentially taking funds from a staker who initiated a withdrawal before any malicious behaviour.

Karak Restaking

Medium
Access control

The operator can create a NativeVault that can be silently unslashable

An operator could deploy a NativeVault with a slashStore address that differs from the protocol's asset slashing handler for ETH, causing every slashAssets call to revert. This made the vault unslashable, allowing the operator to act maliciously without risk of losing funds.

Karak Restaking

High
Business logic

Violation of Invariant Allowing DSSs to Slash Unregistered Operators

The Karak protocol allowed a DSS to finalize a slashing request on an operator even after the operator had unregistered from that DSS, breaking the invariant that only registered DSSs can slash an operator. An attacker (the DSS) could slash an operator who had already unstaked and unregistered, potentially causing loss to new depositors unaware of the pending slash.

Karak Restaking

High
DoS

Slashings will always fail in some cases

A slashing request can fail if a vault's total assets become zero before finalisation, because the vault's slash function passes a zero amount to the handler which reverts. This blocks slashing for all vaults in the same request.

Karak Restaking

Medium