-
Notifications
You must be signed in to change notification settings - Fork 22
Harden OTP system: brute-force protection, memory cleanup, and key collision fix #224
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
Open
Koaio
wants to merge
28
commits into
Story-Of-Alicia:master
Choose a base branch
from
Koaio:Harden-OTP-system
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
05fddaf
Enhance OtpSystem with improved code handling
Koaio 2e42714
Enhance OtpSystem with configurable settings
Koaio 00d8d4a
Update PrivateChatOtpConstant value
Koaio 7424cb9
Merge branch 'master' into Harden-OTP-system
Koaio b35da4b
Add default constructor to OtpSystem Settings
Koaio 404492f
Add default constructor for OtpSystem
Koaio f401dfd
Refactor OtpSystem constructor overloads
Koaio c4e008a
Change code generation to use uint32_t type
Koaio b26f90c
Update include/server/system/OtpSystem.hpp
Koaio de2fe62
Update include/server/system/OtpSystem.hpp
Koaio a133f76
Update include/server/system/OtpSystem.hpp
Koaio 293db6f
Update include/server/system/OtpSystem.hpp
Koaio 38f5b15
Merge branch 'Story-Of-Alicia:master' into Harden-OTP-system
Koaio f36079e
Merge branch 'master' into Harden-OTP-system
Koaio d954d14
Update OtpSystem.hpp
Koaio d5b80a1
Merge branch 'master' into Harden-OTP-system
Koaio c87ae10
Merge branch 'Story-Of-Alicia:master' into Harden-OTP-system
Koaio 143775d
config: add Otp settings struct to Config
Koaio b48a7fd
config: parse OTP section from server config file
Koaio e373823
OtpSystem: take ServerInstance& and drop local Settings
Koaio 0c966b2
OtpSystem: read config from ServerInstance::GetSettings().otp
Koaio 7719f81
ServerInstance: construct OtpSystem with *this
Koaio dc1e4c9
OtpSystem: merge AttemptRecord into Code, drop _attempts map
Koaio 33ec0f6
OtpSystem: invalidate code after 5 failed attempts, single _codes map
Koaio 6dde14c
config: remove lockoutDuration from Otp settings
Koaio aa545b8
config: stop parsing otp lockout_duration
Koaio 3a2a90e
Merge branch 'master' into Harden-OTP-system
Koaio 316fa01
Merge branch 'master' into Harden-OTP-system
Koaio 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
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.
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.
Not necessary. Invalidate the key/code after 5 unsuccessful attempts to use it.