- Home
- Security Audits
- Mirror
Web3 · Smart Contract Audit
Mirror Security Audit
softstack completed a smart contract audit of Mirror's Core Contracts in November 2026, reporting 8 findings (2 medium, 3 low and 3 informational), of which 8 were resolved or mitigated before the final report. The full report is published in the softstack public audit archive.
Key facts
- Client
- Mirror
- Completed
- Chains
- Ethereum
- Languages
- Solidity
About the project
Mirror is an onchain venue for private, over-the-counter sales of spot and vesting tokens. A token holder, such as a foundation, fund or treasury, sells part of a token allocation to an institutional buyer at a discount to the market price. Trades are arranged bilaterally, without order books or custodians, so that large allocations can change hands without leaking information to the market.
Scope
Source repositorygithub.com/mirror-protocol-fi/mirror-contractsComponents reviewed
7 modules · 7 files- test/poc/EscrowForfeitSabotage.t.sol
- src/mirror/BidDepositEscrow.sol
- src/mirror/MirrorAccessController.sol
- src/mirror/MirrorAccessRegistry.sol
- BondBaseFPA.sol
- src/bases/BondBaseOFDA.sol
- src/bases/BondBaseOSDA.solsrc/mirror/BidDepositEscrow.sol
Findings
8 of 8 findings resolved before the final report.
| ID | Title | Severity | Status |
|---|---|---|---|
6.2.1 | Accepted bid deposits can be forfeited to the seller after completion is blocked by the seller or by access-policy changes Once the router accepts a bid, BidDepositEscrow.acceptBid moves the deposit to Accepted, binds it to a private market owned by the seller, and snapshots a forfeitRecipient (named in the operator- signed terms) and sellerShareBps (90% by… | Medium | fixed |
6.2.2 | A blocklisted seller or holder can freeze settlement of a hedged position Once the router accepts a bid, BidDepositEscrow.acceptBid moves the deposit to Accepted, binds it to a private market owned by the seller, and snapshots a forfeitRecipient (named in the operator- signed terms) and sellerShareBps (90% by… | Medium | fixed |
6.2.3 | Any registered wallet can squat a bid id and permanently burn it Once the router accepts a bid, BidDepositEscrow.acceptBid moves the deposit to Accepted, binds it to a private market owned by the seller, and snapshots a forfeitRecipient (named in the operator- signed terms) and sellerShareBps (90% by… | Low | fixed |
6.2.4 | The hedge pricing spec is not validated, so a position can be sold that can never settle Once the router accepts a bid, BidDepositEscrow.acceptBid moves the deposit to Accepted, binds it to a private market owned by the seller, and snapshots a forfeitRecipient (named in the operator- signed terms) and sellerShareBps (90% by… | Low | fixed |
6.2.5 | Unbounded market arrays make the BondAggregator discovery views run out of gas Once the router accepts a bid, BidDepositEscrow.acceptBid moves the deposit to Accepted, binds it to a private market owned by the seller, and snapshots a forfeitRecipient (named in the operator- signed terms) and sellerShareBps (90% by… | Low | fixed |
6.2.6 | A third party can consume a buyer's single-use fee override MirrorTeller._collectFees passes p.recipient to the fee manager as the fee identity, and MirrorFeeManager._resolve accepts an operator-signed override when o.buyer equals that identity. | Informational | fixed |
6.2.7 | A newer relayed price makes a holder's storeAndSettle bundle revert MirrorSignedOracle.storePrice treats an identical observation as a no-op and documents that older or conflicting data still fails, which it does with Oracle_NotNewer. MirrorRouter.storeAndSettle stores every push before it settles. | Informational | fixed |
6.2.8 | refundDeposit on an Accepted deposit leaves the acceptance snapshot in storage voidAcceptance clears acceptor, forfeitRecipient, purchaseDeadline, sellerShareBps and marketId and deletes the completion obligation. | Informational | fixed |
About this engagement
A smart contract audit reviews on-chain code for flaws an attacker could exploit. Engineers trace how assets move through the contracts, check who can call privileged functions, and test the arithmetic, external calls and upgrade paths. Each finding is rated by severity, and fixes are re-checked before the final report.
How softstack runs smart contract auditsMethodology
Review process
Scoping and threat modelling
The commit hash is frozen and the attack surface is mapped: asset flows, trust assumptions, privileged roles and the external systems the code depends on.
Automated analysis
Static analysers sweep the full codebase to surface known weakness patterns, unreachable states and deviations from established conventions.
Manual code review
Independent engineers read the code line by line, concentrating on business logic, access control, arithmetic and the handling of external calls.
Adversarial testing
Property-based fuzzing and invariant tests attack the assumptions the protocol relies on, targeting states that ordinary unit tests never reach.
Reporting
Every finding is documented with a severity rating, its impact, the steps to reproduce it and a concrete remediation the team can act on.
Remediation verification
Submitted fixes are re-reviewed against the original finding, and the final report records the resolved state of each one.
FAQ
Mirror was audited by softstack GmbH, a German Web3 security and software company based in Flensburg and certified to ISO/IEC 27001 by TÜV SÜD. softstack completed a smart contract audit for Mirror in November 2026. The full report is linked on this page and published in the softstack public audit archive.
The review reported 8 findings: 2 medium, 3 low and 3 informational. 8 of 8 were resolved or mitigated before the final report.
7 source files were reviewed in github.com/mirror-protocol-fi/mirror-contracts. The published report lists every file covered.
This report covers the code as reviewed in November 2026. Any code changed after that point is outside the reviewed scope.
Related audits
Browse all security auditsDisclaimer
This audit represents a point-in-time security assessment of the reviewed codebase and is intended for informational purposes only. While Softstack applies industry-standard security review methodologies, no audit can guarantee the absence of vulnerabilities, bugs, or other security risks. This report does not constitute financial, legal, regulatory, or investment advice, nor does it endorse the project, its business model, products, or services. Security is an ongoing process, and we strongly recommend conducting a new assessment following any material code changes or at least every 6 months to address newly emerging threats, vulnerabilities, and ecosystem developments.