demo-wallet-txorigin.sol
Verdict
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
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
- Key compromise: a stolen admin, deployer or signing key.
- Infrastructure compromise: a hacked server, CI system, front end, package registry account or RPC endpoint.
- Signing-service abuse: a signing or custody service that is tricked or misused into signing.
- Delegation-based account takeover: an account that delegated control (for example an account-level authorization set outside any contract) to an attacker.
- Code that is not in the scanned source: anything that lives in bytecode or in another file.
- Not reviewed by the AI court: --no-ai was used, so the flagged lines were not reviewed by the AI court.
A contract whose source raises nothing can still be part of any of these.
Coverage
- Only these rule types were checked: access control, unlimited approval, reentrancy, unchecked call, delegatecall, tx origin, arithmetic, randomness, front running, selfdestruct, oracle, fallback, arbitrary external call, ai injection, denial of service, uninitialized storage, time dependence.
- This is a source pattern scanner, not protocol security. It reads text only: it does not compile, run or test the contract.
- Rule types that are not written yet are not covered. See docs/contract-gate-limits.md.
About this scan
- Name
- demo-wallet-txorigin.sol
- Subject
- Solidity contract (source text only)