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

feat: inaccessible replace_class_syscall detector #46

Open
milancermak opened this issue Sep 8, 2023 · 0 comments
Open

feat: inaccessible replace_class_syscall detector #46

milancermak opened this issue Sep 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@milancermak
Copy link

Describe the desired feature

I have a suggestion for a new detector based on a bug I've seen in one codebase.

A contract was supposed to be upgradable via the replace_class_syscall, but the function wrapping this syscall was not exposed as an entrypoint, i.e. it was missing the #[external(v0)] attribute.

TBH I'm not sure how caracal works under the hood, but this feels like something it could detect 🤞

@milancermak milancermak added the enhancement New feature or request label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant