Sample audits · Open-source projects and documentation, eight more

horizontalsystems/unstoppable-wallet-android

An open-source multi-chain wallet for Android.

Summary card for this audit: 90 findings after review, 0 High, 5 Medium, 83 Low, 2 Info
Auditedhorizontalsystems/unstoppable-wallet-android at commit b6ced7d1b2eceae84488bcba90e569711c38000e
Date11 October 2026 (audited again; first audit 11 October 2026)
How it ranlocal run on our workstation, full audit, Standard review
Verdict after reviewPass with notes (Fail if a High finding remains after review, otherwise Pass with notes)
0
High after review
5
Medium after review
83
Low after review
2
Info after review
1
excluded on review

[Update 20 November 2026. We compared the 90 findings after review, audited at commit b6ced7d, with the default branch develop at 818930a2 (20 November 2026, 10:09 UTC, 316 commits later). Of these 90 findings after review, each counted once: 2 fixed on develop (36, 37), 3 partly fixed (44, 59, 67), 2 with the cited code removed (40, 74), 35 with the cited code unchanged and 48 still present on develop (2 + 3 + 2 + 35 + 48 = 90). The status of each is shown under it. The numbers are this page's; the first audit numbers its findings differently (see the comparison table below). Every finding after review was compared between the audited commit and develop at 818930a2. A finding whose cited file is byte-identical is marked "Cited code unchanged". Every other finding was reviewed finding by finding in the code at 818930a2. Our GitHub issue #9913 was closed with the reason 'completed' on 20 November 2026 at 06:06 UTC; when we checked at 12:53 UTC the same day, it had no comment and no linked commit. This page does not claim that the changes below respond to our report, or that they do not.]

Compared with the first audit

Same commit as the first audit: the project's default branch has no later commits (checked 11 October 2026), so nothing could have been fixed upstream in between. Each finding of the first audit (11 October 2026) was checked again against the code audited now. 69 findings in the first audit; 69 still open (37 found again, 32 not reported again but still present). This audit has 90 findings after review, 48 of them new.

First auditFindingReviewed rating thenNowIn this audit
#1Raw Solana transactions from swap providers signed without decodingMediumStill opennot reported again
#2Custom SPL token decimals and symbol from off-chain APILowStill opennot reported again
#3WC Solana summary does not identify the tokenLowStill open#1
#4Missing swap output amount shown as zeroLowStill opennot reported again
#5Backup encryption hand-assembledLowStill open#5
#6Raw exception text shown to usersLowStill open#3, #4
#7Local-network permission not declared for API 37LowStill opennot reported again
#8Unparseable payment amount becomes zeroLowStill open#6
#9TonConnect deep links not de-duplicatedLowStill opennot reported again
#10Name-resolution caches use check-then-get on plain mapLowStill opennot reported again
#11TVL view-item cache keyed by hashCodeLowStill open#19
#12Preference keys have no naming schemeLowStill open#17
#13Material 2 theme root with Material 3 componentsLowStill open#13
#14Scroll-to-top triggered from inside list builderLowStill open#10, #11
#15Raw colour literals duplicatedLowStill open#14
#16Day and night themes set different attributesLowStill open#15
#17Theme-to-night-mode mapping in two placesLowStill opennot reported again
#18Account import publishes only imported accountsLowStill open#77
#19Transaction adapter map cleared and refilled in placeLowStill opennot reported again
#20XRP and THORChain kit managers not synchronised on provider changeLowStill open#82
#21Restored favourites left out of manual sort orderLowStill open#21
#22Backup restore writes selected nodes directly to storageLowStill open#22
#23Connectivity state keeps networks lost in backgroundLowStill opennot reported again
#24Pending swap records polled every 30 s with no limitLowStill opennot reported again
#25Spam verdicts cached by transaction hash onlyLowStill opennot reported again
#26Swap status written by two parties without ownership checkLowStill opennot reported again
#27Active account change skipped based on id aloneLowStill opennot reported again
#28Spam-hiding condition copied into each readerLowStill open#54
#29Account record columns carry an unchecked invariantLowStill open#27
#30Spam rows can be stored without an addressLowStill opennot reported again
#31Spam threshold duplicated as SQL literalLowStill opennot reported again
#32Unused preference accessors remainLowStill opennot reported again
#33Bookkeeping after broadcast can report send as failedLowStill opennot reported again
#34Contacts file overwritten in placeLowStill open#83
#35Contacts map shared across threadsLowStill open#84
#36QR images decoded at full resolutionLowStill open#32
#37Import files read without size cap on main threadLowStill open#35
#38Swap provider file mixes API, mapping, per-chain buildingLowStill open#44
#39Transaction view-item factory holds every chain's converterLowStill open#43
#40View model takes a platform UriLowStill opennot reported again
#41Send view model does not enforce a single send itselfLowStill opennot reported again
#42Cross-chain pay and private send duplicate send sequenceLowStill opennot reported again
#43QR-scan and paste actions copy-pastedLowStill opennot reported again
#44Fee and spam thresholds compiled inLowStill open#40, #41
#45User-visible text only changeable by a releaseInfoStill opennot reported again
#46Auto-enable copied per chain, only TON filters scam tokensLowStill opennot reported again
#47Reproducible-build check script no longer matches buildLowStill opennot reported again
#48Release workflows do not run tests or lintLowStill opennot reported again
#49EVM helper in EVM module forces chain-to-chain dependencyLowStill open#55
#50Implicit return@let in nested lambdasLowStill opennot reported again
#51Leftover debug logs at error levelLowStill open#56
#52Failed exchange-rate fetches retried and logged on every UI callLowStill opennot reported again
#53Chain parity test checks hand-copied registrationLowStill opennot reported again
#54Release APKs published without checksum filesLowStill open#60
#55Build script overwrites existing APK silentlyLowStill opennot reported again
#56Third-party API keys and tokens committedLowStill open#62
#57Auto-lock bypass by setting clock backLowStill opennot reported again
#58Backup scrypt cost unboundedLowStill open#31
#59Server-built EVM, Stellar, TON swap transactions signed uncheckedMediumStill open#67
#60Subscriptions wiped before refresh; failed purchase launch hangsLowStill open#38, #68
#61Malformed WC Stellar XDR crashes walletLowStill open#33
#62TonConnect confirm can crash, approves unsent txMediumStill open#71
#63Custom Monero nodes always added as trustedLowStill opennot reported again
#64Zano custom nodes accept plain httpLowStill open#73
#65Zano alias resolution trusts selected nodeLowStill opennot reported again
#66personal_sign signs different bytes than sentLowStill open#70
#67Accounts that fail to decode silently disappearLowStill open#64
#68Wallet reload deletes then re-adds in separate writesLowStill open#80
#69Loading contacts drops unknown addressesLowStill open#23

[Update 20 November 2026: the states in this table are as checked on 11 October 2026 at the audited commit. For the state on develop at 818930a2, see the update above and the line under each finding.]

How to read this page

Each finding keeps the number it has in the audit report. The rating shown first is the one after review; the first automated rating is listed with it. 44 findings were first rated Medium or High; 5 of them are Medium or High after review. Text marked "From the report" is quoted from the audit report; fixes are suggestions and were not tested. Code locations link to the file and line at the audited commit.

Medium after review (5)

63. Medium PIN lock fails open when the stored PIN cannot be decrypted
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence
SecretString(App.encryptionManager.decrypt(value))
} catch (e: Exception) {
    null
Why it matters

PinDbStorage.isLastLevelPinSet returns passcode != null. The keystore key requires user authentication and can throw, and any such decryption error makes the app believe no PIN is set. AppLockManager reads this once at construction, so the app can start unlocked.

Suggested fix, not tested

Treat a PIN that cannot be decrypted as "set and locked", or store a separate non-secret "PIN enabled" flag.

On develop at 818930a2 (20 Nov 2026): Still present.

67. Medium Server-built swap transactions are signed without a local check against the quote
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#59)
From the report
Evidence
to = signable.to ?: throw IllegalStateException("No tx `to`"),
value = BigInteger((signable.value ?: "0x0").stripHexPrefix(), 16),
input = (signable.data ?: "0x").hexStringToByteArray()

The 1inch response is used the same way in OneInchProvider.kt:165.

Why it matters

A compromised or mis-served API response could get an arbitrary contract call or deposit address signed. Only the THORChain memo destination is checked today.

Suggested fix, not tested

Before signing, check the target against the router or allowlist, the value against the input amount, and the deposit address against the quote.

On develop at 818930a2 (20 Nov 2026): Partly fixed. A new check compares the target and call data with the route for THORChain deposit routes only; other server-built swap transactions are still signed without a local check. The 1inch provider the finding also cited was removed. Now at walletkit/src/main/java/io/horizontalsystems/walletkit/modules/multiswap/providers/USwapProvider.kt:1010.

71. Medium TON Connect confirm reports success before signing and sending, and failures crash the app
First rating: Medium · Reviewed rating: Medium · Review: confirmed · also in the first audit (#62)
From the report
Evidence
viewModelScope.launch(Dispatchers.Default) {
    val boc = transactionSigner.sign(sendRequestEntity, tonWallet)
    tonKitWrapper?.tonKit?.send(boc)
Why it matters

The screen shows "Done" as soon as confirm() returns. A network error during the send is uncaught in the coroutine and crashes the app. Closing the screen can cancel a send the user was told succeeded.

Suggested fix, not tested

Await signing, sending and approval inside error handling, in a scope that outlives the screen. Report success only after the broadcast succeeds, and reject the request to the dApp on failure.

On develop at 818930a2 (20 Nov 2026): Still present.

76. Medium System font size is overridden for every screen
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence
LocalDensity provides Density(currentDensity.density, fontScale = 1f),
Why it matters

Users who need large text cannot get it on amount and address screens.

Suggested fix, not tested

Keep the system font scale. Cap it at a documented maximum if some layouts break.

On develop at 818930a2 (20 Nov 2026): Still present. The code moved to the designkit module. Now at designkit/src/main/java/io/horizontalsystems/designkit/theme/Theme.kt:104.

85. Medium Paid-action settings are stored under obfuscated class names in release builds
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
From the report
Evidence
private val IPaidAction.key: String
    get() = this::class.simpleName ?: toString()
Why it matters

Release builds are minified, and no keep rule covers the subscriptions classes. The stored keys never match the literal defaults ("ScamProtection", "SwapProtection"), so the protection toggles misreport or reset.

Suggested fix, not tested

Give each paid action an explicit, stable string key.

On develop at 818930a2 (20 Nov 2026): Still present.

Low after review (83)

1. Low Solana token transfers are shown without their token and in raw units
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#3)
From the report
Evidence
TOKEN_PROGRAM, TOKEN_2022_PROGRAM ->
    when (val discriminator = data.firstOrNull()?.toInt()?.and(0xFF)) {
        3 -> if (data.size >= 9) { transfers.add(Transfer(false, u64LE(1), null, payer = accountAt(2), destination = accountAt(1)))
Why it matters

The summary of a dApp-built Solana transaction decodes token transfers by instruction shape only. The mint is never read: for TransferChecked it is account 1, and for Transfer it must be resolved from the source account. Plain Transfer amounts are shown in raw base units. A worthless token and a valuable one look the same, so the user cannot tell what they are approving.

Suggested fix, not tested

Resolve the mint and show its symbol or address with a decimal-adjusted amount. If the mint cannot be resolved, label the amount as "unknown token, raw units" and add a warning. Treat Token-2022 mints that have transfer-fee or transfer-hook extensions as unknown instructions.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

2. Low eth_signTransaction fails on requests without gas or nonce and shows a class name
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
HudHelper.showErrorMessage(view, t.javaClass.simpleName)
// WCSignEthereumTransactionRequestViewModel.kt:99-100
val gasData = gasData ?: throw WCSessionManager.RequestDataError.InvalidGasPrice
val nonce = nonce ?: throw WCSessionManager.RequestDataError.InvalidNonce
Why it matters

dApps often leave gas and nonce to the wallet. These requests fail, the user sees an internal class name such as "InvalidGasPrice", and the dApp's request is left pending.

Suggested fix, not tested

Fill in a missing gas price, gas limit and nonce from the node, as the eth_sendTransaction path already does. Map the remaining errors to localized messages, and reject the request after an error.

On develop at 818930a2 (20 Nov 2026): Still present.

3. Low Raw exception text and class names are shown to users
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#6)
From the report
Evidence
else -> t.message ?: t.javaClass.simpleName

The same pattern appears in SendV2Screen.kt:346, BackupLocalPasswordViewModel.kt:187, RestoreLocalPage.kt:197, CautionViewItem.kt:18, WcRequestScreen.kt:68, WCSessionViewModel.kt:385 and 539, TonConnectSendRequestScreen.kt:110 and 135, and TonConnectNewViewModel.kt:77 and 107.

Why it matters

Users get untranslated technical text they cannot act on.

Suggested fix, not tested

Map known failure types to localized strings. Use one generic localized fallback for everything else, and log the details.

On develop at 818930a2 (20 Nov 2026): Still present.

4. Low Hard-coded English keystore error toast
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#6)
From the report
Evidence
Toast.makeText(App.instance, "Issue with Keystore", Toast.LENGTH_SHORT).show()
Why it matters

The message is not translated and does not tell the user what to do.

Suggested fix, not tested

Use a string resource that explains the next step, for example re-setting the screen lock or restarting the app.

On develop at 818930a2 (20 Nov 2026): Still present.

5. Low Hand-built MAC for backup files, with overlapping encryption and MAC key bytes
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#5)
From the report
Evidence
System.arraycopy(derivedKey, 16, result, 0, 16)
System.arraycopy(cipherText, 0, result, 16, cipherText.size)
return keccak256(result)
Why it matters

The AES-CTR key is the full 32-byte derived key, and its second half is reused as the MAC key. The scheme is assembled by hand rather than taken from a standard authenticated mode. A single Cipher instance is also shared across calls.

Suggested fix, not tested

Use AES-GCM or ChaCha20-Poly1305 for new backup versions. If the current layout must stay for compatibility, use derivedKey[0..16] as the AES key, and create a new Cipher for each call.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

6. Low An unparsable payment amount silently becomes zero
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#8)
From the report
Evidence
val amount = assetAmount.toBigDecimalOrNull() ?: BigDecimal.ZERO
Why it matters

A malformed merchant quote produces a zero-value payment that the user can still pay gas for.

Suggested fix, not tested

Treat an invalid amount as an error and keep the pay button disabled.

On develop at 818930a2 (20 Nov 2026): Still present.

7. Low Test signing key and passwords committed and used for CI flavors
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
storeFile = file("./test.keystore")
storePassword = "test…"
signingConfig = signingConfigs.getByName("test")
Why it matters

The ci and fdroidCi variants, which are distributed to testers, are signed with a key anyone can use. A lookalike APK can therefore carry the same signature.

Suggested fix, not tested

Keep that key out of every distributed variant. Use per-developer debug keys, and verify the signing certificate of release artifacts.

On develop at 818930a2 (20 Nov 2026): Still present.

8. Low Transitive R classes across many resource-bearing modules
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
android.nonTransitiveRClass=false
Why it matters

With more than 20 modules and flavors, a duplicate resource name silently overrides another one.

Suggested fix, not tested

Enable non-transitive R classes and give each module a resource prefix.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

9. Low No protection against taps through overlay windows
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
setContent {
    ComposeAppTheme {
        Nav3(EntryPage)
Why it matters

We searched the whole source tree for filterTouchesWhenObscured, FLAG_WINDOW_IS_OBSCURED and setHideOverlayWindows and found none of them. Another app's overlay can cover the send-confirm, PIN keypad or WalletConnect approve buttons, and the user's taps still reach those buttons (tapjacking).

Suggested fix, not tested

Enable obscured-touch filtering on the confirm, unlock and approval screens. On API 31 and later, also call Window.setHideOverlayWindows(true) on those screens.

On develop at 818930a2 (20 Nov 2026): Still present.

10. Low Scroll-to-top launched from inside the list builder
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#14)
From the report
Evidence
if (scrollToTop) {
    coroutineScope.launch {
        listState.scrollToItem(0)

The same pattern appears in CoinListComponents.kt:256, CoinListOrderable.kt:149, EarnScreen.kt:252 and CoinMarketsScreen.kt:169.

Why it matters

The coroutine is a side effect inside a builder that Compose may run again. The scroll also happens after the new filter or sort state has already been applied.

Suggested fix, not tested

Scroll from a LaunchedEffect keyed on the filter or sort change, and scroll before applying the state.

On develop at 818930a2 (20 Nov 2026): Still present.

11. Low One-shot scroll flag reset by a state write during composition
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#14)
From the report
Evidence
CoinMarketList(uiState.items, scrollToTopAfterUpdate)
if (scrollToTopAfterUpdate) {
    scrollToTopAfterUpdate = false

The same pattern appears in EarnScreen.kt:167, MarketFavoritesScreen.kt:185, MarketFiltersResultsPage.kt:156, MarketPlatformPage.kt:198 and MarketSectorPage.kt:166.

Suggested fix, not tested

Consume the flag in a LaunchedEffect that scrolls first and then clears the flag.

On develop at 818930a2 (20 Nov 2026): Still present.

12. Low Two gesture detectors own the chart cursor and drag cancel is not handled
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
.pointerInput(Unit) {
    detectDragGestures(
        onDrag = { change: PointerInputChange, _: Offset -> selectedX = change.position.x },
Why it matters

A tap detector and a drag detector both write selectedX, and nothing clears it when a drag is cancelled. The cursor can stay stuck on screen. EtfPage.kt:458-469 repeats the pattern.

Suggested fix, not tested

Use one pointerInput with awaitEachGesture that sets the cursor on down and move, and clears it on up or cancel.

On develop at 818930a2 (20 Nov 2026): Still present.

13. Low Material and Material3 components mixed in the same screens
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#13)
From the report
Evidence
import androidx.compose.material.Icon
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberModalBottomSheetState
Why it matters

23 files mix the two libraries, but the theme sets up only the old MaterialTheme. Material3 parts therefore miss the app's colors, ripple and shapes.

Suggested fix, not tested

Pick one library for each screen and provide a matching theme.

On develop at 818930a2 (20 Nov 2026): Still present.

14. Low Score colors hard-coded and duplicated
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#15)
From the report
Evidence
OverallScore.Excellent -> Color(0xFF05C46B)
OverallScore.Good -> Color(0xFFFFA800)
OverallScore.Fair -> Color(0xFFFF7A00)

The same map is repeated in OverallScoreInfoPage.kt:76-81.

Suggested fix, not tested

Define these colors once as theme tokens.

On develop at 818930a2 (20 Nov 2026): Still present.

15. Low Literal highlight color in both day and night themes
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#16)
From the report
Evidence
<item name="colorControlHighlight">#6E7899</item>

The same literal is in values-night/themes.xml:14.

Suggested fix, not tested

Reference a named color resource from both themes.

On develop at 818930a2 (20 Nov 2026): Still present.

16. Low Chart gradients use literal colors defined twice
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
var trendUpGradient = GradientColor(Color.parseColor("#416BFF"), Color.parseColor("#13D670"))
var trendDownGradient = GradientColor(Color.parseColor("#7413D6"), Color.parseColor("#FF0303"))

The same literals appear again in ChartHelper.kt:34 and 101-111.

Suggested fix, not tested

Derive each gradient from the trend color token in one place.

On develop at 818930a2 (20 Nov 2026): Still present.

17. Low Preference keys share one flat namespace in mixed styles
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#12)
From the report
Evidence
private val SYNC_MODE = "sync_mode"
preferences.getString("zcashUnshieldedBalanceAlerts", null)
Suggested fix, not tested

Put every key in one constants block with a feature prefix, and stop using inline key literals.

On develop at 818930a2 (20 Nov 2026): Still present.

18. Low Preference migrations decided by probing keys, with no schema version
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
override fun migrateEnabledPaidActionsFromDisabled() {
    if (!preferences.contains("disabled_paid_actions")) return
    if (preferences.contains(ENABLED_PAID_ACTIONS)) return
Suggested fix, not tested

Store a schema version for the preferences file and run numbered migrations at startup.

On develop at 818930a2 (20 Nov 2026): Still present.

19. Low Unsynchronized cache keyed by hashCode
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#11)
From the report
Evidence
if (!cache.containsKey(item.hashCode())) {
Why it matters

Two distinct items with the same hash code would show each other's cached data. The check-then-get on a plain map is also not thread-safe.

Suggested fix, not tested

Key the cache by item identity and use a single getOrPut, or remove the cache.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

20. Low Widget configuration work runs in a scope that is never cancelled
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
val scope = MainScope()
scope.launch {
    glanceId?.let {
Why it matters

Every tap starts a new scope, so repeated taps run the update and finish() twice.

Suggested fix, not tested

Use lifecycleScope, ignore taps while an update is running, and set RESULT_CANCELED as the default result.

On develop at 818930a2 (20 Nov 2026): Still present.

21. Low Restored favourites skip the manual sort order
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#21)
From the report
Evidence
fun addAll(coinUids: List<String>) {
    dao.insertAll(coinUids.map { FavoriteCoin(it) })
Why it matters

add() updates both the database and the manual order. addAll(), which backup restore uses, updates only the database. Restored coins are missing from the order and sort to the top.

Suggested fix, not tested

Route both methods through one write function that updates both stores.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

22. Low Backup restore writes node and RPC settings behind the managers' backs
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#22)
From the report
Evidence
blockchainSettingsStorage.save(syncSource.url, blockchainType)
Why it matters

Restore writes straight to storage, so the managers' change events never fire. Running chain kits keep using the old node until the app restarts.

Suggested fix, not tested

Restore through the sync-source and node managers' save methods.

On develop at 818930a2 (20 Nov 2026): Still present.

23. Low Contacts lose unresolved addresses on load, and the loss is saved
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#69)
From the report
Evidence
addresses = contactJson.addresses.mapNotNull { addressJson ->
    marketKit.blockchain(addressJson.blockchain_uid)?.let { ContactAddress(it, addressJson.address) }
Why it matters

Addresses whose blockchain is unknown at load time are dropped. The next save overwrites the file with the reduced set. A file that cannot be read also leaves an empty list, which the next save writes out.

Suggested fix, not tested

Keep unresolved addresses in the model, refuse to write after a lossy or failed load, and move a corrupt file aside instead of overwriting it.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

24. Low Asynchronous kit start races stop and leaks collectors (TON, Stellar, XRP)
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
private suspend fun start() {
    tonKitWrapper?.tonKit?.start()
    job = scope.launch {

The same race exists in StellarKitManager.kt:101 and XrpKitManager.kt:108.

Why it matters

stop() cancels job before start() has assigned it. When the user switches accounts quickly, foreground-refresh collectors are orphaned and pile up.

Suggested fix, not tested

Start the kit and register the collector synchronously under the manager's lock, as SolanaKitManager and TronKitManager do.

On develop at 818930a2 (20 Nov 2026): Still present.

25. Low Lockout timer thread is never cancelled
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
if (timer == null) {
    timer = Timer()
}
Suggested fix, not tested

Add cancel() and call it from the view models' onCleared(), or use a coroutine delay instead.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

26. Low Market auth token lives in a mutable static field that only ever gets cleared
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
var authToken: String? = ""
// MarketKitWrapper.kt:51
userSubscriptionManager.authToken = null
Why it matters

Nothing ever assigns a real token. After one 401 or 403 response, every token-gated market call throws until the process restarts. ILocalStorage.authToken is a second, unused copy.

Suggested fix, not tested

Give the token one owner with a single setter, and remove the duplicate.

On develop at 818930a2 (20 Nov 2026): Still present.

27. Low Account type and secret columns have an unenforced invariant
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#29)
From the report
Evidence
PRIVATE_KEY -> AccountType.EvmPrivateKey(record.key!!.value.toBigInteger())
Why it matters

The code asserts the invariant with !! inside a catch-all. A row that breaks it disappears without any log.

Suggested fix, not tested

Add a consistency check after writes and migrations, and log rows that fail it.

On develop at 818930a2 (20 Nov 2026): Still present.

28. Low Clearing local storage leaves in-memory copies stale
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
preferences.edit().clear().apply()
Suggested fix, not tested

Reset every in-memory state flow to its default after clearing.

On develop at 818930a2 (20 Nov 2026): Still present.

31. Low Backup import trusts the file's key-derivation cost parameters
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#58)
From the report
Evidence
SCrypt.generate(passwordByteArray, salt, n, r, p, dkLen)
// n, r, p, dkLen come from the imported file's kdfparams
Why it matters

A crafted backup file can request huge scrypt costs. The resulting OutOfMemoryError is not an Exception, so the surrounding catch does not stop it and the app crashes.

Suggested fix, not tested

Reject any n, r, p or dklen outside the values the app itself writes before deriving the key. Catch OutOfMemoryError around restore.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

32. Low QR image from the gallery is decoded at full size on the main thread
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#36)
From the report
Evidence
val bitmap = context.contentResolver.openInputStream(uri)
    ?.use { BitmapFactory.decodeStream(it) } ?: return null
val intArray = IntArray(bitmap.width * bitmap.height)
Why it matters

A large photo allocates a full bitmap plus an equally large pixel array on the UI thread. This can freeze the app or crash it with an OutOfMemoryError that is not caught.

Suggested fix, not tested

Read the bounds first, downsample to a fixed pixel budget, decode off the main thread, and catch OutOfMemoryError.

On develop at 818930a2 (20 Nov 2026): Still present.

33. Low Stellar WalletConnect requests are parsed unbounded and unguarded, so a bad request crashes the app
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#61)
From the report
Evidence
override fun createState(): WCActionState {
    val transaction = stellarKit.getTransaction(xdr)

The same parse is in WCActionStellarSignAndSubmitXdr.kt:68.

Why it matters

WCRequestViewModel reads the action's state while the view model is being created, outside any try/catch. A malformed XDR from a connected dApp therefore crashes the app. Neither the params nor the XDR is size-limited, unlike the Solana handler.

Suggested fix, not tested

Cap the length of both inputs, parse once in the constructor inside the guarded path, and turn a failure into the error screen plus a reject to the dApp.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

34. Low EVM WalletConnect request params parsed with no size cap
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
val params = JsonParser.parseString(paramsJson).asJsonArray
Suggested fix, not tested

Reject params over a fixed byte limit before parsing.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

35. Low Backup and contacts import read whole files on the main thread
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#37)
From the report
Evidence
val jsonString = br.readText()
//validate json format
BackupFileValidator().validate(jsonString)

The same pattern is in ImportWalletPage.kt:99 and ContactsScreen.kt:95.

Suggested fix, not tested

Stop reading at a sane maximum size, parse on the IO dispatcher, and pass a reference instead of the whole string through navigation.

On develop at 818930a2 (20 Nov 2026): Still present.

36. Low Transaction list refresh and cache update race on a plain map
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
private val cache = mutableMapOf<String, Map<Long, TransactionViewItem>>()
...
cache.forEach { (recordUid, map) ->
    cache[recordUid] = mapOf(
Why it matters

updateCache() iterates and writes this map from one coroutine while convertToViewItemCached() inserts into it from the refresh job (TransactionsViewModel.kt:133-153, both on Dispatchers.Default). refreshViewItemsJob?.cancel() does not wait for the old job to finish. A ConcurrentModificationException in viewModelScope crashes the app.

Suggested fix, not tested

Make the cache thread-safe or confine it to one dispatcher. Serialize refreshes with a Mutex or by joining the old job.

On develop at 818930a2 (20 Nov 2026): Fixed. The cache refresh and the cached lookup now share one lock. Now at walletkit/src/main/java/io/horizontalsystems/walletkit/modules/transactions/TransactionViewItemFactory.kt:74.

37. Low Swap quotation restarts without waiting, so a stale quote can overwrite fresh state
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
quotingJob?.cancel()
quoting = false
quotes = listOf()
Why it matters

Plain fields are written from the main thread and from a background collector. The tail of a cancelled job can still assign quotes after a new quotation has reset them.

Suggested fix, not tested

Guard the quote state with a Mutex or a single confined dispatcher. Tag each run with a generation number and drop results from older runs.

On develop at 818930a2 (20 Nov 2026): Fixed. Each quotation now carries a generation number, and the results of a superseded quotation are dropped under a lock. Now at walletkit/src/main/java/io/horizontalsystems/walletkit/modules/multiswap/SwapQuoteService.kt:278.

38. Low Purchase flow can hang forever and overwrites an in-flight purchase
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#60)
From the report
Evidence
val billingResult = billingClient.launchBillingFlow(activity, billingFlowParams)
return suspendCancellableCoroutine { inProgressPurchaseResult = it
Why it matters

When the launch fails, no purchase callback ever arrives, so the caller waits forever. A second purchase replaces the pending continuation of the first.

Suggested fix, not tested

Check billingResult.responseCode and fail fast when it is not OK. Reuse an in-flight purchase instead of replacing it, and clear the field in a finally block.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

40. Low Swap fee rate compiled into the build
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#44)
From the report
Evidence
override val swapFeeBps: Int = BuildConfig.SWAP_FEE_BPS
Suggested fix, not tested

Serve the fee rate and the fee recipients from versioned remote configuration.

On develop at 818930a2 (20 Nov 2026): Cited code removed. The fee constant and the swap providers that read it are no longer in the app's code.

41. Low Spam thresholds compiled into the build
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#44)
From the report
Evidence
override val spamCoinValueLimits: Map<String, BigDecimal> = mapOf("XLM" to BigDecimal("0.1"), ...
Suggested fix, not tested

Serve the per-coin limits from remote configuration, so a new spam wave can be handled without a release.

On develop at 818930a2 (20 Nov 2026): Still present.

42. Low User-visible labels hard-coded outside string resources
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
return App.instance.localizedContext().getString(id)
// WCStellarHelper.kt:54: ViewItem.Input("Transaction XDR", xdr)
Suggested fix, not tested

Move literal labels into strings.xml so they can be translated.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

43. Low Transaction view-item factory is a 1,470-line class with mixed concerns
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#39)
From the report
Evidence
class TransactionViewItemFactory(
Suggested fix, not tested

Move the cache into its own class, and split the record-type builders into separate classes.

On develop at 818930a2 (20 Nov 2026): Still present.

44. Low Swap provider file combines catalogue, quoting, send flow and API
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#38)
From the report
Evidence
class USwapProvider(
Suggested fix, not tested

Move the API interface and its DTOs, the private-send flow and the per-chain transaction builders into separate files.

On develop at 818930a2 (20 Nov 2026): Partly fixed. The swap API interface and its response types moved to their own file; the provider file still holds quoting, the send flow and transaction building. Now at walletkit/src/main/java/io/horizontalsystems/walletkit/modules/multiswap/providers/UnstoppableAPI.kt:20.

45. Low One storage class implements five unrelated storage interfaces
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
class LocalStorageManager(...) : ILocalStorage, IPinSettingsStorage, ILockoutStorage, IThirdKeyboard, IMarketStorage
Suggested fix, not tested

Split it into per-concern storage classes, each with its own key namespace.

On develop at 818930a2 (20 Nov 2026): Still present.

46. Low Value entities reach into the application singleton to format themselves
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
return App.numberFormatter.formatCoinFull(value, coin.code, 8)
Suggested fix, not tested

Keep entities as plain data and do the formatting in the presentation layer.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

47. Low Chain plugin interface mixes domain hooks with UI hooks
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
interface ChainPlugin {
Suggested fix, not tested

Split it into a domain and data plugin and a separate UI plugin.

On develop at 818930a2 (20 Nov 2026): Still present.

48. Low Shared input control depends on a feature screen
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
import io.horizontalsystems.walletkit.modules.multiswap.AmountInput
import io.horizontalsystems.walletkit.modules.multiswap.FiatAmountInput
Suggested fix, not tested

Move these composables into the shared components package.

On develop at 818930a2 (20 Nov 2026): Still present.

49. Low Two query-string parsers with different behaviour
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
val parts = pair.split("="); if (parts.size == 2) { parameters[parts[0]] = parts[1] }
Why it matters

MoneroUriParser.kt:84 splits with a limit and URL-decodes the values; this parser does neither. Payment URIs with encoded values are handled differently depending on the chain.

Suggested fix, not tested

Use one shared, tested parser in both places.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

50. Low A crash guard was applied to two kit managers but not their siblings
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
backgroundManager.stateFlow.collect { state -> when (state) { ... kit.resume(); delay(1000); kit.refresh()
Why it matters

XrpKitManager and ThorchainKitManager wrap this handler in try/catch, with a comment that a throw would cancel the shared scope for good. The Solana, Tron, EVM, Stellar and TON managers have no such guard.

Suggested fix, not tested

Apply one guarded collector to every kit manager.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

51. Low Sync-state mapping copied nine times
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
private fun convertToAdapterState(syncState: EthereumKit.SyncState): AdapterState = when (syncState) {
Suggested fix, not tested

Use one extension function per kit module, as the other chain modules already do.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

52. Low Refresh-spinner helper copied into eleven view models
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
private fun refreshWithMinLoadingSpinnerPeriod() {
Suggested fix, not tested

Move it into one shared helper.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

53. Low Build configuration blocks duplicated across modules
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
tasks.withType<Test>().configureEach {
    systemProperty("updateParityFixture", providers.gradleProperty("updateParityFixture").getOrElse("false"))
Why it matters

This block is copied into 10 build files. The dependency-substitution table is also duplicated between the app and walletkit build files, so the copies will drift.

Suggested fix, not tested

Move both into a convention plugin or a root-level configuration block.

On develop at 818930a2 (20 Nov 2026): Still present.

54. Low Two transaction services carry the same merge loop
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#28)
From the report
Evidence
if (record.spam && spamManager.hideSuspiciousTx) return@forEach

The same loop is in TokenTransactionsService.kt:206-224.

Suggested fix, not tested

Extract one function that both services call.

On develop at 818930a2 (20 Nov 2026): Still present.

55. Low One chain module re-exports another to reach a single helper
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#49)
Location: walletkit-chain-thorchain/build.gradle.kts:32 (line corrected on review; the report cites :33)
From the report
Evidence
api(project(":walletkit"))
api(project(":walletkit-chain-evm"))
Suggested fix, not tested

Move the one helper the THORChain module needs into the core library, and drop this dependency.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

56. Low Leftover debug logs at error level
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#51)
From the report
Evidence
Log.e("AAA", "billingClient.isReady: ${billingClient.isReady}")

More leftovers are in AdapterFactory.kt:33, ResultEventBus.kt:67 and EvmKitManager.kt:215.

Suggested fix, not tested

Remove them, or log them at debug level only.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

57. Low Informational events logged as errors
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
Log.e("ZcashAdapter", "Processor error resolved")
Suggested fix, not tested

Log routine events at info or warning level.

On develop at 818930a2 (20 Nov 2026): Still present.

58. Low Timber errors vanish in release builds
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: walletkit/src/main/java/io/horizontalsystems/walletkit/core/App.kt:496 (line corrected on review; the report cites :497)
From the report
Evidence
if (BuildConfig.DEBUG) { Timber.plant(Timber.DebugTree()) }
Why it matters

Timber is planted only in debug builds, so its errors disappear in release while Log.e calls remain. The lint check that would flag the mix is disabled in app/build.gradle.kts:211.

Suggested fix, not tested

Use one logging facade and plant a release tree.

On develop at 818930a2 (20 Nov 2026): Still present.

59. Low Exceptions swallowed with printStackTrace or empty catch
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
} catch (exception: Exception) {
    exception.printStackTrace()
}

The same pattern appears in NftMetadataSyncer.kt:64-66, MoneroNodeManager.kt:69, BalanceAdapterRepository.kt:149 and Migration_66_67.kt:16.

Suggested fix, not tested

Log these errors through the project logger with a stable message.

On develop at 818930a2 (20 Nov 2026): Partly fixed. Six of the eleven printStackTrace calls are gone, most with the code around them; five remain.

60. Low No integrity checksums for the build tool or release artifacts
First rating: Low · Reviewed rating: Low · Review: confirmed · also in the first audit (#54)
From the report
Evidence
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
Suggested fix, not tested

Add distributionSha256Sum, and have the release script and the release workflow publish SHA-256 checksums of every APK.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

61. Low Leftovers of a retired distribution service
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
From the report
Evidence
applicationIdSuffix = ".appcenter"
Why it matters

CI builds now go to Firebase, but the package suffix, build counters, launcher icons, the App Links file and test docs still name the old service.

Suggested fix, not tested

Rename all of them in one step, then confirm on a fresh install that nothing still calls the old service.

On develop at 818930a2 (20 Nov 2026): Still present.

62. Low Vendor API keys and tokens committed in the build file and shipped in the APK
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#56)
From the report
Evidence
buildConfigFieldString("TWITTER_BEARER_TOKEN", "AAAA…")
buildConfigFieldString("CHAINALYSIS_API_KEY", "928b…")
buildConfigFieldString("HASH_DIT_API_KEY", "aGMk…")
Why it matters

The file also commits explorer, swap, market, 1inch, Alchemy and TronGrid keys, a THORChain key ("THOR…" at line 47) and USwap keys ("a32d…" and "6e92…" at lines 72-73). They are readable from the public repository and from every APK, so anyone can use the quotas.

Suggested fix, not tested

Inject the keys from CI secrets or untracked local files. Proxy paid or rate-limited APIs through your backend, and rotate every committed key.

On develop at 818930a2 (20 Nov 2026): Still present.

64. Low An undecryptable passphrase becomes an empty passphrase, or the account disappears
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#67)
From the report
Evidence
MNEMONIC -> AccountType.Mnemonic(record.words!!.list, record.passphrase?.value ?: "")
Why it matters

When the passphrase fails to decrypt, the wallet is derived without it and shows different, empty addresses. When the words fail to decrypt, the account is silently dropped from the list.

Suggested fix, not tested

Distinguish "no passphrase" from "failed to decrypt", and surface a locked or error state instead.

On develop at 818930a2 (20 Nov 2026): Still present.

65. Low Keystore key silently regenerated when the existing key cannot be loaded
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
} catch (ex: UnrecoverableKeyException) {
    //couldn't get key due to exception
}
return createGcmKey()
Why it matters

A transient load failure replaces the key under the same alias. The next validation then fails with a bad tag, which routes to the invalid-key flow that resets the app and wipes the encrypted wallet data.

Suggested fix, not tested

Create a key only when the alias does not exist, and pass load errors to the explicit recovery flow.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

66. Low Backup restore saves custom RPC endpoints without validation or authentication
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
evmSyncSourceManager.saveSyncSource(blockchainType, syncSource.url, auth)
Why it matters

The add-RPC screen requires https, wss or onion. The restore path saves whatever URL the file contains, and the settings section is not covered by the backup's MAC. A tampered backup can point the wallet at a hostile node.

Suggested fix, not tested

Apply the same URL validation on restore, and authenticate the settings section of the backup.

On develop at 818930a2 (20 Nov 2026): Still present.

68. Low Subscription entitlement list is cleared and refilled from several threads
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#60)
From the report
Evidence
activeSubscriptions.clear()
if (!billingClient.isReady) {
Why it matters

Paid protections read as off on every resume or billing disconnect. The UI thread iterates the list while a background coroutine mutates it, which can throw ConcurrentModificationException.

Suggested fix, not tested

Build a new list and swap it in atomically. Keep the last known state until a successful query replaces it.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

69. Low EVM sign request can suspend forever
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
val sessionRequest = sessionRequestUi as? SessionRequestUI.Content
if (sessionRequest != null) {
Why it matters

There is no else branch, so the continuation is never resumed and the confirm button stays in progress.

Suggested fix, not tested

Resume with an error when there is no request, and use suspendCancellableCoroutine.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

70. Low personal_sign signs re-encoded text instead of the bytes the dApp sent
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#66)
From the report
Evidence
String(message.hexStringToByteArray())
// WCRequestEvmViewModel.kt:116: signer.signByteArray(message = sessionRequest.param.toByteArray())
Why it matters

Payloads that are not valid UTF-8, such as a 32-byte hash, are altered before signing. The dApp gets a signature over different bytes, and the user sees something other than what is signed.

Suggested fix, not tested

Sign the original bytes. Use text only for display, falling back to hex.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

72. Low Monero private keys copied without the sensitive-clipboard handling
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
TextHelper.copyText(keys.getKey(keyType))
Why it matters

This is the private-key branch. It skips the sensitive flag and expiry that copySecret adds, so the spend key appears in clipboard previews and history.

Suggested fix, not tested

Use TextHelper.copySecret for private keys.

On develop at 818930a2 (20 Nov 2026): Still present.

73. Low Zano custom node accepts plain http for any host
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#64)
From the report
Evidence
val hasRequiredProtocol = scheme == "https" || scheme == "http"
Why it matters

The Monero and Zcash screens require https or onion. Zano syncs over native sockets, which bypass the platform's cleartext policy, so a network attacker can read wallet activity and falsify balances.

Suggested fix, not tested

Require https, and allow http only for onion hosts.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

74. Low Name resolution accepts a replayed older signed binding
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
val lowestNonce = if (usesNonce) maxOf(0L, registration.nonce - NONCE_SEARCH_DEPTH) else registration.nonce
for (nonce in registration.nonce downTo lowestNonce) {
Why it matters

The signature proves the registrar once signed a name-to-address binding, not that the binding is current. A hostile indexer can serve an older address.

Suggested fix, not tested

Add a freshness check against an independent source, and show the resolved address for confirmation.

On develop at 818930a2 (20 Nov 2026): Cited code removed. The name resolver was rewritten without the cited signature and replay check; it now trusts the resolver service's answer without verifying records, so the concern remains in another form. Now at walletkit-chain-zcash/src/main/java/io/horizontalsystems/walletkit/chain/zcash/ZnsResolver.kt:23.

75. Low Biometric prompt and activity start are triggered from the composable body
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
if (viewModel.showBiometricPrompt) {
    showBiometricPrompt.invoke()
}
Why it matters

Every recomposition calls authenticate again. Lines 143-146 also start an activity during composition.

Suggested fix, not tested

Run these side effects from a LaunchedEffect keyed on the state, or from a one-shot event.

On develop at 818930a2 (20 Nov 2026): Still present.

77. Low Account import broadcasts only the imported accounts
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#18)
From the report
Evidence
override fun import(accounts: List<Account>) {
...
    _accountsFlow.tryEmit(accounts)
Why it matters

The parameter shadows the manager's accounts property. After a restore, subscribers receive only the imported accounts instead of the full set.

Suggested fix, not tested

Emit the full cache, and rename the parameter.

On develop at 818930a2 (20 Nov 2026): Still present.

78. Low Legacy plaintext PIN is never removed after migration
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
App.pinSettingsStorage.pin?.let {
    db.execSQL("INSERT INTO `Pin` VALUES(0, ?)", arrayOf(it))
Why it matters

The migration copies the PIN out of the plaintext lock_pin preference but never deletes that preference.

Suggested fix, not tested

Remove the legacy value in the same migration.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

79. Low PIN attempt counters are written asynchronously
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
preferences.edit().putInt(FAILED_ATTEMPTS, it).apply()
Why it matters

If the process is killed right after a wrong PIN, the increment can be lost, which weakens the attempt limit. The lockout timestamp at line 376 is written the same way.

Suggested fix, not tested

Use commit() for the attempt counter and the lockout timestamp.

On develop at 818930a2 (20 Nov 2026): Still present.

80. Low Wallet reload deletes and re-inserts enabled wallets in two steps
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#68)
From the report
Evidence
delete(walletsToReAdd)
save(walletsToReAdd)
Why it matters

A process kill between the two steps loses the user's enabled tokens for that chain.

Suggested fix, not tested

Re-emit the wallets without touching storage, or rewrite them in one transaction.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

81. Low Single-wallet restore enables the wallet before saving its restore settings
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
walletManager.saveEnabledWallets(enabledWallets)
Why it matters

The restore settings, such as the birthday height, are saved afterwards with a reload. The adapter starts without them and is then rebuilt, which can leave it stuck syncing.

Suggested fix, not tested

Save the restore settings without a reload before enabling the wallet.

On develop at 818930a2 (20 Nov 2026): Still present.

82. Low Network-change handler tears down a kit without the lock its getter uses
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#20)
From the report
Evidence
private fun handleUpdateNetwork() {
    stop()
    _kitStoppedFlow.tryEmit(Unit)

The same issue is in XrpKitManager.kt:108.

Why it matters

The getter checks for null and then dereferences with !! under a lock that this handler does not take. A network change can therefore cause a crash or hand out a kit that is being torn down.

Suggested fix, not tested

Mark the handler @Synchronized, as the EVM, Solana and Tron managers do.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

83. Low Contacts file is truncated and rewritten in place
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#34)
From the report
Evidence
FileOutputStream(file).use { fos ->
    fos.bufferedWriter().use { bw ->
        bw.write(asJsonString)
Why it matters

A crash or a full disk during the write destroys the whole address book.

Suggested fix, not tested

Write to a temporary file, sync it, then rename it atomically (for example with AtomicFile). Surface write failures to the user.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

84. Low Contacts map is mutated from several threads
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#35)
From the report
Evidence
private var contactsMap: MutableMap<String, Contact> = mutableMapOf()
Why it matters

save, delete and restore mutate the map on the caller's thread while the background writer iterates it. This can throw, or a late file read can overwrite fresh edits.

Suggested fix, not tested

Confine the map to one dispatcher, and publish immutable snapshots to readers.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

86. Low Payment is recorded only after the transaction has been broadcast
First rating: Medium · Reviewed rating: Low · Review: rated too high · also in the first audit (#33)
From the report
Evidence
val result = withContext(Dispatchers.IO) { sendTransactionService.sendTransaction() }
val txHash = extractTxHash(result)
    ?: throw Exception("Could not get transaction hash")
Why it matters

If no hash can be extracted, or the record insert fails, the funds have already left the wallet but the user is told the payment failed and may pay twice. The merchant proof is never sent.

Suggested fix, not tested

Save a pending record before broadcasting, and never report failure after a successful send.

On develop at 818930a2 (20 Nov 2026): Still present.

87. Low Release keystore is decoded into the workspace before the build runs
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > keystore.jks
Why it matters

Every build script and Gradle plugin that runs afterwards (line 36 onward) can read the release signing key.

Suggested fix, not tested

Decode the key only in the signing step after the build, and delete it right after. publish_play.yml already uses this order.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

88. Low Release builds run in a third-party Docker image pinned by tag
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
image: hsdao/android-release-build:java-17-update

The same image is used in publish_play.yml:15 and docker/build-apk.sh:24.

Why it matters

Whoever controls the tag can change the toolchain that builds and signs the wallet.

Suggested fix, not tested

Pin the image by digest, or build it from a pinned Dockerfile.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

89. Low Third-party CI action that receives a secret is referenced by a floating tag
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
uses: wzieba/Firebase-Distribution-Github-Action@v1

The same action is used in deploy_dev.yml:98 and deploy_release.yml:81, and it receives the Firebase service-account key. maestro_tests.yml:35 also pipes a remote install script into bash.

Suggested fix, not tested

Pin actions to a full commit SHA, and download tools from pinned releases with a checksum check.

On develop at 818930a2 (20 Nov 2026): Still present.

90. Low Docker release script signs a file name the build does not produce
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
BUILT_APK_FILE="app/build/outputs/apk/base/release/app-base-release.apk"
Why it matters

The base release has no signing config, so the build produces app-base-release-unsigned.apk, the name the CI workflow uses. The script has no fail-fast setting and still prints "Successfully created apk".

Suggested fix, not tested

Fix the path, add set -euo pipefail, run apksigner verify, and quote $KEYSTORE.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

91. Low Backup is reported saved before the file is closed
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
From the report
Evidence
bw.write(backupJson)
bw.flush()
HudHelper.showSuccessMessage(
Why it matters

viewModel.backupFinished(), which marks the account as backed up, also runs inside the open stream. If closing fails on a cloud provider, the wallet is marked backed up without a usable file.

Suggested fix, not tested

Close the stream first, then show success and mark the backup done.

On develop at 818930a2 (20 Nov 2026): Still present.

Info after review (2)

30. Info Permanent 30-second polling loop for stalled sync
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
From the report
Evidence
while (isActive) {
    delay(CHECK_INTERVAL)
    check()
Suggested fix, not tested

Drive the check from sync-state changes, or run the loop only while a wallet is not synced.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

39. Info Paid features are gated only on the client
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
From the report
Evidence
override fun isActionAllowed(paidAction: IPaidAction) = activeSubscriptions.any {
Suggested fix, not tested

Verify purchase tokens on a backend for any server-provided paid feature, or document that client-side gating is intentional.

On develop at 818930a2 (20 Nov 2026): Cited code unchanged.

Excluded on review (1)

Findings the review showed to be wrong or a repeat of another finding. They are not counted above.

Want this for your code?

Upload a ZIP or link a public GitHub repo, pick the areas and the depth, and get findings by severity with fixes.