Skip to content

Code4rena

Phat Contract Runtime

Every publicly disclosed report for Phat Contract Runtime and what kind of bugs they were.

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

Disclosed reports

Newest first. Only what Phat Contract Runtime chose to make public.

Business logic

A cache that times out can be recovered

The LocalCache#set_expire function can reactivate an expired key because it only calls maybe_clear_expired, which does not always remove expired entries. An attacker could use this to make a key that should have expired appear to exist again, potentially causing inconsistent data or price manipulation.

Phat Contract Runtime

Medium
DoS

An attacker can bloat the Pink runtime storage with zero costs

The Pink runtime's existential deposit was set to 1 unit, far too low to deter dust accounts. An attacker could create a huge number of accounts at negligible cost, bloating storage and raising fees for all users.

Phat Contract Runtime

Medium
DoS

An attacker can crash the cluster system by sending an HTTP request with a huge timeout

The batch_http_request function adds 200 to a user-supplied timeout without checking for overflow, so a timeout near the maximum unsigned 64-bit integer causes a panic. An attacker could crash a worker by sending such a request, but the worker clamps the timeout, so the crash is not directly reachable.

Phat Contract Runtime

Medium