interplane.Get Omega
Read in your language

aien-translate

aien-dev/aien-translate

Brought by drakestapleton

branch main Branches Tags History

aien-translate / SECURITY.md

58 lines · 2969 bytes Raw Blame History Rendered
1# Security policy
2
3## Reporting a vulnerability
4
5Report privately. Do not open a public issue, pull request or discussion about it.
6
71. GitHub: open this repository's Security tab and choose "Report a vulnerability". This
8 creates a private advisory that only the maintainers can see. If that option is not shown,
9 private vulnerability reporting has not been enabled for this repository yet; use email.
102. Email: drake@aienos.com with the subject `[aien-translate] security report`.
11
12Include the commit or release you tested, the component (path), steps to reproduce, and what an
13attacker gains. If the report involves a secret, say where it was exposed and do not send the
14secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly.
15
16## Response targets
17
18This project has one maintainer; the targets below are best effort and stated honestly.
19
20- Acknowledgement: within 3 working days.
21- Triage and severity: within 7 days of acknowledgement.
22- Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days
23 otherwise, with a status update at least every 14 days until closed.
24- Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise)
25 once the fix is on the default branch. Default embargo 90 days, negotiable.
26
27## Scope
28
29`aien-translate` is a Rust HTTP server that answers the translate.js protocol by sending page text
30to an OpenAI-style chat model server, checks every translation with a guard, and caches results in
31SQLite. `scripts/` and `demo/` hold Python client tools.
32
33In scope:
34
35- A request that reaches the model or cache without the bearer token when `--auth-token-file` is
36 set, or a token comparison that leaks the token.
37- The server listening on a non-loopback address (`src/main.rs` refuses this).
38- A bypass of admission limits in `src/lib.rs`: 16 KiB body, 40 texts and 3,000 characters per
39 request, six translation requests per minute per directly connected IP, 1,024 tracked IPs, one
40 active translation with HTTP 429 instead of queueing.
41- A translation that passes the guard (`src/guard.rs`) while dropping or altering a link, email
42 address, backticked code span, placeholder, keep-list name or inline tag marker, or that carries
43 markup able to run script in the visitor's page.
44- Cache poisoning: one visitor's request causing another visitor to receive attacker-chosen text.
45- SQL injection in `src/cache.rs`.
46
47Out of scope:
48
49- translate.js itself (not in this repository), the model server, the reverse proxy that README
50 requires for public traffic, and the host operating system.
51
52## Supported versions
53
54Only the default branch `main`; there is no release (Cargo version `0.1.0`). Reports against older commits are welcome but fixes land on the default branch only.
55
56## Status
57
58No hosted CI workflow is tracked at this revision. No certification, no bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it.