TL;DR
An upgradeable escrow smart contract lets whoever controls its upgrade path replace the logic that holds, releases and refunds your deposit after you fund it. What decides the risk is who holds that right, and whether a change waits long enough, in public, for you to see it coming.
Escrow is a special case, because a client locking USDC for a freelancer's milestone carries someone else's upgrade risk. This method applies to any escrow, FiduWork's included; its disclosed facts say nothing about upgradeability, admin roles or delays, so every FiduWork point below is a question to verify.
An upgradeable escrow splits into a proxy, which holds the storage and the token balance, and a logic contract the proxy calls through delegatecall, so swapping the logic address changes the rules without moving funds. An arXiv study of upgrade security risks built a dataset of 83,085 upgraded contracts and 20,902 upgrade chains, and grouped 37 real incidents into eight risk types.
The ethereum.org guide to upgrading smart contracts describes the split: users interact with the proxy, which stores data but holds no business logic, and the proxy forwards every call to the logic contract using delegatecall.
The USDC balance and milestone records belong to the proxy's address. The Solidity documentation on delegatecall states that storage, current address and balance still refer to the calling contract; only the code comes from the called address. Read the proxy, not the logic contract.
ethereum.org lists contract migration as one alternative: deploy a new instance and transfer storage and balances to it. Migration is loud, because a new address appears; a proxy upgrade is quiet. Another option is to deploy logic that cannot change.
FiduWork's earlier breakdown of its escrow design lists "governance upgrades are honest" among its trust assumptions and leaves timelock details to confirm at evaluation time; this piece is the method.
All 3 common proxy patterns keep their pointers in storage slots fixed by the proxy storage-slot standard, each derived as a keccak-256 hash of a label minus 1. Transparent and UUPS proxies store the implementation address in the same slot and differ in where the upgrade function lives. Beacon proxies store a beacon address, and the beacon names the implementation.
In a beacon design, OpenZeppelin explains, every proxy following the beacon is upgraded when the beacon is, so one beacon behind many escrow proxies is one switch for every open milestone. In the UpgradeableBeacon source at v5.4.0, an implementation change emits Upgraded from the beacon contract itself; the proxy emits BeaconUpgraded only when its beacon pointer is set, which OpenZeppelin's BeaconProxy does once, at construction.
0x360894a1...382bbc, from bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1), holds the logic address; changes SHOULD emit Upgraded.0xb5312768...5d6103, from bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1), holds the address allowed to upgrade (optional); changes SHOULD emit AdminChanged.bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1), applies only if the implementation slot is empty; its event is BeaconUpgraded.Slot values are truncated; the full constants are on the EIP page. The EIP says these locations were picked to have "no known preimage", so a write to a mapping with a maliciously crafted key could not overwrite them. Events are SHOULD, not MUST, so a missing event does not prove no upgrade happened. An empty admin slot does not mean the proxy cannot change, because UUPS keeps the upgrade check in the implementation.
In an upgradeable escrow, client, freelancer and jurors move a milestone through its states, and the upgrade authority is a fourth role that can change the code all three depend on.
The OpenZeppelin proxy API reference describes TransparentUpgradeableProxy as a proxy with a built-in immutable admin and upgrade interface. Calls from the admin are never forwarded to the implementation. The proxy deploys a ProxyAdmin and accepts upgrades only through it, so the real controller is whatever owner() on that ProxyAdmin returns.
That admin is fixed at construction as an immutable variable. The implementation can still overwrite the admin slot, which would make the slot value misleading without changing who can upgrade; OpenZeppelin calls relying on the slot "generally fine if the implementation is trusted", which is what you are trying to establish. Cross-check the slot against the AdminChanged event emitted at deployment and against ProxyAdmin.owner(). EIP-1967 adds that differently named functions can clash on a four-byte selector.
In UUPS proxies, OpenZeppelin notes, "the upgrade is handled by the implementation, and can eventually be removed". Transparent proxies carry it in the proxy, so they cost more to deploy. The usage example in the NatSpec comment of the UUPSUpgradeable source at v5.4.0 shows the gate:
function _authorizeUpgrade(address) internal onlyOwner {}The whole upgrade authority is that modifier. The base function in that file is declared internal virtual, so a derived contract implementing it marks it override, as the Solidity rules on overriding virtual functions require.
The name comes from ERC-1822, an EIP now marked Stagnant, which stored the logic address at keccak256("PROXIABLE"); OpenZeppelin's version uses the EIP-1967 slot instead. OpenZeppelin warns that a UUPS-compliant implementation behind a transparent proxy might let non-admins upgrade.
New logic runs against the same storage and token balance as the old logic, so an upgrade can rewrite every rule that releases them. The ethereum.org warning on proxy access controls says an entity with access to upgrade functions can change the entire contract. In a disputed milestone with a 5% USDC stake from each side, the deposit and both stakes sit under whatever authority covers the contracts holding them.
Treat FiduWork's disclosed mechanics as a stand-in for any USDC milestone escrow and walk each step for what an upgrade could alter.
ILLUSTRATIVE ONLY. Not FiduWork's deployed design.
Funded
-> (client approves) Approved -> Paid
-> (dispute opened) Disputed
-> (panel of 3/5/7 votes, 72h window) Ruled
-> (ruling applied) Settled; stakes: 30% jurors / 70% winner
Overlay: before any arrow, Upgraded(newImplementation) can replace
the code that executes the next arrow.Every arrow is a call into the current implementation, so the diagram you audited holds only until the next Upgraded event.
Panel size, the 72-hour window and the 5% stakes are disclosed; juror selection and tie-break rules are not, so read them from the deployed contract. The Aragon-OSx panel mechanics post covers the vote. The upgrade question is timing: 72 x 3,600 = 259,200 seconds (this piece's arithmetic). Behind a shorter timelock, an upgrade scheduled after a dispute opens can execute before the panel's window closes.
The panel can have its own upgrade path. In the Aragon OSx framework, a PluginUUPSUpgradeable plugin can be replaced in place by whoever holds UPGRADE_PLUGIN_PERMISSION_ID, so an evaluator should ask which plugin type a deployed panel uses and who holds that permission.
The holder matters more than the proxy pattern, because the key is the attack surface. Private key compromises accounted for the largest share of stolen crypto in 2024, at 43.8%, per Chainalysis 2024 hacking data. Chainalysis gives that figure in a passage about centralized services; the failure mode carries over to an escrow admin key, the share does not. A single account, a signer threshold and a governance vote each fail differently.
The ethereum.org smart contract security page calls a single owner address a single point of failure, since whoever compromises its keys has the owned contract open to them. CertiK's 2022 proxy security guide gives the example. An attacker took the PAID Network proxy admin's private key, upgraded the logic, burned user tokens and minted new ones to themselves. In CertiK's words, the code itself was not vulnerable.
ethereum.org's alternative is a multisig needing signatures from a minimum number of accounts, for example 3-of-5. A threshold cannot check what signers think they approved, as CertiK's Bybit technical analysis shows. The attacker obtained three valid signatures for a transaction that replaced a multisig wallet's implementation contract and drained it, an estimated loss of about $1.46 billion. Signers saw an ordinary transfer(address, uint256) call, not an upgrade.
Chainalysis counts over $3.4 billion stolen from January through early December 2025, with Bybit alone accounting for $1.5 billion (Chainalysis review of 2025 thefts). By this piece's arithmetic, that one signing failure is about 44% of the period's total. The two firms publish different Bybit and annual figures, and both annual totals include losses at exchanges, not only contracts.
ethereum.org also suggests a DAO vote on upgrades, which only moves the question to whoever controls the DAO. In the Aragon DAO permission model, whoever holds ROOT can grant or revoke any permission, and a DAO where an EOA still holds ROOT is one that EOA fully controls. Ask who holds ROOT and the relevant upgrade permission today.
The Pausable module documentation describes an emergency stop triggered by an authorized account, and notes functions become pausable only once the modifiers are placed on them. ethereum.org notes a stop requires trusting developers not to abuse it, and suggests a vote, timelock or multisig behind it.
Check which functions carry whenNotPaused: a pause that blocks a dispute payout freezes both parties.
A timelock puts a public waiting period between scheduling an upgrade and executing it. The OpenZeppelin TimelockController reference says that, set as owner, it gives users of the controlled contract time to exit before a potentially dangerous maintenance operation, and getMinDelay() returns that delay in seconds. Against a 72-hour voting window, the comparison is direct.
OpenZeppelin describes a common setup: the timelock owns the contract, with a multisig or a DAO as sole proposer. Proposers can cancel operations they disagree with. The executor role can be given to the zero address so anyone may execute. minDelay changes only through an operation calling updateDelay, which must come from the timelock itself, so lowering the delay first waits out the current one.
OpenZeppelin publishes no default delay; any number you see was the deployer's choice.
The escrow-specific test is getMinDelay() against 259,200 seconds. Below it, an upgrade scheduled when a dispute opens can land before the vote closes. At or above it, an upgrade scheduled after a dispute opens stays visible for a full vote window.
A delay of at least 259,200 seconds is a floor, not a pass. A delay only protects someone who can exit, and money locked in a funded milestone or an open dispute may not be withdrawable on notice. An upgrade queued before a dispute opens can still execute during the vote. Watch the timelock's CallScheduled events, listed in the TimelockController event reference, and read the target and delay of each.
The cost is speed. The ethereum.org note on timelock trade-offs says timelocks give users time to exit and, in the same passage, restrict the ability to quickly patch vulnerabilities. A long delay paired with a narrow pause role is one answer.
Upgradeable-escrow failures fall into 4 groups: an implementation nobody initialized, storage that new code reads wrongly, an upgrade path that bricks itself, and a compromised key. Separately, the upgrade-risk taxonomy paper reports that four of its eight risk types are overlooked and lack mitigations, and a preliminary detection study flagged 31,407 related issues.
The OpenZeppelin guide to writing upgradeable contracts warns that an uninitialized implementation contract can be taken over by an attacker, which may impact the proxy. The fix, quoted from that page, runs in the implementation's constructor:
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}Per OpenZeppelin, _disableInitializers() emits an Initialized event the first time it runs.
Immunefi's Wormhole bugfix review shows the 2022 version of this bug. On February 24th a whitehat disclosed that the core bridge's implementation was uninitialized after a bugfix reverted its initialization, so an attacker could install their own Guardian set and upgrade. Wormhole paid a $10 million bounty; no user funds were lost. The bug relied on SELFDESTRUCT. Since EIP-6780, SELFDESTRUCT only deletes an account in its creation transaction on chains that apply it, and uninitialized implementations should still be locked.
OpenZeppelin's rule: never change the order or type of declared state variables. A removed trailing variable leaves its storage uncleared for the next one to read. The Solidity storage layout rules explain why: variables are stored contiguously from slot 0, in C3-linearized order across inherited contracts.
The namespaced storage layout standard places each namespace at keccak256(keccak256(id) - 1) & ~0xff and recommends Solidity 0.8.20 as the minimum compiler; OpenZeppelin's upgradeable contracts use it from version 5.0. Compilers do not enforce its @custom:storage-location annotation, so treat it as a claim to check.
ERC-1822 warns that if the upgrade functions are missing from a new logic contract, upgrades may stop and the proxy can become unusable. OpenZeppelin's UUPS code blocks upgrades to a non-UUPS implementation by default, but the UUPS notes in OpenZeppelin's proxy docs list two bypasses: a flag that disables the upgrade function, or an upgrade to an implementation without the check, then to one with no upgrade mechanism.
PAID and Bybit are the two shapes: a stolen key and deceived signers. The CertiK Hack3d 2025 report puts 2025 losses at $3,352,850,816 against $2,446,285,251 in 2024, about a 37.06% increase, and says that without the $1,447,063,421 Bybit incident the year would show a net decrease. By this piece's arithmetic, Bybit is 43.2% of CertiK's 2025 total. Bridges add their own upgrade bugs, covered in the cross-chain escrow economics post.
Across the 4 designs below, only an immutable contract removes the upgrade authority from the trust model. The Aragon plugin-types guide calls that a feature when code should be provably unchangeable, yet its rule of thumb is to use UUPS unless you have a specific reason to want immutability. Escrow holding a third party's funds is a strong candidate for that reason.
Aragon says whoever holds UPGRADE_PLUGIN_PERMISSION_ID, normally the DAO itself, can replace a UUPS plugin's entire logic, and users must trust that authority. CertiK advised in 2022 using a proxy only when necessary. The price of immutability is that a bug cannot be patched in place. There is a middle option. The Aragon notes on proxies and clones describe an EIP-1167 minimal proxy of about 45 bytes whose logic can never change; initialize it atomically, or it is deployed but not configured.
Platform Signal. FiduWork's beta runs on Sepolia testnet: a non-custodial USDC milestone escrow whose disputes go to an Aragon-OSx panel of 3, 5 or 7 jurors, with each side staking 5% in USDC and the pool split 30% to jurors and 70% to the winner. Whether the escrow has an upgrade path, who would hold it and any delay are not among the disclosed facts, so the verification checklist below is the method for confirming them.
Read the storage, not the marketing. Per the Ethereum JSON-RPC specification, eth_getStorageAt returns the value at a storage position of an address, at a block number or a tag such as "finalized". Reading the 3 EIP-1967 slots at two blocks shows the current implementation, admin and beacon, and whether any value differs between the two blocks.
The six checks, in order:
Call eth_getStorageAt with the escrow address, the implementation slot (0x360894a1...382bbc; the full value is in the EIP-1967 slot definitions) and "finalized". A non-zero value means a proxy, with the address in the low 20 bytes. Repeat for the admin and beacon slots and at an older block. All-zero slots rule out only the standard layout. For a transparent proxy, cross-check the admin slot against the AdminChanged event at deployment and ProxyAdmin.owner(), since the implementation can overwrite the slot.
The request uses the parameter order from the JSON-RPC page: address, storage position, block tag. <IMPLEMENTATION_SLOT> is the full implementation slot constant from the EIP-1967 specification.
curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_getStorageAt","params":["<PROXY_ADDRESS>","<IMPLEMENTATION_SLOT>","finalized"],"id":1}' \
<RPC_URL>For a transparent proxy, call owner() on the ProxyAdmin. For UUPS, read which modifier guards _authorizeUpgrade: if it is onlyOwner, call owner() on the proxy; if it uses AccessControl onlyRole, check hasRole for that role; if the source is unverified, record the gate as unknown. If the answer is a TimelockController, read getMinDelay() and the role holders; if a multisig, its threshold and signers; if an Aragon DAO, who holds ROOT and the upgrade permission. Stop at an externally owned account or a rule you can state in a sentence.
Pull Upgraded and AdminChanged logs from the proxy's deployment block, plus any Initialized event on the implementation. For a beacon proxy, replay Upgraded logs from the beacon address, where implementation changes are emitted, and read the beacon's implementation() and owner(); the proxy's BeaconUpgraded only records which beacon it follows. Because these events are SHOULD, a quiet log is inconclusive; the slot reads are the evidence.
getMinDelay() at least 259,200 seconds, with the optional admin renounced, and can a depositor exit while an upgrade is queued?FiduWork's answers to these nine questions are not among its disclosed facts. Ask at support@fiduwork.com, check replies against the FiduWork documentation hub and the chain, and treat anything you cannot read on-chain as unverified.
Compliance corner. For an EU-facing service, MiCA Article 68 requires crypto-asset service providers to keep governance arrangements, resilient and secure ICT systems, and a business continuity policy with ICT response and recovery plans (EU governance and continuity rule). The management body must assess and periodically review the effectiveness of the policies and procedures put in place to comply with these provider rules. Who can upgrade or pause a contract holding client value is the kind of control an evaluator would expect such a provider to document. Whether an escrow operator is a crypto-asset service provider at all is a question for counsel; nothing here answers it for FiduWork or any named service.
Read the escrow state machine and its trust assumptions, how Aragon-OSx juror panels settle freelance disputes, and the admin-key question asked of a pool in dispute stake insurance and slashing funds.
Audit Our Escrow Architecture. Put each question on this checklist to FiduWork's Sepolia escrow and its docs, and check the answers against the chain before you fund a milestone. Open the app.
More articles









