-
Notifications
You must be signed in to change notification settings - Fork 44
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
CRITICAL bug in your verify api #122
Comments
using the latest client 4.0.1 |
@huckym Thanks for opening this issue. Could you share steps to reproduce this? I have a bit of a hard time understanding what you did based on just this snippet of JSON. |
Let me clarify. We use your node-js client but not sure if it is related to just this client but the underlying api.
|
And |
yes, that was the json object :) |
ps: sorry for the being lazy with my quick report but hope it is clear now |
Clear to me now. So what seems to happens is the following. If you make an API request to verify a token but you submit and empty token I confirmed that this has no side effects (the verify code can still be verified only with the correct token). But I will put something up for internal team to put proper validation on this parameter. This would result in a more explicit error message to the client. Thanks again for reporting. [1] https://developers.messagebird.com/api/verify/#view-a-verify-object |
Thanks for explaining and good to know this was specific to empty token case. Yes, there is no (documented) distinction between this and a successful validation so definitely warranting a review. We're now checking for valid code length too |
Your api is validating an empty string as valid:
The text was updated successfully, but these errors were encountered: