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

fix: fix the security issues #279

Merged
merged 2 commits into from
Jun 8, 2023
Merged

fix: fix the security issues #279

merged 2 commits into from
Jun 8, 2023

Conversation

yutianwu
Copy link
Collaborator

@yutianwu yutianwu commented Jun 8, 2023

Description

This pr will fix some potential security issues:

  • check the cross-chain refund amount

Rationale

Fix some potential security issues

Example

N/A

Changes

Notable changes:

  • fix some potential security issues

@@ -115,6 +115,12 @@ func (app *TransferOutApp) ExecuteFailAckPackage(ctx sdk.Context, appCtx *sdk.Cr
}
}

if transferOutPackage.Amount.Cmp(big.NewInt(0)) < 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is zero allowed?

@unclezoro unclezoro merged commit 777a193 into develop Jun 8, 2023
@yutianwu yutianwu deleted the fix_sec branch June 15, 2023 02:48
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