Repository navigation
fix: validate frp ports and recreate tunnel secrets with O_EXCL - #4
Merged
Merged
Conversation
frp localPort/remotePort must be integers in 1-65535 before they reach the TOML, localIP is escaped, other control bytes are \uXXXX-escaped, and the fixed /tmp config and playit secret files are removed and recreated with O_EXCL at 0600 so a planted file or symlink cannot redirect or widen them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security review of the tunnel supervisor (2026-11-24). Fixes, by severity:
localPort/remotePortfromBACKING_SERVICE_PORTwere written raw into the frpc TOML andlocalIPwas unescaped, so a value with a newline could add a[[proxies]]table (not reachable today: the operator passes integers)%d;localIPescapedescapeTomlStringleft other control bytes raw\uXXXX/tmppaths andos.WriteFilefollows symlinks and keeps an existing file's modeO_EXCLat 0600Not changed: a tailnet peer allowed by the ACL can hold all 128 forwarding slots (Medium availability, needs a per-source cap design); health/metrics on :8091 are unauthenticated by spec and expose only closed-set states.
Checked and sound: forward targets fixed to the backing Service, no subnet routes, secrets never logged or on argv, credential path containment, TLS on the status PATCH, bounded UDP sessions, distroless nonroot images, playit download pinned by SHA-256.
New tests only (4); no existing test changed (checked by a separate test-diff review).
specs.mdupdated.Generated by Claude Code