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

CS5.1 - Disallow callbacks at the start of a script's callback function #229

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

kevincheng96
Copy link
Collaborator

This PR establishes the pattern that Quark scripts using callbacks should disallow callbacks at the start of their callback function. Otherwise, any external contract that is called in the same Quark Operation context can call back into the Quark wallet and potentially execute malicious code in the context of the wallet.

Copy link
Contributor

@hayesgm hayesgm left a comment

Choose a reason for hiding this comment

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

awesome

@kevincheng96 kevincheng96 merged commit 1c9a09b into main Oct 16, 2024
4 checks passed
@kevincheng96 kevincheng96 deleted the kevin/5.1-callback branch October 16, 2024 18:30
kevincheng96 added a commit to compound-finance/quark-scripts that referenced this pull request Oct 22, 2024
…on (#92)

Brings over the exact same
[fixes](compound-finance/quark#229) to the same
files from the `quark` repo.
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.

2 participants