[verified] sanitize peer chat/control/bidi before store and TUI render
Some checks failed
ci / test (pull_request) Failing after 2m2s
Some checks failed
ci / test (pull_request) Failing after 2m2s
Strip C0 (except tab/newline), DEL, C1, and bidi/format marks at ingest and render; keep ZWJ; lossy UTF-8 stays U+FFFD. Reject the same set in fil names. Docs match the policy.
This commit is contained in:
parent
cb91ba2b78
commit
e3738c51f7
9 changed files with 181 additions and 5 deletions
|
|
@ -52,6 +52,17 @@ intentional clearnet socket is optional `monero-wallet-rpc` on **loopback TCP**
|
|||
Do not add STUN/ICE/WebRTC, a DHT, SOCKS/C-tor fallback, or “direct TCP when
|
||||
the onion is slow.” Those are the Tox-over-Tor leak class.
|
||||
|
||||
## Peer text is untrusted display data
|
||||
|
||||
Chat bodies and `fil ` names come from a Noise peer, not from the local user.
|
||||
They are display data, not terminal commands. A friend (or anyone who stole
|
||||
that session) can put ESC/CSI/OSC, C1 controls, or bidi overrides in a
|
||||
payload. OnionWire strips those at ingest (so sqlite history is clean) and
|
||||
again at TUI render (so rows written before this rule stay inert). Filenames
|
||||
that contain the same characters are rejected, not rewritten. This is a
|
||||
UI-redressing / terminal-injection boundary, not a confidentiality control:
|
||||
the peer already knows the plaintext they sent.
|
||||
|
||||
## Out of v1
|
||||
|
||||
Prosody, XMPP, s2s, MAM, carbons, outbox, multi-device, DHT / name server,
|
||||
|
|
|
|||
Loading…
Reference in a new issue