Security fixes are applied to the latest code on main
Bihar Police Notebook is a static website (editor/). Documents are stored in the user’s browser (IndexedDB). Optional Google Drive backup (user-initiated OAuth, drive.file scope) copies notes into a folder the user owns in their own Drive. There is no application server for notes.
Please report security issues privately so they can be fixed before public disclosure.
- Prefer GitHub Security Advisories for this repository, or
- Open a private security report if available, or
- If neither works, open a GitHub issue without exploit details and ask for a private channel.
Include:
- Affected surface (
editor/and related static assets) - Browser / OS version
- Steps to reproduce
- Impact (e.g. data exposure, XSS, unexpected permissions)
We aim to acknowledge reports within 7 days and share a fix timeline after triage.
- Compromised or malicious browser extensions unrelated to this project
- User clearing site data / using a new domain (IndexedDB is origin-scoped; this is expected)
- Third-party services used by choice (e.g. Google Input Tools, optional cloud speech, optional Google Drive backup) when used as designed after user consent
- Social engineering or physical access to the device
- The editor must not exfiltrate document contents to our infrastructure (there is none for notes).
- Optional Drive backup uploads only after the user connects Google; scope is limited to
drive.file(files created by the app). Disconnect revokes the token; it does not delete Drive files. - Drive access tokens may be cached in the browser’s IndexedDB for up to one day to avoid re-prompting on every refresh. XSS that can run on the editor origin could read that token until it expires or is cleared — treat editor XSS as high impact.
- XSS or injection in the editor that could read or alter local documents is in scope.