-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat(core): Expose the confirm password endpoint #43000
Conversation
Signed-off-by: provokateurin <[email protected]>
fa8f01d
to
a84c71d
Compare
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.
Sending auth data should pass the password check:
server/lib/private/User/Session.php
Line 605 in 7f2fdd8
$this->session->set('last-password-confirm', $this->timeFactory->getTime()); |
The problem is you are sending auth + cookies, so we use the cookies only and the line above is never ran. We should fix the PasswordConfirmMiddleware to check if auth data was provided with the request.
My testing confirms:
|
After the discussions in #43034 we came to the conclusion that this PR makes more sense and is less susceptible to any additional security holes the other PR could open up. |
Bleh should have re-opened before pushing, will create a new PR |
Summary
This allows non-web clients to confirm the password in order to use endpoints that require it.
Checklist