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

Prevent contracts from being re-initialized #307

Merged

Conversation

matiassequeira
Copy link
Contributor

What
Prevent the init function front being executed after the contract has already been initialized.

Why
Incorporating a security feature to prevent adversaries from substituting the admin by invoking the init function, enabling them to upgrade the contract to a malicious version. This fix prevents anyone copying the upgrade functionality from replicating this vulnerability in their contracts.

Known limitations
N/A

@dmkozh dmkozh enabled auto-merge (squash) April 23, 2024 16:16
auto-merge was automatically disabled April 23, 2024 21:07

Head branch was pushed to by a user without write access

@matiassequeira
Copy link
Contributor Author

Hi @dmkozh, all the checks pass now. It requires your approval again, thanks.

@dmkozh dmkozh enabled auto-merge (squash) April 23, 2024 23:09
@dmkozh dmkozh merged commit 002edec into stellar:main Apr 23, 2024
110 checks passed
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