-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-22696] send enumeration protection #6352
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
[PM-22696] send enumeration protection #6352
Conversation
New Issues (3)Checkmarx found the following issues in this Pull Request
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6352 +/- ##
==========================================
+ Coverage 50.04% 50.10% +0.06%
==========================================
Files 1832 1834 +2
Lines 81531 81561 +30
Branches 7226 7225 -1
==========================================
+ Hits 40800 40864 +64
+ Misses 39162 39127 -35
- Partials 1569 1570 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/Identity/IdentityServer/RequestValidators/SendAccess/SendAccessConstants.cs
Fixed
Show fixed
Hide fixed
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.
The only change to AC code is some formatting, approved.
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.
Some really small things, but this is stellar work overall!
src/Identity/IdentityServer/RequestValidators/SendAccess/SendAccessConstants.cs
Show resolved
Hide resolved
test/Identity.Test/IdentityServer/SendAccess/SendAccessGrantValidatorTests.cs
Show resolved
Hide resolved
test/Identity.IntegrationTest/RequestValidation/SendAccess/SendAccessTestUtilities.cs
Show resolved
Hide resolved
...dentity/IdentityServer/RequestValidators/SendAccess/SendNeverAuthenticateRequestValidator.cs
Show resolved
Hide resolved
|
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.
Nice work! Thank you for your patience with all the naming tweaks!
AC Team is no longer a code owner, no review needed from me :) |
🎟️ Tracking
PM-22696
📔 Objective
To prevent enumerating of send GUIDs we return deterministic errors for sends that do not exist, expired, or maximum count has been reached.
This pseudo-random error generation hopefully will disuade enumeration attacks.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes