iruneguinea.com · PlanTag
Seguridad
Este documento describe la versión 0.9.8 (beta).
Cómo comunicar una vulnerabilidad
Escribe a hello@iruneguinea.com con el asunto «Seguridad PlanTag». Incluye cómo reproducirlo y la versión de la app (Ajustes, al final). No publiques los detalles hasta que haya una corrección; respondo en un plazo de 7 días. No hagas pruebas contra cuentas que no sean tuyas ni intentes acceder a datos de otras personas.
Comprobar el archivo
La huella SHA-256 del APK se publica junto al enlace de descarga. Compárala con la del archivo descargado antes de instalarlo: en Windows, Get-FileHash PlanTag-0.9.8.apk (PowerShell); en Linux o macOS, sha256sum PlanTag-0.9.8.apk.
El APK está firmado con una clave de publicación propia de PlanTag, guardada fuera del repositorio y con copia de seguridad. La huella SHA-256 de su certificado (CN=PlanTag, O=iruneguinea.com, C=ES) es 65cd811164410ed22230bfdf5a090feb39a2056ca1f70480e959e2cf11c420a1; puedes comprobarla con apksigner verify --print-certs PlanTag-0.9.8.apk.
Medidas aplicadas
- Cuentas separadas en el servidor: Supabase (UE, Irlanda) con seguridad a nivel de fila (RLS). Cada cuenta solo puede leer y escribir sus propias filas; sin sesión no hay acceso a nada. Borrar la cuenta usa siempre el usuario de la sesión, nunca un identificador recibido.
- Inicio de sesión con PKCE: un enlace de confirmación o de recuperación solo funciona en el móvil que lo pidió. Si entra otra cuenta en el mismo móvil, la app no sube los datos locales sin preguntar.
- Comunicación cifrada (HTTPS) con el servidor y con iruneguinea.com. El tráfico sin cifrar no está permitido.
- Sin secretos en la app: solo lleva la clave pública (publishable) de Supabase. La contraseña de la base de datos no está ni en la app ni en el repositorio.
- Fuera de las copias de seguridad de Android: los datos locales y la sesión no se copian a la nube ni a otro móvil (
allowBackup=false).
- Pantalla de bloqueo: las notificaciones no muestran el texto de tus tareas.
- Permisos limitados a lo que se usa: notificaciones y alarmas para los recordatorios, «No molestar» solo si lo activas, internet para la cuenta, el aviso de versiones y las actualizaciones, instalar actualizaciones (solo abre el instalador de Android con una versión ya comprobada), tareas en segundo plano para comprobar versiones con la app cerrada, y audio, vibración y servicio en primer plano para el modo foco. Sin micrófono, cámara, ubicación, contactos ni archivos.
- Aviso de versiones: viene activado y se puede apagar en Ajustes. Consulta
https://www.iruneguinea.com/plantag/version.json al abrir la app (como mucho cuatro veces al día) y, con la app cerrada, unas dos veces al día (Android decide el momento). Es una petición GET sin cookies y sin datos tuyos; no sigue redirecciones, acepta como mucho 20 KB y espera 7 segundos. Solo acepta enlaces https de www.iruneguinea.com. Si hay una versión nueva, muestra una notificación local (una por versión). Sin red, la app funciona igual.
- Actualizar desde la app: solo si pulsas «Actualizar ahora». Descarga la APK de
https://www.iruneguinea.com/plantag/descargas/ (https, sin seguir redirecciones y con límite de tamaño), calcula su SHA-256 mientras descarga y la borra si no coincide con la huella publicada. Antes de instalar comprueba que está firmada con el mismo certificado que la app instalada y que su versión es más nueva. Después abre el instalador de Android, donde confirmas tú; nunca se instala sola. Si algo falla, ofrece la página de descarga.
- Aviso obligatorio: si la web marca tu versión como no admitida, la app muestra un aviso que no se cierra con Atrás y que solo permite ir a la descarga. Tus plantas se conservan.
- Firma propia y sin modo depuración: el APK no es depurable y no incluye el lanzador de desarrollo.
- Código reducido y ofuscado (R8): el APK se compila con R8, que elimina código sin usar y ofusca los nombres. No sustituye a ninguna otra medida: la app no lleva secretos.
- Sin anuncios, analíticas ni rastreadores, y sin notificaciones push: los recordatorios se programan en el móvil.
Limitaciones conocidas
- Datos locales sin cifrar por la app: están en el almacenamiento privado de Android. En un móvil con root o sin bloqueo de pantalla, quien tenga el móvil puede leerlos.
- Las tareas son texto libre: si escribes información de salud, se guarda y se sincroniza como cualquier otra tarea.
- Progreso del juego en el cliente: semillas, nivel y desbloqueos se calculan en el móvil y solo afectan a tu propia cuenta.
- Versión beta: puede haber fallos. Antes de publicarla se hizo una revisión de seguridad propia (análisis de secretos, de código y de dependencias, y revisión manual).
Security
This document describes version 0.9.8 (beta).
How to report a vulnerability
Write to hello@iruneguinea.com with the subject “PlanTag security”. Include how to reproduce it and the app version (Settings, at the bottom). Do not publish the details until there is a fix; I reply within 7 days. Do not test against accounts that are not yours or try to reach other people’s data.
Checking the file
The APK’s SHA-256 fingerprint is published next to the download link. Compare it with that of the file you downloaded before installing it: on Windows, Get-FileHash PlanTag-0.9.8.apk (PowerShell); on Linux or macOS, sha256sum PlanTag-0.9.8.apk.
The APK is signed with a release key of PlanTag’s own, kept outside the repository and backed up. The SHA-256 fingerprint of its certificate (CN=PlanTag, O=iruneguinea.com, C=ES) is 65cd811164410ed22230bfdf5a090feb39a2056ca1f70480e959e2cf11c420a1; you can check it with apksigner verify --print-certs PlanTag-0.9.8.apk.
Measures applied
- Separate accounts on the server: Supabase (EU, Ireland) with row level security (RLS). Each account can only read and write its own rows; without a session there is no access to anything. Deleting an account always uses the session’s user, never an identifier received from outside.
- Sign-in with PKCE: a confirmation or recovery link only works on the phone that requested it. If another account signs in on the same phone, the app does not upload the local data without asking.
- Encrypted communication (HTTPS) with the server and with iruneguinea.com. Unencrypted traffic is not allowed.
- No secrets in the app: it only carries Supabase’s public (publishable) key. The database password is neither in the app nor in the repository.
- Outside Android backups: local data and the session are not copied to the cloud or to another phone (
allowBackup=false).
- Lock screen: notifications do not show the text of your tasks.
- Permissions limited to what is used: notifications and alarms for reminders, “Do not disturb” only if you turn it on, internet for the account, the version notice and updates, install updates (it only opens Android’s installer with an already checked version), background tasks to check versions while the app is closed, and audio, vibration and a foreground service for focus mode. No microphone, camera, location, contacts or files.
- Version notice: it is on by default and can be turned off in Settings. It requests
https://www.iruneguinea.com/plantag/version.json when you open the app (at most four times a day) and, with the app closed, about twice a day (Android picks the moment). It is a GET request with no cookies and no data about you; it does not follow redirects, accepts at most 20 KB and waits 7 seconds. It only accepts https links on www.iruneguinea.com. If there is a new version it shows a local notification (one per version). Without a network, the app works the same.
- Updating from the app: only if you tap “Update now”. It downloads the APK from
https://www.iruneguinea.com/plantag/descargas/ (https, without following redirects and with a size limit), computes its SHA-256 while downloading and deletes it if it does not match the published fingerprint. Before installing it checks that it is signed with the same certificate as the installed app and that its version is newer. It then opens Android’s installer, where you confirm; it never installs by itself. If anything fails, it offers the download page.
- Mandatory notice: if the website marks your version as unsupported, the app shows a notice that the Back button cannot close and that only lets you go to the download. Your plants are kept.
- Own key, no debug build: the APK is not debuggable and does not include the development launcher.
- Shrunk and obfuscated code (R8): the APK is built with R8, which removes unused code and obfuscates names. It replaces no other measure: the app carries no secrets.
- No ads, no analytics, no trackers and no push notifications: reminders are scheduled on the phone.
Known limitations
- Local data not encrypted by the app: it lives in Android’s private storage. On a rooted phone or one without a screen lock, whoever has the phone can read it.
- Tasks are free text: if you write health information, it is stored and synced like any other task.
- Game progress on the client: seeds, level and unlocks are computed on the phone and only affect your own account.
- Beta version: it may have bugs. A security review of my own was done before publishing it (secret, code and dependency scans, plus a manual review).
Segurtasuna
Dokumentu honek 0.9.8 bertsioa (beta) deskribatzen du.
Ahulezia bat nola jakinarazi
Idatzi hello@iruneguinea.com helbidera, «PlanTag segurtasuna» gaiarekin. Gehitu erreproduzitzeko urratsak eta aplikazioaren bertsioa (Ezarpenak, amaieran). Ez argitaratu xehetasunak zuzenketa bat egon arte; 7 eguneko epean erantzuten dut. Ez egin probarik zureak ez diren kontuen kontra eta ez saiatu beste pertsonen datuetara sartzen.
Fitxategia egiaztatzea
APKaren SHA-256 hatza deskarga-estekaren ondoan argitaratzen da. Instalatu aurretik, konparatu deskargatu duzun fitxategiarenarekin: Windows-en, Get-FileHash PlanTag-0.9.8.apk (PowerShell); Linux-en edo macOS-en, sha256sum PlanTag-0.9.8.apk.
APKa PlanTag-en argitalpen-gako propio batekin dago sinatuta, biltegitik kanpo eta babeskopiarekin gordetakoa. Bere ziurtagiriaren (CN=PlanTag, O=iruneguinea.com, C=ES) SHA-256 hatza 65cd811164410ed22230bfdf5a090feb39a2056ca1f70480e959e2cf11c420a1 da; honekin egiaztatu dezakezu: apksigner verify --print-certs PlanTag-0.9.8.apk.
Aplikatutako neurriak
- Zerbitzarian kontu bereiziak: Supabase (EB, Irlanda), errenkada-mailako segurtasunarekin (RLS). Kontu bakoitzak bere errenkadak bakarrik irakurri eta idatz ditzake; saiorik gabe ez dago ezertara sarbiderik. Kontua ezabatzeak beti saioko erabiltzailea erabiltzen du, inoiz ez kanpotik jasotako identifikatzaile bat.
- PKCE bidezko saio-hasiera: berrespen- edo berreskuratze-esteka batek eskatu zuen mugikorrean bakarrik funtzionatzen du. Beste kontu bat mugikor berean sartzen bada, aplikazioak ez ditu datu lokalak galdetu gabe igotzen.
- Komunikazio zifratua (HTTPS) zerbitzariarekin eta iruneguinea.com-ekin. Zifratu gabeko trafikoa ez dago baimenduta.
- Aplikazioan sekreturik ez: Supabase-ren gako publikoa (publishable) bakarrik darama. Datu-basearen pasahitza ez dago ez aplikazioan ez biltegian.
- Androiden babeskopietatik kanpo: datu lokalak eta saioa ez dira hodeira ez beste mugikor batera kopiatzen (
allowBackup=false).
- Blokeo-pantaila: jakinarazpenek ez dute zure zereginen testua erakusten.
- Erabiltzen denera mugatutako baimenak: jakinarazpenak eta alarmak gogorarazpenetarako, «Ez molestatu» aktibatzen baduzu bakarrik, internet kontua, bertsio-abisua eta eguneratzeak egiteko, eguneratzeak instalatzea (Android-en instalatzailea irekitzen du bakarrik, jada egiaztatutako bertsio batekin), atzeko planoko zereginak aplikazioa itxita dagoenean bertsioak begiratzeko, eta audioa, bibrazioa eta lehen planoko zerbitzua fokuko moduarentzat. Mikrofonorik, kamerarik, kokapenik, kontakturik edo fitxategirik gabe.
- Bertsio-abisua: aktibatuta dator eta Ezarpenetan desaktibatu daiteke.
https://www.iruneguinea.com/plantag/version.json eskatzen du aplikazioa irekitzean (gehienez egunean lau aldiz) eta, aplikazioa itxita dagoenean, egunean bi aldiz inguru (Android-ek erabakitzen du unea). GET eskaera bat da, cookie-rik edo zure daturik gabe; ez ditu birbideratzeak jarraitzen, gehienez 20 KB onartzen ditu eta 7 segundo itxaroten ditu. www.iruneguinea.com-eko https estekak bakarrik onartzen ditu. Bertsio berririk badago, jakinarazpen lokal bat erakusten du (bat bertsio bakoitzeko). Sarerik ez badago, aplikazioak berdin funtzionatzen du.
- Aplikaziotik eguneratu: «Eguneratu orain» sakatzen baduzu bakarrik. APKa
https://www.iruneguinea.com/plantag/descargas/ helbidetik deskargatzen du (https, birbideratzeak jarraitu gabe eta tamaina-mugarekin), deskargatzen den bitartean bere SHA-256 kalkulatzen du eta argitaratutako hatz-markarekin bat ez badator ezabatu egiten du. Instalatu aurretik, instalatutako aplikazioaren ziurtagiri berarekin sinatuta dagoela eta bertsioa berriagoa dela egiaztatzen du. Gero Android-en instalatzailea irekitzen du, non zuk baieztatzen duzun; ez da inoiz bere kabuz instalatzen. Zerbait huts egiten badu, deskarga-orria eskaintzen du.
- Abisu derrigorrezkoa: webak zure bertsioa onartu gabetzat markatzen badu, aplikazioak Atzera botoiarekin itxi ezin den abisu bat erakusten du, deskargara joateko aukera bakarrarekin. Zure landareak gordetzen dira.
- Gako propioa eta arazketa-modurik gabe: APKa ez da araztu daitekeena eta ez du garapen-abiarazlerik barne hartzen.
- Kode murriztua eta lausotua (R8): APKa R8rekin konpilatzen da, erabiltzen ez den kodea kentzen eta izenak lausotzen dituena. Ez du beste neurririk ordezkatzen: aplikazioak ez du sekreturik.
- Iragarkirik, analitikarik eta jarraitzailerik gabe, eta push jakinarazpenik gabe: gogorarazpenak mugikorrean programatzen dira.
Ezagutzen diren mugak
- Aplikazioak zifratzen ez dituen datu lokalak: Androiden biltegiratze pribatuan daude. Root-a duen edo pantaila-blokeorik gabeko mugikor batean, mugikorra duenak irakur ditzake.
- Zereginak testu librea dira: osasun-informazioa idazten baduzu, beste edozein zeregin bezala gordetzen eta sinkronizatzen da.
- Jokoaren aurrerapena bezeroan: haziak, maila eta desblokeoak mugikorrean kalkulatzen dira eta zure kontuari bakarrik eragiten diote.
- Beta bertsioa: akatsak izan ditzake. Argitaratu aurretik segurtasun-azterketa propio bat egin zen (sekretuen, kodearen eta mendekotasunen analisia, eta eskuzko berrikuspena).