-
Notifications
You must be signed in to change notification settings - Fork 0
Node SDK webhook handler #47
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
base: main
Are you sure you want to change the base?
Conversation
cb-karthikp
commented
Nov 24, 2025
- Event handler and types for webhook events.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
|
||
| const credentials = Buffer.from(parts[1], 'base64').toString().split(':'); | ||
| if (credentials.length !== 2) { | ||
| throw new Error("Invalid credentials"); |
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.
Bug: Password with colon rejected in Basic Auth
The Basic Auth parser splits credentials on all colons instead of only the first one. Per RFC 7617, passwords can contain colons, but split(':') creates multiple array elements when this happens. The subsequent check credentials.length !== 2 then incorrectly rejects valid credentials where the password contains a colon character.