A batch of low-severity informational notes from the frontend and wallet audit. None of these is individually a vulnerability; they are grouped here for the team’s awareness.
W6x-T1: Float math in tip computation (tip * Math.pow(10, decimals))
Component: ghost-extension-wallet @ 66bd207, src/background/createBackgroundRpc.ts:174: const tipWithDecimals = BigInt(tip * Math.pow(10, decimals)). The tip (user input in the popup, a number) is multiplied by Math.pow(10, decimals) in floating point before conversion to BigInt. With decimals = 18 (the only registered chain, src/constants.ts), Math.pow(10,18) is exactly representable as a double, so small integer tips are exact. But fractional/large tips can lose base-unit precision (e.g. 0.1 * 1e18 is not exactly 1e17 in IEEE-754): the user pays a slightly different tip than typed. Impact: deviation of a few base units on the fee; self-inflicted (the tip is typed by the user in the popup). Not a fund-loss path. Suggestion: precise string-based decimal parsing (shift the comma as a string) instead of float math. Verification: VERIFIED. Severity: Informational.
W6a-T3: APY displays “Infinity” when reward distribution is zero
Component: ghost-dao-interface @ a911859, src/containers/Stake/components/Metric.jsx:28-32 and src/hooks/staking/index.js:59-60: if (apy === 0) apy = Infinity;. When epoch.distribute = 0 (no rewards), the UI shows “Infinity”/“Infinity% APY” though the real yield is 0%. Display only, specific trigger condition. Suggestion: show 0% (or a dash). Verification: VERIFIED. Severity: Informational.
W6a-T5: Hardcoded 1095 epochs/year assumption
Component: ghost-dao-interface @ a911859, src/hooks/staking/index.js:59, Metric.jsx:31: apy = 100 * (Math.pow(1 + rate, 1095) - 1) assumes an 8-hour epoch, though useEpoch() already reads epoch.length on-chain. If the chain’s epoch length is not 8 hours, all staking APYs are proportionally wrong. On-chain impact not verified (outside static scope): informational / theoretical risk. Suggestion: replace 1095 with (365*86400) / epoch.length. Verification: THEORETICAL-RISK.
W6a-T6: Weak DEX deadline/slippage validation; /0.99 native-price fudge
Component: ghost-dao-interface @ a911859, src/containers/Dex/Dex.jsx:197-207, src/hooks/prices/index.js:73. Deadline stores any string (negative → revert, safe; huge → longer MEV window, user choice); negative slippage passes (parseFloat("-5") <= 100) → tighter amountBMin → revert (fail-safe); display-only native price inflated ~1.01% via /0.99 in one branch; the price aggregator uses Promise.any (first-response-wins from hardcoded CEXes, not a median: display-only). All fail-safe or display-only. Suggestion: validate positive integer for deadline, reject negative slippage, make the /0.99 treatment consistent. Verification: VERIFIED. Severity: Informational.
W6c-T3: JSON.parse(localStorage.getItem(...)) without try/catch in 4 places
Component: ghost-lite @ a420393, Transactions.tsx:41, AddressBook.tsx:69, Nominations.tsx:186. Corrupt values (only writable by the same origin/extension/devtools) → throw during render → app crash (self-DoS). No sensitive data in localStorage. Suggestion: try/catch + [] fallback. Verification: VERIFIED. Severity: Informational.
W6c-T4: Google Analytics active in the wallet app
Component: ghost-lite @ a420393, src/main.tsx:3,9, src/components/Sidebar.tsx:7,88. Every navigation sends a pageview (route names only, no query strings). Privacy/disclosure note, not a vulnerability. Verification: VERIFIED. Severity: Informational.
W6c-T5: No Content-Security-Policy
Component: ghost-lite @ a420393, index.html. No CSP meta/header. General hardening, not an exploit finding. Verification: VERIFIED. Severity: Informational.
W6c-T6: Amount conversion via float, fail-closed
Component: ghost-lite @ a420393, Transactions.tsx:73-79, Nominations.tsx:262-268: BigInt(Number(amount) * Math.pow(10, tokenDecimals)): fractional input like 0.1 with 18 decimals → non-integer float → BigInt() throws → caught → 0n → button disabled. Fail-closed (the user cannot sign a wrong amount), UX only. Suggestion: precise string decimal parsing. Verification: VERIFIED. Severity: Informational.
W6c-T7: RPC/chain trust model
Component: ghost-lite @ a420393. No suspicious hardcoded RPC/WS URLs (all connections go through the extension wallet; chain identity = genesis hash). src/components/chainspecs/casper_dev.ts is dead code (never passed to addChain). Suggestion: remove to reduce confusion. Verification: VERIFIED. Severity: Informational.
W6b-N1: Non-standard EIP-2335 cipher
Component: ghost-extension-wallet @ 66bd207, src/background/keystore/keystoreV4.ts:78-104. create() uses xsalsa20-poly1305 though EIP-2335 specifies aes-128-ctr (the code supports DECRYPTING aes-128-ctr for compatibility but never produces it). Not a vulnerability: xsalsa20-poly1305 is a sound AEAD. But it breaks interoperability with standard EIP-2335 tooling. Verification: VERIFIED. Severity: Informational.
W6b-N2: Minor non-security bugs
Component: ghost-extension-wallet @ 66bd207. AddAccount.tsx:91-93 hardcodes sr25519CreateDerive for the derivation-path pubkey even when the user picked Ed25519/Ecdsa (wrong meta pubkey for non-sr25519 schemes); several setKeystore(...) calls are not awaited (keyring.ts:121,142,165,189,203) → potential write race; the sign popup opens before the lock check (approving while locked fails with “keyring must be unlocked”). Verification: VERIFIED. Severity: Informational.