Skip to content

[PoC] Exploit against AccountManager internalTransfer #4

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dna-thug
Copy link

@dna-thug dna-thug commented Aug 5, 2025

This is my PoC for the bug I found in AccountManager contract.

The issue is in internalTransfer. The contract allows anyone to send tokens from any address, even if that address has no balance or is not owned by them.

I used address(1) as the fake sender and sent 1000 tokens to my own account without having any real balance there.

I added the PoC in test/c4-poc/PoC.t.sol file.

To test it, use:
forge test --match-test submissionValidity

@dna-thug
Copy link
Author

dna-thug commented Aug 5, 2025

Thanks for the opportunity. I found this issue while testing the internalTransfer logic.

This PoC shows how an attacker can move tokens from an address like address(1) which has no real balance. No ownership check is done on from, so it's exploitable.

Let me know if anything needs to be changed or improved.

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

Successfully merging this pull request may close these issues.

1 participant