-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix(security): harden auth, SSRF, injection, and CORS across API routes #3792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+924
−340
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6f43fc9
fix: prevent auth bypass via user-controlled context query param in f…
waleedlatif1 be41fbc
fix: use randomized heredoc delimiter in SSH execute-script route
waleedlatif1 86d7a20
fix: escape workingDirectory in SSH execute-command route
waleedlatif1 331e9fc
fix: harden chat/form deployment auth (OTP brute-force, CSPRNG, HMAC …
waleedlatif1 dac7dda
fix: harden SSRF protections and input validation across API routes
waleedlatif1 c5ecc19
lint
waleedlatif1 35bc843
fix(file-serve): remove user-controlled context param from authentica…
waleedlatif1 dea9fbe
fix: handle legacy OTP format in decodeOTPValue for deploy-time compat
waleedlatif1 7e56894
fix(mcp): distinguish DNS resolution failures from SSRF policy blocks
waleedlatif1 16072b5
fix: make OTP attempt counting atomic to prevent TOCTOU race
waleedlatif1 44b8aba
fix: check attempt count before OTP comparison to prevent bypass
waleedlatif1 bf81938
fix: validate OIDC discovered endpoints against SSRF
waleedlatif1 002748f
fix: remove duplicate OIDC endpoint SSRF validation block
waleedlatif1 5493234
fix: validate OIDC discovered endpoints and pin DNS for 1Password Con…
waleedlatif1 994e711
lint
waleedlatif1 971888d
fix: replace KEEPTTL with TTL+EX for Redis <6.0 compat, add DB retry …
waleedlatif1 2f85b31
fix: address review feedback on OTP atomicity and 1Password fetch
waleedlatif1 1313265
fix: treat Lua nil return as locked when OTP key is missing
waleedlatif1 f1fd878
fix: handle Lua nil as locked OTP and add SSRF check to MCP env resol…
waleedlatif1 1cc6ed4
fix: narrow resolvedIP type guard instead of non-null assertion
waleedlatif1 3db061b
fix: bind auth tokens to deployment password for immediate revocation
waleedlatif1 78c0454
fix: bind auth tokens to deployment password and remove resolvedIP no…
waleedlatif1 b7bc591
fix: update test assertions for new encryptedPassword parameter
waleedlatif1 4790853
fix: format long lines in chat/form test assertions
waleedlatif1 33e6576
fix: pass encryptedPassword through OTP route cookie generation
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.