Tx Gasprice Warning

April 19, 2023 ยท View on GitHub

Configuration

  • Check: pess-tx-gasprice
  • Severity: High
  • Confidence: Low

Description

tx.gasprice variable is set by contract users not developers. The detector sees if a contract uses tx.gasprice variable.

Vulnerable Scenario

test scenario

Related Attack

Ethereum-alarm-clock Exploit & 2nd source

Recommendation

Make sure that exploits with tx.gasprice variable set by users are not possible.

Contents

  1. 1Configuration
  2. 2Description
  3. 3Vulnerable Scenario
  4. 4Related Attack
  5. 5Recommendation