ControlledDelegatecall: add suport for codecall

pull/81/head
Josselin 6 years ago
parent 866e219041
commit 1f1e31c526
  1. 2
      slither/detectors/statements/controlled_delegatecall.py

@ -17,7 +17,7 @@ class ControlledDelegateCall(AbstractDetector):
ret = []
for node in function.nodes:
for ir in node.irs:
if isinstance(ir, LowLevelCall) and ir.function_name == 'delegatecall':
if isinstance(ir, LowLevelCall) and ir.function_name in ['delegatecall', 'codecall']:
if is_tainted(self.slither, ir.arguments[0]):
ret.append(node)
return ret

Loading…
Cancel
Save