rob-revisited/SECURITY.md

32 lines
2.3 KiB
Markdown

# Security
## Reporting a vulnerability
Open a private issue on https://git.jumphp.net/jumphp/jumPhp, or write to the maintainer through the forge. Please give the file, the
line and a way to reproduce it.
## Fixed
- **0.5.66** — the engine's web page sent what PHP prints (and its other messages to the framing page) to `'*'`: any site framing a
published game could read it; it now goes to the parent's origin only. The embed kit (`tools/embed/jumphp-embed.php`) kept every
`?v=...` variant on disk with no limit (a visitor could fill the partner's disk): `cache_mb` (default 1024) now bounds it.
`Icmp` refuses a host starting with `-` (it would be an option of the system's `ping`).
- **0.5.65** — `bin/jumphp runner:install` and `webshot` pasted values into `sh -c` (shell injection through `--forge`, `--labels`,
the registration token, webshot keys): they are now passed as arguments, and validated.
## To audit (not done yet)
Deeper reviews left for later (they need a dedicated pass each):
1. **The playground** (https://git.jumphp.net/jumphp/jumphp-playground): sign-in, uploads and private files, the TCP / SSH / UDP /
ICMP bridge and its tickets, the MCP server and its tokens, the administration, custom domains, the embed API (`/api/embed/...`:
does it answer `Cache-Control: immutable` for any `?v=` value?), framing headers (`frame-ancestors`) of the play pages.
2. **The JumPHP runtime** (`apps/runtime`, ~2900 lines, and `apps/runtime-android`, `WsServer.kt`): a local WebSocket server any web
site can try to reach. Host / Origin / ticket / consent checks were looked at quickly and look right; to review in depth: the
origin allow-list, ticket verification (replay, expiry, key rotation), the private / reserved address filtering after DNS
resolution (rebinding between check and connect), limits, `grants.json` handling, self-update signature.
3. **postMessage listeners of `engine/web/`**: they check `event.source === window.parent` but not the parent's origin (harmless
messages today: hot reload re-reads the server, notification state, install info); add an origin check if a message ever carries
data or commands.
4. **Tauri apps** (`engine/src/Tauri`, `tauri/`): what a page can ask natively (`native.*`, `Shell::openPath`) when an app shows remote
content.