Repository navigation
Conversation
|
@jdotc1 is attempting to deploy a commit to the himanshu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
himanshu748
requested changes
Nov 22, 2026
himanshu748
left a comment
Owner
There was a problem hiding this comment.
Please require a left boundary for the X-Amz-Signature field name as well as the existing right boundary for the value. The current lookbehind can match inside a longer, unrelated field name and cause the whole memory to be blocked. Add a synthetic negative case with a prefixed field name while preserving coverage of the real query parameter.
This branch has not been deployed
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 gap
AWS S3 presigned URLs authenticate through a 64-hex-character
X-Amz-Signaturequery parameter. The existing named secret patterns did not recognize it, and its hex-only value evaded the mixed-class entropy fallback. An unexpired signed URL can confer object access.Fix
Recognize the complete SigV4 query signature with a bounded, case-insensitive pattern and identifier boundary. Replace only the signature value, leaving the query parameter name and ordinary URL context intact. No changes to other credential rules.
Regression
Synthetic tests cover a complete presigned URL, redaction idempotence, mixed-case spelling, short/oversized/nonhex near misses, and preservation of ordinary fields. No live credentials or network access needed.
Reference: https://docs.aws.amazon.com/AmazonS3/latest/developerguide/sigv4-query-string-auth.html