-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: corrected verification endpoint & validation logic for bombbomb #3462
Merged
kashifkhan0771
merged 15 commits into
trufflesecurity:main
from
sahil9001:bombbomb-verfication-endpoint-fix
Dec 16, 2024
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ee7f670
fix: corrected verification endpoint for bombbomb
sahil9001 6f201a4
fix: corrected verification endpoint and validation logic for bombbomb
sahil9001 dbfc716
Remove debug binary file from tracking
sahil9001 5e8cd0e
Merge remote-tracking branch 'upstream/main' into bombbomb-verficatio…
sahil9001 6636657
Merge branch 'main' into bombbomb-verfication-endpoint-fix
kashifkhan0771 a66a2cb
feat: added common jwt pattern
sahil9001 c9af6f2
Merge remote-tracking branch 'upstream/main' into bombbomb-verficatio…
sahil9001 88ec64b
fix: fixed the regex to include common prefix
sahil9001 e28c8f3
Merge remote-tracking branch 'upstream/main' into bombbomb-verficatio…
sahil9001 22ebe52
fix: added common prefix to JWT Pattern
sahil9001 ea9f70e
Merge remote-tracking branch 'upstream/main' into bombbomb-verficatio…
sahil9001 71dc1df
chore: changed the regex to call the function `BuildRegex`
sahil9001 799f644
Merge branch 'main' into bombbomb-verfication-endpoint-fix
kashifkhan0771 f02562b
Merge branch 'main' into bombbomb-verfication-endpoint-fix
kashifkhan0771 81100ed
Merge branch 'main' into bombbomb-verfication-endpoint-fix
kashifkhan0771 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sahil9001 this is too loose. Take a look at this for a reference https://github.com/gitleaks/gitleaks/blob/43fae355e6fe4d99d2a7b240a224b85e2903aeb4/config/gitleaks.toml#L2311 or even
trufflehog/pkg/detectors/formio/formio.go
Line 23 in 6a367ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it changes with each refresh, apparently there is a
jti
field which changes each time which eventually changes the first part each time as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sahil9001 JWT are base64 encoded so that means there will be a common prefix for all JWT,
base64('{"')=ey
. Take a look at https://www.ibm.com/docs/en/cics-ts/6.x?topic=cics-json-web-token-jwt.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zricethezav , thanks, I read more about it, I found out that —
typ
part is common for all JWT tokens.alg
andjti
changes due to which we can only constraint the JWT common prefix uptoey
.Please take a look, I have made the change.