Beginner FriendlyGameFi
100 EXP
View results
Submission Details
Impact: high
Likelihood: medium
Invalid

get_actual_apt_balance exposed

Root + Impact

Description

  • Any user can see actual contract balance, which may leak sensitive info.

coin::balance<AptosCoin>(resource_addr) // @> no privacy

Risk

Likelihood:

  • High. This is a publicly exposed view function, meaning it can be called by any external address at any time. No special privileges or conditions are required to exploit this.

Impact:

  • Significant. The public disclosure of a contract's exact balance can reveal sensitive financial information. This could expose a user or a project's liquidity, making them a target for attackers, or provide a competitive disadvantage. It compromises the privacy of a core financial asset.

Proof of Concept

// Call get_actual_apt_balance from any address

Recommended Mitigation

- pub fn get_actual_apt_balance() ...
+ pub fun get_actual_apt_balance(owner: &signer) ... // restrict to owner only
Updates

Appeal created

bube Lead Judge 12 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.