Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Web app: serve it from its own origin, so other pages on mostro.network cannot read its storage

Open
#700 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter
Domain
frontend, security

Research direction

Review the discussion in #651 and the issue's origin and storage constraints first. Then trace the hosting setup for the app, /protocol/, and /docs-english/, along with the web app's storage entry point. Done means the web app is isolated at its own origin, users of the old path see a migration notice, and native apps remain unaffected.

Written by the indexing model from the issue text.

Description

The web app shares its origin with the rest of mostro.network: the main site, /protocol/ and /docs-english/. The two docs sites load their own scripts.

Browsers isolate storage per origin, not per path. So any script on those pages can read what the app keeps in localStorage: the mnemonic today, and the NWC secret once #650 lands. flutter_secure_storage does not change that on web, because its AES key sits in the same localStorage as the ciphertext. One bad script in the docs is enough to take a user's keys.

I'd suggest serving the app from an origin of its own, like app.mostro.network, with nothing else on it.

The cost: storage does not move along. Existing web users start empty and restore with their mnemonic, so the old path needs a short notice. Native apps are not affected; they use Keychain and Keystore.

Raised by @grunch in the review of #651.

Dominant language
Dart
Stars
11
Forks
9
Avg merge
20h 36m
Merged PRs (30d)
236

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MostroP2P/app

All issues in MostroP2P/app

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.