Skip to content

fix(security): bound HTTP requests and protect web admin sessions - #28

Merged
ghptc merged 1 commit into
masterfrom
fix/security-web-boundaries
Oct 27, 2026
Merged

ghptc merged 1 commit into
masterfrom
fix/security-web-boundaries

Conversation

@ghptc

@ghptc ghptc commented Oct 27, 2026

Copy link
Copy Markdown
Owner

The built-in HTTP parser could allocate from a declared body size and then copy a larger TCP chunk. The authenticated Web Console also rendered player-controlled markup and logged bearer cookies; password changes left existing browser cookies valid.

Bound server requests to16KiB headers/64KiB body, validate framing/methods/length arithmetic, reserve NUL termination and reject excess data. Parse bounded cookies, escape untrusted Web text while retaining trusted color spans, revoke browser sessions on password/credential changes, add SameSite=Strict, remove bearer logging and omit remote command arguments from logs by default. Outbound HTTP client/download implementation is unchanged.

Validation: actual-function ASan/UBSan tests for fragmented/malformed requests, allocation boundary/excess, cookies and boundedHTML; actual password-reset revocation and RCON log canaries. Build and83 tests pass(oneoptional skip). Independent security reviewer reran tests, caught/corrected malformed-method parsing, and approved final focused source/local scope. See docs/security/http-web-boundaries.md.

Remaining audit gaps include active SourceTCP session revocation, absolute/idle Web expiry, complete CSRF policy and administrator hierarchy checks; these are not claimed fixed. Current production TCP RCON/Web is not publicly published/SGallowed, but latent source flaws must be fixed before exposure/bridge activation. No production exploits, deployment, merge, credential rotation or bridge enabling. Require mandatory CI and manual owner review.

@ghptc
ghptc marked this pull request as ready for review October 27, 2026 19:57
@ghptc
ghptc merged commit 381cce3 into master Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant