Skip to content

Security: Kesowa/FintechMapApp

Security

SECURITY.md

Security Policy

Reporting a vulnerability

Please report security issues privately rather than opening a public issue.

Include what you did, what happened and what you expected, with enough detail to reproduce. We will acknowledge your report and tell you whether we intend to fix it, and when.

Test only against your own local setup, and do not use any credential you find in this repository or its history.

Credentials previously committed here

GeoCapital/app.json contained a Google Maps API key and a Mapbox secret (sk.*) download token in plaintext. Git history also holds a second sk.* token and a copy in an iOS Podfile.

We know. Those credentials are being rotated and removed, and configuration now comes from the environment via app.config.js. You do not need to enumerate them.

Worth reporting:

  • A credential we have missed, anywhere in the tree or history.
  • A credential that is still valid. Say where you found it and why you think it is live — do not test it against the provider.
  • A secret reaching the app bundle. Specifically, anything sensitive given an EXPO_PUBLIC_ prefix, because that inlines it into shipped JavaScript. A Mapbox sk.* token prefixed EXPO_PUBLIC_ would be a real finding.

What this is

An early-stage prototype of a lending platform. It is not deployed, holds no real customer data, and docs/mvp.md is still a task list. Please calibrate severity accordingly — but note that the domain is financial, so auth and authorization findings are taken seriously even at this stage.

Two components:

  • GeoCapital/ — Expo / React Native client. Enforces nothing; it renders what the backend returns.
  • surfin/ — Go backend with Gin and PostgreSQL. This is where authorization lives, and where findings matter most.

In scope

Backend (surfin/):

  • Authentication and JWT handling in internal/server/auth.go — weak or missing signature verification, an algorithm-confusion attack, tokens that do not expire, a secret with insufficient entropy.
  • Authorization gaps. Any endpoint returning or modifying another user's loans, portfolio or profile. In a lending context this is the most serious class of bug here.
  • SQL injection. Queries are generated by sqlc and therefore parameterised, which should prevent this — any hand-written query that bypasses it is in scope.
  • Insecure direct object references, particularly on the /[id] routes.
  • CORS misconfiguration — gin-contrib/cors is configured in this codebase, and an overly permissive origin or credentialed wildcard is a finding.
  • Input validation on the loan application path, including amount handling and any numeric type confusion.

Mobile app (GeoCapital/):

  • Insecure local storage of tokens or personal data.
  • Secrets in the bundle, as described above.
  • Deep-link handling. The app registers the myapp:// scheme; a link that can drive an unintended action is in scope.
  • Certificate or transport issues, such as plaintext HTTP to the API in a release build.

Both:

  • Vulnerable dependencies in package.json or go.mod, with a plausible exploit path.

Out of scope

  • The committed credentials described above.
  • EXPO_PUBLIC_* values appearing in the built bundle. That is how Expo works and is documented in the README. A secret given that prefix is in scope; a restricted public key is not.
  • The com.harsh5260.fintech bundle identifier. Known, noted in CONTRIBUTING.
  • Missing authorization in the mobile client where the backend enforces it.
  • Absent features — no rate limiting, no MFA, no audit log. This is a prototype and those are roadmap items, not vulnerabilities. Tell us if something present is broken.
  • Findings in Expo, React Native, Gin, Mapbox or other upstream dependencies with no exploit path through this code.
  • Automated scanner output with no demonstrated impact.

Note on the schema

docs/database.sql is a real schema for financial data — users, loans and opportunities. If you spot something there that would expose personal or financial data by design, such as a missing constraint or a field that should be encrypted at rest, that is worth reporting even though no deployment exists yet. It is much cheaper to fix now than after launch.

There aren't any published security advisories