diff --git a/docs/curve_vyper_reentrancy.md b/docs/vyper_version_reentrancy.md similarity index 93% rename from docs/curve_vyper_reentrancy.md rename to docs/vyper_version_reentrancy.md index e9b8591..12ac807 100644 --- a/docs/curve_vyper_reentrancy.md +++ b/docs/vyper_version_reentrancy.md @@ -2,7 +2,7 @@ ## Configuration -- Check: `pess-curve-vyper-reentrancy` +- Check: `pess-vyper-version-reentrancy` - Severity: `High` - Confidence: `High` diff --git a/slitherin/__init__.py b/slitherin/__init__.py index 773fc00..68665d5 100644 --- a/slitherin/__init__.py +++ b/slitherin/__init__.py @@ -41,8 +41,8 @@ from slitherin.detectors.balancer.balancer_readonly_reentrancy import ( BalancerReadonlyReentrancy, ) -from slitherin.detectors.vyper.reentrancy_curve_vyper_version import ( - CurveVyperReentrancy, +from slitherin.detectors.vyper.reentrancy_vyper_version import ( + VyperVersionReentrancy, ) from slitherin.detectors.price_manipulation import PriceManipulationDetector from .consts import OBSOLETE_FLAG @@ -80,7 +80,7 @@ PotentialArithmOverflow, CurveReadonlyReentrancy, BalancerReadonlyReentrancy, - CurveVyperReentrancy, + VyperVersionReentrancy, PriceManipulationDetector, ] diff --git a/slitherin/detectors/vyper/reentrancy_curve_vyper_version.py b/slitherin/detectors/vyper/reentrancy_vyper_version.py similarity index 91% rename from slitherin/detectors/vyper/reentrancy_curve_vyper_version.py rename to slitherin/detectors/vyper/reentrancy_vyper_version.py index 34c3ae5..939acc3 100644 --- a/slitherin/detectors/vyper/reentrancy_curve_vyper_version.py +++ b/slitherin/detectors/vyper/reentrancy_vyper_version.py @@ -5,8 +5,8 @@ from slither.slithir.operations.event_call import EventCall VULNERABLE_VERSIONS = ['0.2.15', '0.2.16', '0.3.0'] -class CurveVyperReentrancy(AbstractDetector): - ARGUMENT = 'pess-curve-vyper-reentrancy' # slither will launch the detector with slither.py --detect mydetector +class VyperVersionReentrancy(AbstractDetector): + ARGUMENT = 'pess-vyper-version-reentrancy' # slither will launch the detector with slither.py --detect mydetector HELP = f'Vyper compiler versions {", ".join(VULNERABLE_VERSIONS)} are vulnerable to malfunctioning re-entrancy guards. Upgrade your compiler version.' IMPACT = DetectorClassification.HIGH CONFIDENCE = DetectorClassification.HIGH