Skip to content

Conversation

piobab
Copy link
Collaborator

@piobab piobab commented Sep 8, 2023

Fixes to @thec00n findings:

  • no. 1 (red-bank users with alternative account ids might not be able to withdraw their funds).
    Do not allow red-bank users to create alternative account ids only allow the credit manager to create them by only allowing the credit manager contract to interact with the deposit and withdraw endpoint.

  • no. 4 (account_id is not validated in red-bank)
    red-bank should not allow users to create account-ids directly and any action should use the default account “”. Only the credit manager should be allowed to create custom account ids because validation is performed for all actions.

@piobab
Copy link
Collaborator Author

piobab commented Sep 8, 2023

PR to revert-deposit-on-behalf-of. Once that branch is merged I will change destination to release/mars-v2. I wanted to reuse logic already created.

@piobab piobab requested review from dancreee and thec00n September 8, 2023 10:32
@piobab piobab force-pushed the fix/MP-3345-acc-id-allowed-only-for-cm branch from c906aa2 to 8bade3d Compare September 11, 2023 07:52
@piobab piobab changed the base branch from revert-deposit-on-behalf-of to release/mars-v2 September 11, 2023 07:53
@piobab
Copy link
Collaborator Author

piobab commented Sep 11, 2023

Changed destination branch. Pushed rebased commit with latest changes from release/mars-v2

@piobab piobab merged commit 2f4714f into release/mars-v2 Sep 11, 2023
@piobab piobab deleted the fix/MP-3345-acc-id-allowed-only-for-cm branch September 14, 2023 08:08
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.

3 participants