# Bridge smart contract audit: is the message real before the money moves?

URL: https://shield.quillaudits.com/use-cases/bridges/

A bridge smart contract audit checks the one decision every bridge makes: whether a message from another chain is real before it releases or mints funds. That covers the proof or signature check, the trusted roots and keys behind it, replay protection, and who can upgrade or reconfigure those contracts. QuillShield audits the Solidity side of a bridge in a Foundry project, then checks each pull request against that audit.

Last updated 3 December 2026. 7 minute read. By the QuillAudits Team.

## What goes wrong in bridges?

A bridge holds the collateral for every token it minted elsewhere, so one wrong yes can release all of it. The three incidents below all come back to message verification and the settings around it. These are the areas a review covers:

- **Message and proof validation.** The contract that accepts a message as proven is the most valuable code in the bridge. A wrong default, a missing check on a root or a skipped signature lets any message through. See [cross-chain message validation](https://shield.quillaudits.com/learn/vulnerabilities/cross-chain-message-validation/) and Merkle proof vulnerabilities.
- **What counts as proven.** Roots, validator keys and thresholds are settings, and whoever can change them can approve any message. The [access control](https://shield.quillaudits.com/learn/vulnerabilities/access-control/) page shows how a privileged call can be reached one step away.
- **Replay.** A message or signature that works twice, or on a second chain, pays twice. See [signature replay](https://shield.quillaudits.com/learn/vulnerabilities/signature-replay/).
- **Upgrades and initialization.** A new implementation, or a value passed during an upgrade, can change what the bridge trusts. See [uninitialized proxy](https://shield.quillaudits.com/learn/vulnerabilities/uninitialized-proxy/) and upgradeable contract risks.
- **Calls the bridge makes for the user.** A bridge that executes a call named in a message is an arbitrary external call that may reach its own admin functions.
- **Accounting between chains.** What is minted on one side must never exceed what is locked on the other, and a token that calls back on transfer can [re-enter](https://shield.quillaudits.com/learn/vulnerabilities/reentrancy/) the release path.

## What has gone wrong before?

| Protocol | Nomad bridge |
| --- | --- |
| Date | 1 August 2022 |
| Chain | Cross-chain (Nomad bridge contracts) |
| Loss | about $190M |
| What happened | An earlier routine upgrade had marked the zero hash as a trusted root, which is also the value the contract returns for a message nobody has proven. From then on, an unproven message looked proven to the contract that released funds. The loss came from one value passed during a routine upgrade. |
| Sources | [Immunefi](https://immunefi.com/blog/bug-fix-reviews/hack-analysis-nomad-bridge-august-2022/) |

Two more cases show the same seam from different angles. The Poly Network cross-chain manager would execute a call named in a cross-chain message, and it owned the contract that stored the public keys of the keepers. According to analyses by [SlowMist](https://slowmist.medium.com/the-root-cause-of-poly-network-being-hacked-ec2ee1b0c68f) and [CertiK](https://www.certik.com/blog/poly-network-exploit), an attacker sent a message whose call replaced those keys with their own, then moved about $610M in August 2021. On the Solana side of Wormhole, the signature check used a deprecated function that [did not check that the account passed in was the real sysvar account](https://kudelskisecurity.com/research/quick-analysis-of-the-wormhole-attack), and on 2 February 2022 an attacker minted 120,000 wrapped ETH, [worth over $320M according to CertiK](https://www.certik.com/blog/wormhole-bridge-exploit-incident-analysis).

| Bridge | When | Loss | What it trusted |
| --- | --- | --- | --- |
| [Nomad](https://immunefi.com/blog/bug-fix-reviews/hack-analysis-nomad-bridge-august-2022/) | 1 August 2022 | about $190M | The zero hash, marked as a trusted root by an earlier routine upgrade. |
| [Poly Network](https://slowmist.medium.com/the-root-cause-of-poly-network-being-hacked-ec2ee1b0c68f) | August 2021 | about $610M | A call named in a cross-chain message, which could reach the contract holding the keys of the keepers. |
| [Wormhole](https://www.certik.com/blog/wormhole-bridge-exploit-incident-analysis), Solana side | 2 February 2022 | 120,000 wrapped ETH, worth over $320M | An account passed in as the sysvar account, with no check that it was the real one. |

In all three, the bridge accepted something as proven that nobody had proven, and that is the question a bridge audit asks of every path that releases funds. The Wormhole flaw was in a Rust program on Solana, outside Solidity, and the [Rust audit page](https://shield.quillaudits.com/languages/rust/) covers it.

## Which bug classes should a bridge review cover?

| Bug class | Where it shows up in a bridge |
| --- | --- |
| [Cross-chain message validation](https://shield.quillaudits.com/learn/vulnerabilities/cross-chain-message-validation/) | The receiver that marks a message as proven: roots, proofs, signatures and thresholds. |
| [Signature replay](https://shield.quillaudits.com/learn/vulnerabilities/signature-replay/) | Messages or attestations accepted twice, or on a second chain. |
| Merkle proof vulnerabilities | Proof checks that accept a default, empty or forged value. |
| [Access control](https://shield.quillaudits.com/learn/vulnerabilities/access-control/) | Who can set roots, rotate validator keys, change thresholds or pause. |
| Arbitrary external call | Calls the bridge executes for a message, and what those calls can reach. |
| [Uninitialized proxy](https://shield.quillaudits.com/learn/vulnerabilities/uninitialized-proxy/) | Implementations or proxies left open to initialization after a deployment or an upgrade. |
| Upgradeable contract risks | Values passed during an upgrade that change what the bridge trusts. |
| [Reentrancy](https://shield.quillaudits.com/learn/vulnerabilities/reentrancy/) | Token callbacks during a release, before the message is marked as spent. |
| [Denial of service](https://shield.quillaudits.com/learn/vulnerabilities/denial-of-service/) | A message that can never execute, or checks on one side that block the other. |
| Centralization risk | A small validator set or one admin key that can approve any message. |

## How do a full audit and pull request checks fit a bridge team?

Put the Solidity side of the bridge in scope as one codebase: the message receiver and verifier, the token vault or minter, rate limits, pause logic and the contracts that hold admin and upgrade roles. QuillShield reviews them together, so a root set by an admin function is read with the verifier that trusts it. Attach your trust assumptions as context before the audit: who signs or relays, the threshold, who can change either, plus the whitepaper and any earlier audit reports.

QuillShield supports Solidity, for Foundry projects, today. Off-chain relayers and validators, and programs on non-EVM chains, are outside what it reviews, and the [Rust](https://shield.quillaudits.com/languages/rust/), [Move](https://shield.quillaudits.com/languages/move/) and [Cairo](https://shield.quillaudits.com/languages/cairo/) pages cover those sides and the manual audit route.

Each finding is challenged by a separate reviewer agent that tries to disprove it before you see it. What holds up arrives with the exact lines, the impact, a recommended fix and, on a full audit, the proof of concept result, which shows whether a forged message gets through before you touch the verifier.

Bridges change through upgrades. An upgrade that arrives as a pull request gets a check against the security graph from the audit, and five checks come with each full audit of a GitHub or GitLab.com repository. When the check is required under GitHub branch protection or rulesets, a High or Critical finding, or one at the threshold you set, holds the merge. The guide to [reviewing changes since your last audit](https://shield.quillaudits.com/guides/review-changes-since-your-last-audit/) covers what to check by hand on an upgrade.

QuillShield does not replace a manual audit, and a bridge is the clearest case for one. [Request a manual audit from QuillAudits](https://www.quillaudits.com/smart-contract-audit) before launch and before any upgrade that changes what counts as proven, and use QuillShield for every change in between.

## What does a bridge audit cost?

The price follows the Solidity in scope, counted without comments or blank lines, from $49. The [pricing page](https://shield.quillaudits.com/pricing/) lists 5,000 lines at $1,169 and 10,000 lines at $1,899 as of November 2026, and quotes anything above 40,000 lines by hand. Because bridges change through upgrades, the pull request checks matter here: after the five that come with each full audit, a check costs $5 for up to 50 added lines of Solidity plus $0.10 for each added line after that, so a change that adds 150 lines costs $15. Sign-up is free. New accounts get $50 in credit, good for up to half of an order.

**[Run a full audit](https://shield.quillaudits.com/register) of the Solidity side of your bridge, or [talk to an auditor](https://calendly.com/akshadh-a-quillaudits/30min) about a manual review of the whole system.**

## What should you check before you launch or upgrade a bridge?

- Which function marks a message as proven, and what does it return for a message nobody has proven?
- Can a default value, such as zero or an empty root, ever pass as trusted?
- Who can set roots, rotate keys or change the threshold, and does each change wait behind a timelock?
- Is each message marked as spent before tokens are released, and bound to one source chain, one destination and one nonce?
- Can any call the bridge executes for a user reach the admin functions of the bridge itself?
- Can the total minted on the destination ever exceed the total locked on the source?
- Does the initializer of every upgrade run once, in the upgrade transaction, with the values you meant to pass?
- If a message can never execute, how do users get their funds back?

## FAQ

### Which part of a bridge needs the closest review?

Review the code that accepts a message as proven most closely, together with the code that changes what counts as proven: roots, keys and thresholds. The Nomad and Poly Network losses both came from that pair.

### Can QuillShield audit a bridge that also has Solana, Move or Cairo code?

It audits the Solidity side, in a Foundry project. The programs on non-EVM chains need a manual audit, which you can request from QuillAudits.

### Does an audited bridge need another review after an upgrade?

An audited bridge needs every upgrade checked against the last audit, and a manual review when the upgrade changes what the bridge trusts. [Nomad's bridge lost about $190M](https://immunefi.com/blog/bug-fix-reviews/hack-analysis-nomad-bridge-august-2022/) on 1 August 2022 because an earlier routine upgrade had marked the zero hash as a trusted root.

### How much does a bridge audit cost with QuillShield?

It follows the lines of Solidity in scope: as of November 2026, 5,000 lines cost $1,169 and 10,000 lines $1,899, and above 40,000 lines the price is quoted by hand.

## Sources

- [Hack analysis: Nomad bridge, August 2022, Immunefi](https://immunefi.com/blog/bug-fix-reviews/hack-analysis-nomad-bridge-august-2022/) · checked 20 November 2026
- [The root cause of Poly Network being hacked, SlowMist](https://slowmist.medium.com/the-root-cause-of-poly-network-being-hacked-ec2ee1b0c68f) · checked 24 November 2026
- [Poly Network exploit, CertiK](https://www.certik.com/blog/poly-network-exploit) · checked 24 November 2026
- [Quick analysis of the Wormhole attack, Kudelski Security](https://kudelskisecurity.com/research/quick-analysis-of-the-wormhole-attack) · checked 3 December 2026
- [Wormhole bridge exploit incident analysis, CertiK](https://www.certik.com/blog/wormhole-bridge-exploit-incident-analysis) · checked 3 December 2026
