Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proud Taffy Kestrel - ABONDToken::transferFrom() updates spender user state instead of sender's one #1065

Open
sherlock-admin4 opened this issue Dec 30, 2024 · 0 comments

Comments

@sherlock-admin4
Copy link

Proud Taffy Kestrel

Medium

ABONDToken::transferFrom() updates spender user state instead of sender's one

Summary

The ABONDToken::transferFrom() function debits sender's balance, but changed user state assigns to the spender, instead of sender.

Root Cause

In ABONDToken::transferFrom() debited user state assigns to the msg.sender, so ABONDToken.userStates becomes out of sync with users token balances.

Internal pre-conditions

  1. User allowed to spend some amount of ABONDToken to the spender

External pre-conditions

No response

Attack Path

  1. User allowed to spend some amount of ABONDToken to the spender
  2. Spender calls ABONDToken.transferFrom() with user's address as from param
  3. Spender receives user's State in the userStates mapping

Impact

ABONDToken.userStates becomes out of sync with users ABONDToken balances

PoC

No response

Mitigation

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant