Repository navigation
Security hardening: safe previews, proxy header trust, input validation - #27
Merged
Merged
Conversation
- inline preview only serves inert types (images, video, audio, PDF, plain text); HTML/SVG and everything else is forced to download with nosniff and a sandbox CSP, so a file on a share cannot run script in this app's origin - security headers on every response (CSP, X-Frame-Options, nosniff, Referrer-Policy, no-store on the API) - stop trusting X-Forwarded-* from every peer: it let any client forge its address and bypass the failed-login throttle. FORWARDED_ALLOW_IPS now defaults to 127.0.0.1 and is documented for reverse-proxy setups - validate host and share name (no separators), range-check port on update, and restrict the recovery link to http(s) - CI: pin actions by SHA, read-only token; stop the bimonthly update from committing its own report files
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.
Fixes found in a security review:
--forwarded-allow-ips=*, so any client could forgeX-Forwarded-For. Now defaults to127.0.0.1; setFORWARDED_ALLOW_IPSto your proxy's IP if you use one.85 backend tests pass, including new regression tests.