You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the unverified oversize-preview fallback a user setting
An NFT image too large to inline cannot be hash-verified without
unbounded buffering, and the previous behavior fell back to loading it
directly from its source URL in confirmation dialogs. Since the
response's size and type claims are attacker-controlled, that fallback
could be triggered deliberately to place unverified content in a
transaction confirmation dialog.
- The fallback is now opt-in via a new 'Show unverified previews'
switch in Settings > NFT (off by default): disabled, oversized
images simply get no preview.
- The preference is stored as nftAllowUnverifiedPreviews via the
existing prefs.yaml round-trip, so the main process reads the same
value the renderer persists (electron/utils/allowUnverifiedNftPreviews,
failing closed if the store is unreadable).
- nftGetImageDataUrl consults the policy only on the
MaxSizeExceededError path; verified data-URL previews are unchanged.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LdfCqRSBWwMpCDh1SdE24e
0 commit comments