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

CFG (Control Flow Graph) extensions for state variables #156

Closed
0x19 opened this issue Dec 11, 2023 · 1 comment
Closed

CFG (Control Flow Graph) extensions for state variables #156

0x19 opened this issue Dec 11, 2023 · 1 comment
Assignees
Labels
cfg Control Flow Graph enhancement New feature or request high priority High Priority Tasks

Comments

@0x19
Copy link
Contributor

0x19 commented Dec 11, 2023

Lets take real challenge I'm facing now.

In order to properly parse storage values and feed them into the state variables, THERE HAS TO BE ORDER. When contract is deployed, state variables can be reached from the storageAt() however, they are added in order of execution into the EVM and thus, they have to be fetched out from the EVM in order.

Taking for example different ways we can bring source code into the parser, it's obvious that code won't be always in order and we need to sort that out.

In order to resolve it once for good, we need to ensure that CFG is used here as we can map execution on the right way. In addition to that, CFG will later on be used for discovering vulnerabilities to one day replace slither.

Basically, this is a huge thing and it's blocking #142 to be released into the wild.

@0x19 0x19 added enhancement New feature or request cfg Control Flow Graph high priority High Priority Tasks labels Dec 11, 2023
@0x19 0x19 added this to the Sniffy - v0.3.2 milestone Dec 11, 2023
@0x19 0x19 self-assigned this Dec 11, 2023
@0x19
Copy link
Contributor Author

0x19 commented Dec 13, 2023

Code waiting for new PR in #140

@0x19 0x19 closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cfg Control Flow Graph enhancement New feature or request high priority High Priority Tasks
Projects
None yet
Development

No branches or pull requests

1 participant