Feature Request: Add new detector for Inadequate Protection Against Front-Running #911
ThomasHeim11
started this conversation in
Ideas
Replies: 1 comment
-
|
I love the idea mate. I agree, Aderyn doesn't handle this kind of stuff yet. But I have a plan We're working the internals (by creating cross function CFG, DFG symbol resolution, and other compiler stuff) in order to write more robust rules that can accommodate this kind of detector. At the moment, we can work around but that would be rather dull. However, once that is done, 100% we can have this....(whatever you described) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider opening a discussion instead of an issue for this.
Try answering the follows:
Is your feature request related to a problem? Please describe.
Smart contracts frequently lack protection against front-running attacks, making them vulnerable to transaction ordering manipulation. When working with DeFi protocols, developers often implement functions for swaps, trades, or price-sensitive operations without considering the implications of transaction ordering. This leads to value extraction through sandwich attacks, auction/marketplace manipulation, and MEV exploitation. Currently, Aderyn lacks a dedicated detector for identifying these vulnerable patterns.
Describe the solution you'd like
Id like to add a new low-severity detector that identifies functions susceptible to front-running attacks by checking for:
The detector would provide specific guidance on how to implement these protections in the issue description and generate meaningful warnings to help developers secure their contracts.
I've already implemented and tested this detector locally. The implementation:
Additional context
Here are examples of code that would be flagged vs. protected implementations:
Vulnerable (would be flagged):
Protected (would pass):
Beta Was this translation helpful? Give feedback.
All reactions