TW
Tripwire
Find contracts. Test them. Review real vulns.

Analysis Run

019c0eab-909f-728c-9614-1375a52b5654

complete
Chain ID
1
Address
Block Number
Created
Fri, Jan 30, 2026 11:30 AM
Review Summary

What survived the funnel

Open this run to answer one question: is this real attacker-relevant behavior with real impact, or just normal contract plumbing?

Confirmed
0
Validated
0
Source
Verified
Review Backing
Present
Best current signal
Unprotected proxy initializer allows market takeover
crit 0 high 0 direct contract
Review Checklist
1. Read the findings table first. Ignore raw jobs until the result looks real.
2. Confirm attacker control, not just the existence of a sink.
3. Confirm money or privilege impact.
4. Keep it if the behavior is real. Kill it if this is normal proxy, admin, or upgrade plumbing.

Processing Jobs

Status & attempts
ID Type Status Attempts Heartbeat
42422 artifact.fetch complete 1 / 3 2 months ago
42423 proxy.resolve complete 1 / 3 2 months ago
42424 tool.cast_disasm complete 1 / 3 2 months ago
42425 analysis.bundle complete 1 / 3 2 months ago
42426 capability.graph complete 1 / 3 2 months ago
42427 detector.run complete 1 / 3 2 months ago
42428 validation.fork complete 1 / 3 2 months ago
42503 report.consolidate complete 1 / 6 2 months ago
42504 tool.slither complete 1 / 2 2 months ago

Artifact

Runtime bytecode: available
Creation TX:
Deployer:
Proxy: no not_proxy
Implementation:
Verified Source: yes
Proxy evidence
{
    "status": "not_proxy"
}

Slither

tool.slither
Status
complete
Attempts
1 / 2
Findings
1
Solc
0.8.13 (solc-select)
View stderr
'forge clean' running (wd: /tmp/slither-8q82pt4q)
'forge config --json' running
'forge build --build-info --skip ./test/** ./script/** --force' running (wd: /tmp/slither-8q82pt4q)

SimpleERC20Escrow.pay(address,uint256) (contracts/Contract.sol#34-38) ignores return value by token.transfer(recipient,amount) (contracts/Contract.sol#37-38)
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#unchecked-transfer

Version constraint ^0.8.13 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
	- VerbatimInvalidDeduplication
	- FullInlinerNonExpressionSplitArgumentEvaluationOrder
	- MissingSideEffectsOnSelectorAccess
	- StorageWriteRemovalBeforeConditionalTermination
	- AbiReencodingHeadOverflowWithStaticArrayCleanup
	- DirtyBytesArrayToStorage
	- InlineAssemblyMemorySideEffects
	- DataLocationChangeInInternalOverride
	- NestedCalldataArrayAbiReencodingSizeValidation.
It is used by:
	- ^0.8.13 (contracts/Contract.sol#1-2)
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-versions-of-solidity

Parameter SimpleERC20Escrow.initialize(IERC20,address)._token (contracts/Contract.sol#25) is not in mixedCase
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#conformance-to-solidity-naming-conventions
. analyzed (2 contracts with 100 detectors), 3 result(s) found
Metadata
{
    "solc": {
        "status": "ok",
        "use_rc": 0,
        "version": "0.8.13",
        "strategy": "solc-select",
        "solc_path": "/var/www/tripwire/.venv/bin/solc",
        "install_rc": 0,
        "use_stderr": null,
        "use_stdout": "Switched global version to 0.8.13",
        "install_stderr": null,
        "install_stdout": "Version '0.8.13' is already installed, skipping..."
    },
    "solc_args": "--base-path /tmp/slither-8q82pt4q --allow-paths /tmp/slither-8q82pt4q,/tmp/slither-8q82pt4q/lib,/tmp/slither-8q82pt4q/src",
    "remappings": [],
    "source_files": [
        "contracts/Contract.sol"
    ],
    "contract_count": 0,
    "contract_names": [],
    "detector_count": 3,
    "workspace_hash": "ac180ace9007f3d65608af4ec47c99752171c820406ab397107213d9551b5709",
    "duration_seconds": 0.4837830066680908,
    "solc_version_requested": "0.8.13"
}

Codex

report.consolidate
Job Status
complete
Attempts
1 / 6
Findings
2
No findings?
no
Summary
Two issues: proxy initialization can be hijacked to set an arbitrary market, and ERC20 transfers ignore return values which can mask failed payments.
View stdout
{"no_findings":false,"summary":"Two issues: proxy initialization can be hijacked to set an arbitrary market, and ERC20 transfers ignore return values which can mask failed payments.","findings":[{"severity":"high","category":"upgradeability","title":"Unprotected proxy initializer allows market takeover","exploit_scenario":"If a proxy is deployed but `initialize` is not called atomically by a trusted factory, any external caller can invoke it first, set themselves as `market`, and then call `pay` to drain escrowed tokens.","recommendation":"Restrict initialization to a trusted deployer/factory and use an initializer guard pattern (e.g., OpenZeppelin `initializer` + `onlyProxy`) or pass the expected market address and verify `msg.sender` against it.","evidence":"`initialize` is public and only checks `market == address(0)`, then sets `market = msg.sender`.","locations":["contracts/Contract.sol:25","contracts/Contract.sol:26","contracts/Contract.sol:27"]},{"severity":"low","category":"other","title":"Unchecked ERC20 transfer return value can mask failed payouts","exploit_scenario":"For ERC20s that return `false` instead of reverting, `pay` will appear to succeed even if no tokens moved, which can desynchronize accounting in the calling market or allow collateral release without payment.","recommendation":"Require the return value or use OpenZeppelin `SafeERC20` to handle non‑standard tokens safely.","evidence":"`token.transfer(recipient, amount);` return value is ignored.","locations":["contracts/Contract.sol:36","contracts/Contract.sol:38"]}]}
View stderr
OpenAI Codex v0.77.0 (research preview)
--------
workdir: /tmp/codex-ou9p0q5p
model: gpt-5.2-codex
provider: openai
approval: never
sandbox: read-only
reasoning effort: high
reasoning summaries: auto
session id: 019c0fcf-082e-7791-a6b4-01815a09d788
--------
user
You are a security auditor. Audit this Solidity codebase for exploitable vulnerabilities.
Focus on: reentrancy, access control, upgradeability/proxy issues, signature validation, oracle manipulation,
accounting/invariant breaks, external call patterns, unchecked return values, and dangerous delegatecall.

Scope rules:
- You MUST fully read `AUDIT_BUNDLE.txt` before concluding. It contains the complete contents of all first-party Solidity sources in this workspace.
- Treat `lib/` and `@openzeppelin/` as third-party dependencies; skip them unless there is a concrete misuse angle in first-party code.
- If there are only dependency files and no first-party sources, set no_findings=true and explain in summary.

Output MUST be valid JSON matching the provided schema.
- If you find nothing meaningful: set no_findings=true and findings=[].
- Otherwise: set no_findings=false and include findings with severity/category/title and file/line locations when possible.

Output constraints (IMPORTANT):
- severity MUST be exactly one of: info, low, medium, high, critical (lowercase).
- category MUST be exactly one of: access_control, reentrancy, math, oracle, upgradeability, auth, other.
Keep summary short and concrete.
mcp startup: no servers
exec
/bin/bash -lc ls in /tmp/codex-ou9p0q5p succeeded in 6ms:
AUDIT_BUNDLE.txt
codex-output-schema.json
contracts
exec
/bin/bash -lc 'cat AUDIT_BUNDLE.txt' in /tmp/codex-ou9p0q5p succeeded in 6ms:
This file concatenates the full contents of first-party Solidity sources for auditing.
Do not treat dependency code under lib/ or @openzeppelin/ as first-party.

================================================================================
FILE: contracts/Contract.sol
================================================================================
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

/// @dev Caution: We assume all failed transfers cause reverts and ignore the returned bool.
interface IERC20 {
    function transfer(address,uint) external returns (bool);
    function transferFrom(address,address,uint) external returns (bool);
    function balanceOf(address) external view returns (uint);
}

/**
@title Simple ERC20 Escrow
@notice Collateral is stored in unique escrow contracts for every user and every market.
@dev Caution: This is a proxy implementation. Follow proxy pattern best practices
exec
/bin/bash -lc 'nl -ba contracts/Contract.sol' in /tmp/codex-ou9p0q5p succeeded in 6ms:
     1	// SPDX-License-Identifier: UNLICENSED
     2	pragma solidity ^0.8.13;
     3	
     4	/// @dev Caution: We assume all failed transfers cause reverts and ignore the returned bool.
     5	interface IERC20 {
     6	    function transfer(address,uint) external returns (bool);
     7	    function transferFrom(address,address,uint) external returns (bool);
     8	    function balanceOf(address) external view returns (uint);
     9	}
    10	
    11	/**
    12	@title Simple ERC20 Escrow
    13	@notice Collateral is stored in unique escrow contracts for every user and every market.
    14	@dev Caution: This is a proxy implementation. Follow proxy pattern best practices
    15	*/
    16	contract SimpleERC20Escrow {
    17	    address public market;
    18	    IERC20 public token;
    19	    
    20	    /**
codex
{"no_findings":false,"summary":"Two issues: proxy initialization can be hijacked to set an arbitrary market, and ERC20 transfers ignore return values which can mask failed payments.","findings":[{"severity":"high","category":"upgradeability","title":"Unprotected proxy initializer allows market takeover","exploit_scenario":"If a proxy is deployed but `initialize` is not called atomically by a trusted factory, any external caller can invoke it first, set themselves as `market`, and then call `pay` to drain escrowed tokens.","recommendation":"Restrict initialization to a trusted deployer/factory and use an initializer guard pattern (e.g., OpenZeppelin `initializer` + `onlyProxy`) or pass the expected market address and verify `msg.sender` against it.","evidence":"`initialize` is public and only checks `market == address(0)`, then sets `market = msg.sender`.","locations":["contracts/Contract.sol:25","contracts/Contract.sol:26","contracts/Contract.sol:27"]},{"severity":"low","category":"other","title":"Unchecked ERC20 transfer return value can mask failed payouts","exploit_scenario":"For ERC20s that return `false` instead of reverting, `pay` will appear to succeed even if no tokens moved, which can desynchronize accounting in the calling market or allow collateral release without payment.","recommendation":"Require the return value or use OpenZeppelin `SafeERC20` to handle non‑standard tokens safely.","evidence":"`token.transfer(recipient, amount);` return value is ignored.","locations":["contracts/Contract.sol:36","contracts/Contract.sol:38"]}]}
tokens used
3,872
Metadata
{
    "codex": {
        "ran_at": "2026-01-30T16:49:35.888302+00:00",
        "returncode": 0
    },
    "project": {
        "mode": "source",
        "file_count": 1,
        "import_count": 0,
        "first_party_contracts_count": 1
    },
    "summary": "Two issues: proxy initialization can be hijacked to set an arbitrary market, and ERC20 transfers ignore return values which can mask failed payments.",
    "raw_final": {
        "summary": "Two issues: proxy initialization can be hijacked to set an arbitrary market, and ERC20 transfers ignore return values which can mask failed payments.",
        "findings": [
            {
                "title": "Unprotected proxy initializer allows market takeover",
                "category": "upgradeability",
                "evidence": "`initialize` is public and only checks `market == address(0)`, then sets `market = msg.sender`.",
                "severity": "high",
                "locations": [
                    "contracts/Contract.sol:25",
                    "contracts/Contract.sol:26",
                    "contracts/Contract.sol:27"
                ],
                "recommendation": "Restrict initialization to a trusted deployer/factory and use an initializer guard pattern (e.g., OpenZeppelin `initializer` + `onlyProxy`) or pass the expected market address and verify `msg.sender` against it.",
                "exploit_scenario": "If a proxy is deployed but `initialize` is not called atomically by a trusted factory, any external caller can invoke it first, set themselves as `market`, and then call `pay` to drain escrowed tokens."
            },
            {
                "title": "Unchecked ERC20 transfer return value can mask failed payouts",
                "category": "other",
                "evidence": "`token.transfer(recipient, amount);` return value is ignored.",
                "severity": "low",
                "locations": [
                    "contracts/Contract.sol:36",
                    "contracts/Contract.sol:38"
                ],
                "recommendation": "Require the return value or use OpenZeppelin `SafeERC20` to handle non\u2011standard tokens safely.",
                "exploit_scenario": "For ERC20s that return `false` instead of reverting, `pay` will appear to succeed even if no tokens moved, which can desynchronize accounting in the calling market or allow collateral release without payment."
            }
        ],
        "no_findings": false
    },
    "no_findings": false,
    "schema_version": 1
}

Opcode Heuristics

tool.cast_disasm
Delegatecall
0
Selfdestruct
1
CREATE2
0
CALL-family (heavy)
2
EXT*/BALANCE
0
Total opcodes
623
Flags
selfdestruct_present
View cast disassembly output
00000000: PUSH1 0x80
00000002: PUSH1 0x40
00000004: MSTORE
00000005: CALLVALUE
00000006: DUP1
00000007: ISZERO
00000008: PUSH2 0x0010
0000000b: JUMPI
0000000c: PUSH1 0x00
0000000e: DUP1
0000000f: REVERT
00000010: JUMPDEST
00000011: POP
00000012: PUSH1 0x04
00000014: CALLDATASIZE
00000015: LT
00000016: PUSH2 0x0062
00000019: JUMPI
0000001a: PUSH1 0x00
0000001c: CALLDATALOAD
0000001d: PUSH1 0xe0
0000001f: SHR
00000020: DUP1
00000021: PUSH4 0x12c93f59
00000026: EQ
00000027: PUSH2 0x0067
0000002a: JUMPI
0000002b: DUP1
0000002c: PUSH4 0x485cc955
00000031: EQ
00000032: PUSH2 0x0069
00000035: JUMPI
00000036: DUP1
00000037: PUSH4 0x80f55605
0000003c: EQ
0000003d: PUSH2 0x007c
00000040: JUMPI
00000041: DUP1
00000042: PUSH4 0xb69ef8a8
00000047: EQ
00000048: PUSH2 0x00ac
0000004b: JUMPI
0000004c: DUP1
0000004d: PUSH4 0xc4076876
00000052: EQ
00000053: PUSH2 0x00c2
00000056: JUMPI
00000057: DUP1
00000058: PUSH4 0xfc0c546a
0000005d: EQ
0000005e: PUSH2 0x00d5
00000061: JUMPI
00000062: JUMPDEST
00000063: PUSH1 0x00
00000065: DUP1
00000066: REVERT
00000067: JUMPDEST
00000068: STOP
00000069: JUMPDEST
0000006a: PUSH2 0x0067
0000006d: PUSH2 0x0077
00000070: CALLDATASIZE
00000071: PUSH1 0x04
00000073: PUSH2 0x02bb
00000076: JUMP
00000077: JUMPDEST
00000078: PUSH2 0x00e8
0000007b: JUMP
0000007c: JUMPDEST
0000007d: PUSH1 0x00
0000007f: SLOAD
00000080: PUSH2 0x008f
00000083: SWAP1
00000084: PUSH1 0x01
00000086: PUSH1 0x01
00000088: PUSH1 0xa0
0000008a: SHL
0000008b: SUB
0000008c: AND
0000008d: DUP2
0000008e: JUMP
0000008f: JUMPDEST
00000090: PUSH1 0x40
00000092: MLOAD
00000093: PUSH1 0x01
00000095: PUSH1 0x01
00000097: PUSH1 0xa0
00000099: SHL
0000009a: SUB
0000009b: SWAP1
0000009c: SWAP2
0000009d: AND
0000009e: DUP2
0000009f: MSTORE
000000a0: PUSH1 0x20
000000a2: ADD
000000a3: JUMPDEST
000000a4: PUSH1 0x40
000000a6: MLOAD
000000a7: DUP1
000000a8: SWAP2
000000a9: SUB
000000aa: SWAP1
000000ab: RETURN
000000ac: JUMPDEST
000000ad: PUSH2 0x00b4
000000b0: PUSH2 0x016d
000000b3: JUMP
000000b4: JUMPDEST
000000b5: PUSH1 0x40
000000b7: MLOAD
000000b8: SWAP1
000000b9: DUP2
000000ba: MSTORE
000000bb: PUSH1 0x20
000000bd: ADD
000000be: PUSH2 0x00a3
000000c1: JUMP
000000c2: JUMPDEST
000000c3: PUSH2 0x0067
000000c6: PUSH2 0x00d0
000000c9: CALLDATASIZE
000000ca: PUSH1 0x04
000000cc: PUSH2 0x02f4
000000cf: JUMP
000000d0: JUMPDEST
000000d1: PUSH2 0x01df
000000d4: JUMP
000000d5: JUMPDEST
000000d6: PUSH1 0x01
000000d8: SLOAD
000000d9: PUSH2 0x008f
000000dc: SWAP1
000000dd: PUSH1 0x01
000000df: PUSH1 0x01
000000e1: PUSH1 0xa0
000000e3: SHL
000000e4: SUB
000000e5: AND
000000e6: DUP2
000000e7: JUMP
000000e8: JUMPDEST
000000e9: PUSH1 0x00
000000eb: SLOAD
000000ec: PUSH1 0x01
000000ee: PUSH1 0x01
000000f0: PUSH1 0xa0
000000f2: SHL
000000f3: SUB
000000f4: AND
000000f5: ISZERO
000000f6: PUSH2 0x013c
000000f9: JUMPI
000000fa: PUSH1 0x40
000000fc: MLOAD
000000fd: PUSH3 0x461bcd
00000101: PUSH1 0xe5
00000103: SHL
00000104: DUP2
00000105: MSTORE
00000106: PUSH1 0x20
00000108: PUSH1 0x04
0000010a: DUP3
0000010b: ADD
0000010c: MSTORE
0000010d: PUSH1 0x13
0000010f: PUSH1 0x24
00000111: DUP3
00000112: ADD
00000113: MSTORE
00000114: PUSH19 0x10531491505116481253925512505312569151
00000128: PUSH1 0x6a
0000012a: SHL
0000012b: PUSH1 0x44
0000012d: DUP3
0000012e: ADD
0000012f: MSTORE
00000130: PUSH1 0x64
00000132: ADD
00000133: JUMPDEST
00000134: PUSH1 0x40
00000136: MLOAD
00000137: DUP1
00000138: SWAP2
00000139: SUB
0000013a: SWAP1
0000013b: REVERT
0000013c: JUMPDEST
0000013d: POP
0000013e: PUSH1 0x00
00000140: DUP1
00000141: SLOAD
00000142: CALLER
00000143: PUSH1 0x01
00000145: PUSH1 0x01
00000147: PUSH1 0xa0
00000149: SHL
0000014a: SUB
0000014b: NOT
0000014c: SWAP2
0000014d: DUP3
0000014e: AND
0000014f: OR
00000150: SWAP1
00000151: SWAP2
00000152: SSTORE
00000153: PUSH1 0x01
00000155: DUP1
00000156: SLOAD
00000157: SWAP1
00000158: SWAP2
00000159: AND
0000015a: PUSH1 0x01
0000015c: PUSH1 0x01
0000015e: PUSH1 0xa0
00000160: SHL
00000161: SUB
00000162: SWAP3
00000163: SWAP1
00000164: SWAP3
00000165: AND
00000166: SWAP2
00000167: SWAP1
00000168: SWAP2
00000169: OR
0000016a: SWAP1
0000016b: SSTORE
0000016c: JUMP
0000016d: JUMPDEST
0000016e: PUSH1 0x01
00000170: SLOAD
00000171: PUSH1 0x40
00000173: MLOAD
00000174: PUSH4 0x70a08231
00000179: PUSH1 0xe0
0000017b: SHL
0000017c: DUP2
0000017d: MSTORE
0000017e: ADDRESS
0000017f: PUSH1 0x04
00000181: DUP3
00000182: ADD
00000183: MSTORE
00000184: PUSH1 0x00
00000186: SWAP2
00000187: PUSH1 0x01
00000189: PUSH1 0x01
0000018b: PUSH1 0xa0
0000018d: SHL
0000018e: SUB
0000018f: AND
00000190: SWAP1
00000191: PUSH4 0x70a08231
00000196: SWAP1
00000197: PUSH1 0x24
00000199: ADD
0000019a: PUSH1 0x20
0000019c: PUSH1 0x40
0000019e: MLOAD
0000019f: DUP1
000001a0: DUP4
000001a1: SUB
000001a2: DUP2
000001a3: DUP7
000001a4: GAS
000001a5: STATICCALL
000001a6: ISZERO
000001a7: DUP1
000001a8: ISZERO
000001a9: PUSH2 0x01b6
000001ac: JUMPI
000001ad: RETURNDATASIZE
000001ae: PUSH1 0x00
000001b0: DUP1
000001b1: RETURNDATACOPY
000001b2: RETURNDATASIZE
000001b3: PUSH1 0x00
000001b5: REVERT
000001b6: JUMPDEST
000001b7: POP
000001b8: POP
000001b9: POP
000001ba: POP
000001bb: PUSH1 0x40
000001bd: MLOAD
000001be: RETURNDATASIZE
000001bf: PUSH1 0x1f
000001c1: NOT
000001c2: PUSH1 0x1f
000001c4: DUP3
000001c5: ADD
000001c6: AND
000001c7: DUP3
000001c8: ADD
000001c9: DUP1
000001ca: PUSH1 0x40
000001cc: MSTORE
000001cd: POP
000001ce: DUP2
000001cf: ADD
000001d0: SWAP1
000001d1: PUSH2 0x01da
000001d4: SWAP2
000001d5: SWAP1
000001d6: PUSH2 0x0320
000001d9: JUMP
000001da: JUMPDEST
000001db: SWAP1
000001dc: POP
000001dd: SWAP1
000001de: JUMP
000001df: JUMPDEST
000001e0: PUSH1 0x00
000001e2: SLOAD
000001e3: PUSH1 0x01
000001e5: PUSH1 0x01
000001e7: PUSH1 0xa0
000001e9: SHL
000001ea: SUB
000001eb: AND
000001ec: CALLER
000001ed: EQ
000001ee: PUSH2 0x0227
000001f1: JUMPI
000001f2: PUSH1 0x40
000001f4: MLOAD
000001f5: PUSH3 0x461bcd
000001f9: PUSH1 0xe5
000001fb: SHL
000001fc: DUP2
000001fd: MSTORE
000001fe: PUSH1 0x20
00000200: PUSH1 0x04
00000202: DUP3
00000203: ADD
00000204: MSTORE
00000205: PUSH1 0x0b
00000207: PUSH1 0x24
00000209: DUP3
0000020a: ADD
0000020b: MSTORE
0000020c: PUSH11 0x13d393164813505492d155
00000218: PUSH1 0xaa
0000021a: SHL
0000021b: PUSH1 0x44
0000021d: DUP3
0000021e: ADD
0000021f: MSTORE
00000220: PUSH1 0x64
00000222: ADD
00000223: PUSH2 0x0133
00000226: JUMP
00000227: JUMPDEST
00000228: PUSH1 0x01
0000022a: SLOAD
0000022b: PUSH1 0x40
0000022d: MLOAD
0000022e: PUSH4 0xa9059cbb
00000233: PUSH1 0xe0
00000235: SHL
00000236: DUP2
00000237: MSTORE
00000238: PUSH1 0x01
0000023a: PUSH1 0x01
0000023c: PUSH1 0xa0
0000023e: SHL
0000023f: SUB
00000240: DUP5
00000241: DUP2
00000242: AND
00000243: PUSH1 0x04
00000245: DUP4
00000246: ADD
00000247: MSTORE
00000248: PUSH1 0x24
0000024a: DUP3
0000024b: ADD
0000024c: DUP5
0000024d: SWAP1
0000024e: MSTORE
0000024f: SWAP1
00000250: SWAP2
00000251: AND
00000252: SWAP1
00000253: PUSH4 0xa9059cbb
00000258: SWAP1
00000259: PUSH1 0x44
0000025b: ADD
0000025c: PUSH1 0x20
0000025e: PUSH1 0x40
00000260: MLOAD
00000261: DUP1
00000262: DUP4
00000263: SUB
00000264: DUP2
00000265: PUSH1 0x00
00000267: DUP8
00000268: GAS
00000269: CALL
0000026a: ISZERO
0000026b: DUP1
0000026c: ISZERO
0000026d: PUSH2 0x027a
00000270: JUMPI
00000271: RETURNDATASIZE
00000272: PUSH1 0x00
00000274: DUP1
00000275: RETURNDATACOPY
00000276: RETURNDATASIZE
00000277: PUSH1 0x00
00000279: REVERT
0000027a: JUMPDEST
0000027b: POP
0000027c: POP
0000027d: POP
0000027e: POP
0000027f: PUSH1 0x40
00000281: MLOAD
00000282: RETURNDATASIZE
00000283: PUSH1 0x1f
00000285: NOT
00000286: PUSH1 0x1f
00000288: DUP3
00000289: ADD
0000028a: AND
0000028b: DUP3
0000028c: ADD
0000028d: DUP1
0000028e: PUSH1 0x40
00000290: MSTORE
00000291: POP
00000292: DUP2
00000293: ADD
00000294: SWAP1
00000295: PUSH2 0x029e
00000298: SWAP2
00000299: SWAP1
0000029a: PUSH2 0x0339
0000029d: JUMP
0000029e: JUMPDEST
0000029f: POP
000002a0: POP
000002a1: POP
000002a2: JUMP
000002a3: JUMPDEST
000002a4: PUSH1 0x01
000002a6: PUSH1 0x01
000002a8: PUSH1 0xa0
000002aa: SHL
000002ab: SUB
000002ac: DUP2
000002ad: AND
000002ae: DUP2
000002af: EQ
000002b0: PUSH2 0x02b8
000002b3: JUMPI
000002b4: PUSH1 0x00
000002b6: DUP1
000002b7: REVERT
000002b8: JUMPDEST
000002b9: POP
000002ba: JUMP
000002bb: JUMPDEST
000002bc: PUSH1 0x00
000002be: DUP1
000002bf: PUSH1 0x40
000002c1: DUP4
000002c2: DUP6
000002c3: SUB
000002c4: SLT
000002c5: ISZERO
000002c6: PUSH2 0x02ce
000002c9: JUMPI
000002ca: PUSH1 0x00
000002cc: DUP1
000002cd: REVERT
000002ce: JUMPDEST
000002cf: DUP3
000002d0: CALLDATALOAD
000002d1: PUSH2 0x02d9
000002d4: DUP2
000002d5: PUSH2 0x02a3
000002d8: JUMP
000002d9: JUMPDEST
000002da: SWAP2
000002db: POP
000002dc: PUSH1 0x20
000002de: DUP4
000002df: ADD
000002e0: CALLDATALOAD
000002e1: PUSH2 0x02e9
000002e4: DUP2
000002e5: PUSH2 0x02a3
000002e8: JUMP
000002e9: JUMPDEST
000002ea: DUP1
000002eb: SWAP2
000002ec: POP
000002ed: POP
000002ee: SWAP3
000002ef: POP
000002f0: SWAP3
000002f1: SWAP1
000002f2: POP
000002f3: JUMP
000002f4: JUMPDEST
000002f5: PUSH1 0x00
000002f7: DUP1
000002f8: PUSH1 0x40
000002fa: DUP4
000002fb: DUP6
000002fc: SUB
000002fd: SLT
000002fe: ISZERO
000002ff: PUSH2 0x0307
00000302: JUMPI
00000303: PUSH1 0x00
00000305: DUP1
00000306: REVERT
00000307: JUMPDEST
00000308: DUP3
00000309: CALLDATALOAD
0000030a: PUSH2 0x0312
0000030d: DUP2
0000030e: PUSH2 0x02a3
00000311: JUMP
00000312: JUMPDEST
00000313: SWAP5
00000314: PUSH1 0x20
00000316: SWAP4
00000317: SWAP1
00000318: SWAP4
00000319: ADD
0000031a: CALLDATALOAD
0000031b: SWAP4
0000031c: POP
0000031d: POP
0000031e: POP
0000031f: JUMP
00000320: JUMPDEST
00000321: PUSH1 0x00
00000323: PUSH1 0x20
00000325: DUP3
00000326: DUP5
00000327: SUB
00000328: SLT
00000329: ISZERO
0000032a: PUSH2 0x0332
0000032d: JUMPI
0000032e: PUSH1 0x00
00000330: DUP1
00000331: REVERT
00000332: JUMPDEST
00000333: POP
00000334: MLOAD
00000335: SWAP2
00000336: SWAP1
00000337: POP
00000338: JUMP
00000339: JUMPDEST
0000033a: PUSH1 0x00
0000033c: PUSH1 0x20
0000033e: DUP3
0000033f: DUP5
00000340: SUB
00000341: SLT
00000342: ISZERO
00000343: PUSH2 0x034b
00000346: JUMPI
00000347: PUSH1 0x00
00000349: DUP1
0000034a: REVERT
0000034b: JUMPDEST
0000034c: DUP2
0000034d: MLOAD
0000034e: DUP1
0000034f: ISZERO
00000350: ISZERO
00000351: DUP2
00000352: EQ
00000353: PUSH2 0x035b
00000356: JUMPI
00000357: PUSH1 0x00
00000359: DUP1
0000035a: REVERT
0000035b: JUMPDEST
0000035c: SWAP4
0000035d: SWAP3
0000035e: POP
0000035f: POP
00000360: POP
00000361: JUMP
00000362: INVALID
00000363: LOG2
00000364: PUSH5 0x6970667358
0000036a: UNKNOWN(0x22)
0000036b: SLT
0000036c: KECCAK256
0000036d: SWAP8
0000036e: PUSH7 0x385fd7f98c24d4
00000376: UNKNOWN(0xE5)
00000377: STOP
00000378: SELFDESTRUCT
00000379: UNKNOWN(0xE9)
0000037a: UNKNOWN(0xDB)
0000037b: PUSH1 0x74
0000037d: ADDRESS
0000037e: CLZ
0000037f: SMOD
00000380: UNKNOWN(0xDB)
00000381: UNKNOWN(0xA6)
00000382: CLZ
00000383: SWAP9
00000384: UNKNOWN(0x4D)
00000385: CALLER
00000386: UNKNOWN(0xE4)
00000387: PUSH5 0x8c533eb011
0000038d: PUSH5 0x736f6c6343
00000393: STOP
00000394: ADDMOD
00000395: UNKNOWN(0x0D)
00000396: STOP
00000397: CALLER

Findings

validated = confirmed for call sinks; sink observed for others
Severity Category Tool Title Confidence Validated Confirmed Details
high upgradeability codex Unprotected proxy initializer allows market takeover 85 no
view
evidence_json
{
    "evidence": "`initialize` is public and only checks `market == address(0)`, then sets `market = msg.sender`.",
    "locations": [
        "contracts/Contract.sol:25",
        "contracts/Contract.sol:26",
        "contracts/Contract.sol:27"
    ],
    "recommendation": "Restrict initialization to a trusted deployer/factory and use an initializer guard pattern (e.g., OpenZeppelin `initializer` + `onlyProxy`) or pass the expected market address and verify `msg.sender` against it.",
    "exploit_scenario": "If a proxy is deployed but `initialize` is not called atomically by a trusted factory, any external caller can invoke it first, set themselves as `market`, and then call `pay` to drain escrowed tokens."
}
high other cast SELFDESTRUCT present 85 no
view
evidence_json
{
    "notes": "selfdestruct can remove contract code and send funds; review reachability",
    "selfdestruct_count": 1
}
high other detector Untrusted CALL target/value reachable 60 no no
view
trace_id: 0x6282685dc9c0b5368f0c1909b39f156de1a98ae524b47f76bb1462d80c38a334
call_targets: 0xc06053fcad0a0df7cc32289a135bbea9030c010f
target_varies: no
classification: constant_target
validation_json
{
    "sink": "CALL",
    "errors": 0,
    "status": "sink_reached",
    "attempts": 1,
    "trace_id": "0x6282685dc9c0b5368f0c1909b39f156de1a98ae524b47f76bb1462d80c38a334",
    "confirmed": false,
    "trace_mode": "callTracer",
    "call_targets": [
        "0xc06053fcad0a0df7cc32289a135bbea9030c010f"
    ],
    "matched_probe": null,
    "target_varies": false,
    "classification": "constant_target"
}
witness_json
{
    "notes": "heuristic witness; entrypoints are best-effort selectors with zeroed calldata",
    "constraints": [],
    "entrypoints": [
        {
            "calldata": "0x12c93f59",
            "selector": "0x12c93f59",
            "calldata_variants": [
                "0x12c93f59",
                "0x12c93f590000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x485cc955",
            "selector": "0x485cc955",
            "calldata_variants": [
                "0x485cc955",
                "0x485cc9550000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x80f55605",
            "selector": "0x80f55605",
            "calldata_variants": [
                "0x80f55605",
                "0x80f556050000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xb69ef8a8",
            "selector": "0xb69ef8a8",
            "calldata_variants": [
                "0xb69ef8a8",
                "0xb69ef8a80000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xc4076876",
            "selector": "0xc4076876",
            "calldata_variants": [
                "0xc4076876",
                "0xc40768760000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xfc0c546a",
            "selector": "0xfc0c546a",
            "calldata_variants": [
                "0xfc0c546a",
                "0xfc0c546a0000000000000000000000000000000000000000000000000000000000000000"
            ]
        }
    ]
}
evidence_json
{
    "examples": [
        {
            "pc": 617,
            "opcode": "CALL",
            "returndata_checked": null,
            "value_expression_category": "computed",
            "target_expression_category": "computed"
        }
    ],
    "call_count": 1,
    "guards_detected": [],
    "untrusted_call_count": 1
}
high other detector ETH value transfer possible 55 no no
view
trace_id: 0x6282685dc9c0b5368f0c1909b39f156de1a98ae524b47f76bb1462d80c38a334
call_targets: 0xc06053fcad0a0df7cc32289a135bbea9030c010f
target_varies: no
classification: constant_target
validation_json
{
    "sink": "CALL",
    "errors": 0,
    "status": "sink_reached",
    "attempts": 1,
    "trace_id": "0x6282685dc9c0b5368f0c1909b39f156de1a98ae524b47f76bb1462d80c38a334",
    "confirmed": false,
    "trace_mode": "callTracer",
    "call_targets": [
        "0xc06053fcad0a0df7cc32289a135bbea9030c010f"
    ],
    "matched_probe": null,
    "target_varies": false,
    "classification": "constant_target"
}
witness_json
{
    "notes": "heuristic witness; entrypoints are best-effort selectors with zeroed calldata",
    "constraints": [],
    "entrypoints": [
        {
            "calldata": "0x12c93f59",
            "selector": "0x12c93f59",
            "calldata_variants": [
                "0x12c93f59",
                "0x12c93f590000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x485cc955",
            "selector": "0x485cc955",
            "calldata_variants": [
                "0x485cc955",
                "0x485cc9550000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x80f55605",
            "selector": "0x80f55605",
            "calldata_variants": [
                "0x80f55605",
                "0x80f556050000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xb69ef8a8",
            "selector": "0xb69ef8a8",
            "calldata_variants": [
                "0xb69ef8a8",
                "0xb69ef8a80000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xc4076876",
            "selector": "0xc4076876",
            "calldata_variants": [
                "0xc4076876",
                "0xc40768760000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xfc0c546a",
            "selector": "0xfc0c546a",
            "calldata_variants": [
                "0xfc0c546a",
                "0xfc0c546a0000000000000000000000000000000000000000000000000000000000000000"
            ]
        }
    ]
}
evidence_json
{
    "examples": [
        {
            "pc": 617,
            "opcode": "CALL",
            "returndata_checked": null,
            "value_expression_category": "computed",
            "target_expression_category": "computed"
        }
    ],
    "eth_value_calls": 1,
    "guards_detected": []
}
high other detector SELFDESTRUCT reachable 65 no no
view
trace_id: 0xc2ec6c78bb83b9c59d7e47d02d4d5e239e3ec19387805a6aec51854bfc13bd13
validation_json
{
    "sink": "SELFDESTRUCT",
    "errors": 0,
    "status": "unknown",
    "attempts": 12,
    "trace_id": "0xc2ec6c78bb83b9c59d7e47d02d4d5e239e3ec19387805a6aec51854bfc13bd13",
    "confirmed": false,
    "trace_mode": "structLogs",
    "call_targets": null,
    "matched_probe": null,
    "target_varies": null,
    "classification": "no_sink"
}
witness_json
{
    "notes": "heuristic witness; entrypoints are best-effort selectors with zeroed calldata",
    "constraints": [],
    "entrypoints": [
        {
            "calldata": "0x12c93f59",
            "selector": "0x12c93f59",
            "calldata_variants": [
                "0x12c93f59",
                "0x12c93f590000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x485cc955",
            "selector": "0x485cc955",
            "calldata_variants": [
                "0x485cc955",
                "0x485cc9550000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0x80f55605",
            "selector": "0x80f55605",
            "calldata_variants": [
                "0x80f55605",
                "0x80f556050000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xb69ef8a8",
            "selector": "0xb69ef8a8",
            "calldata_variants": [
                "0xb69ef8a8",
                "0xb69ef8a80000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xc4076876",
            "selector": "0xc4076876",
            "calldata_variants": [
                "0xc4076876",
                "0xc40768760000000000000000000000000000000000000000000000000000000000000000"
            ]
        },
        {
            "calldata": "0xfc0c546a",
            "selector": "0xfc0c546a",
            "calldata_variants": [
                "0xfc0c546a",
                "0xfc0c546a0000000000000000000000000000000000000000000000000000000000000000"
            ]
        }
    ]
}
evidence_json
{
    "guards_detected": [],
    "selfdestruct_count": 1
}
high other slither SimpleERC20Escrow.pay(address,uint256) (contracts/Contract.sol#34-38) ignores return value by token.transfer(recipient,amount) (contracts/Contract.sol#37-38) 85 no
view
evidence_json
{
    "impact": "High",
    "detector": "unchecked-transfer",
    "elements": [
        {
            "name": "pay",
            "type": "function",
            "source_mapping": {
                "lines": [
                    34,
                    35,
                    36,
                    37,
                    38
                ],
                "start": 1248,
                "length": 156,
                "ending_column": 12,
                "is_dependency": false,
                "filename_short": "contracts/Contract.sol",
                "starting_column": 42,
                "filename_absolute": "/tmp/slither-8q82pt4q/contracts/Contract.sol",
                "filename_relative": "contracts/Contract.sol"
            },
            "type_specific_fields": {
                "parent": {
                    "name": "SimpleERC20Escrow",
                    "type": "contract",
                    "source_mapping": {
                        "lines": [
                            14,
                            15,
                            16,
                            17,
                            18,
                            19,
                            20,
                            21,
                            22,
                            23,
                            24,
                            25,
                            26,
                            27,
                            28,
                            29,
                            30,
                            31,
                            32,
                            33,
                            34,
                            35,
                            36,
                            37,
                            38,
                            39,
                            40,
                            41,
                            42,
                            43,
                            44,
                            45,
                            46,
                            47,
                            48,
                            49,
                            50,
                            51
                        ],
                        "start": 581,
                        "length": 1290,
                        "ending_column": 92,
                        "is_dependency": false,
                        "filename_short": "contracts/Contract.sol",
                        "starting_column": 73,
                        "filename_absolute": "/tmp/slither-8q82pt4q/contracts/Contract.sol",
                        "filename_relative": "contracts/Contract.sol"
                    }
                },
                "signature": "pay(address,uint256)"
            }
        },
        {
            "name": "token.transfer(recipient,amount)",
            "type": "node",
            "source_mapping": {
                "lines": [
                    37,
                    38
                ],
                "start": 1364,
                "length": 33,
                "ending_column": 5,
                "is_dependency": false,
                "filename_short": "contracts/Contract.sol",
                "starting_column": 27,
                "filename_absolute": "/tmp/slither-8q82pt4q/contracts/Contract.sol",
                "filename_relative": "contracts/Contract.sol"
            },
            "type_specific_fields": {
                "parent": {
                    "name": "pay",
                    "type": "function",
                    "source_mapping": {
                        "lines": [
                            34,
                            35,
                            36,
                            37,
                            38
                        ],
                        "start": 1248,
                        "length": 156,
                        "ending_column": 12,
                        "is_dependency": false,
                        "filename_short": "contracts/Contract.sol",
                        "starting_column": 42,
                        "filename_absolute": "/tmp/slither-8q82pt4q/contracts/Contract.sol",
                        "filename_relative": "contracts/Contract.sol"
                    },
                    "type_specific_fields": {
                        "parent": {
                            "name": "SimpleERC20Escrow",
                            "type": "contract",
                            "source_mapping": {
                                "lines": [
                                    14,
                                    15,
                                    16,
                                    17,
                                    18,
                                    19,
                                    20,
                                    21,
                                    22,
                                    23,
                                    24,
                                    25,
                                    26,
                                    27,
                                    28,
                                    29,
                                    30,
                                    31,
                                    32,
                                    33,
                                    34,
                                    35,
                                    36,
                                    37,
                                    38,
                                    39,
                                    40,
                                    41,
                                    42,
                                    43,
                                    44,
                                    45,
                                    46,
                                    47,
                                    48,
                                    49,
                                    50,
                                    51
                                ],
                                "start": 581,
                                "length": 1290,
                                "ending_column": 92,
                                "is_dependency": false,
                                "filename_short": "contracts/Contract.sol",
                                "starting_column": 73,
                                "filename_absolute": "/tmp/slither-8q82pt4q/contracts/Contract.sol",
                                "filename_relative": "contracts/Contract.sol"
                            }
                        },
                        "signature": "pay(address,uint256)"
                    }
                }
            }
        }
    ],
    "locations": [
        {
            "file": "contracts/Contract.sol",
            "name": "pay",
            "type": "function",
            "lines": [
                34,
                35,
                36,
                37,
                38
            ]
        },
        {
            "file": "contracts/Contract.sol",
            "name": "token.transfer(recipient,amount)",
            "type": "node",
            "lines": [
                37,
                38
            ]
        }
    ],
    "description": "SimpleERC20Escrow.pay(address,uint256) (contracts/Contract.sol#34-38) ignores return value by token.transfer(recipient,amount) (contracts/Contract.sol#37-38)"
}
low other codex Unchecked ERC20 transfer return value can mask failed payouts 65 no
view
evidence_json
{
    "evidence": "`token.transfer(recipient, amount);` return value is ignored.",
    "locations": [
        "contracts/Contract.sol:36",
        "contracts/Contract.sol:38"
    ],
    "recommendation": "Require the return value or use OpenZeppelin `SafeERC20` to handle non\u2011standard tokens safely.",
    "exploit_scenario": "For ERC20s that return `false` instead of reverting, `pay` will appear to succeed even if no tokens moved, which can desynchronize accounting in the calling market or allow collateral release without payment."
}