Skip to content

v3.6.0 — Security release

Choose a tag to compare

@ORDNET ORDNET released this 13 Aug 11:45
· 17 commits to main since this release
db9c746

Four builds of security work, folded into one store release. Anyone running an
earlier build should update.

H4 — the page chose its own origin. msg.originator comes from the page, so a
site could pass originator:"https://trusted.dapp" and get three things at once:
the approval screen showed that name while the real site was asking; grants
keyed on ${_address}|${origin}|… were inherited wholesale; and
brc100-budget.decide() is keyed on origin too and auto-approves inside an
existing budget — payments up to the daily ceiling with no confirmation. The
origin now comes from sender.origin, which page script cannot set.

H7 — the BRC-100 read surface was ungated. listActions, listOutputs and
relinquishOutput had no permission check at all: any site could read the full
transaction history and every UTXO, and could loop relinquishOutput. Reads now
require per-origin consent; relinquishOutput confirms on every call and stores
no grant.

listCertificates passed its arguments in the wrong order — ('listCertificates',
args, origin) against a signature of (origin, method, args) — so the grant key
was identical for every website. Approve it on one dApp and every other dApp
inherited it.

relinquishCertificate was completely ungated: any site could permanently delete
any certificate, in a loop. relinquishOutput was gated first and the branch
beside it was missed. Both now run through one brc100RequireDestructive(),
driven by a table that a test iterates — adding something destructive without a
gate now breaks the suite.

Earlier in this series: the approval screen now shows the change address and
the miner fee (K5), on-chain content can no longer run in the extension origin
(K6), page-requested message signing refuses reserved namespaces (K7), padded
ordinals are no longer spendable as funding, and satoshi amounts are no longer
32-bit truncated.

Tests: 123 -> 192, across ten suites.

Full detail in SECURITY-FIXES-4.8.1.md, SECURITY-FIXES-4.9.0.md and
SECURITY-FIXES-4.9.2.md.