Gulyabani

demo-wallet-txorigin.sol

Verdict

Triangle with an exclamation mark Findings by these rules

1 thing(s) in this contract match known risky patterns. Each one is listed below with the lines that triggered it.

AI court skipped: --no-ai was used, so the flagged lines were not reviewed by the AI court.

What to do

Read the flagged lines and have a person who knows Solidity review them before you use this contract.

Findings

  1. tx.origin used for authorization (tx_origin)

    In plain words: Using tx.origin to decide who is allowed could let a contract that the owner calls pass the check on the owner's behalf.

    • Severity: high
    • Confidence: likely
    • Where: demo-wallet-txorigin.sol:13
    Evidence
    13        require(tx.origin == owner, "not owner");

What this check did not look at

A contract whose source raises nothing can still be part of any of these.

Coverage

About this scan

Name
demo-wallet-txorigin.sol
Subject
Solidity contract (source text only)