fix(calling): remediate P0 security vulnerabilities in CallingClient, registration, Contacts, and Voicemail - #5177
Draft
mkesavan13 wants to merge 1 commit into
Draft
fix(calling): remediate P0 security vulnerabilities in CallingClient, registration, Contacts, and Voicemail#5177mkesavan13 wants to merge 1 commit into
mkesavan13 wants to merge 1 commit into
Conversation
Jira: https://jira.cisco.com/browse/CAI-8462 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 36356287 | Triggered | Generic High Entropy Secret | 6d21dd0 | packages/calling/src/Voicemail/BroadworksBackendConnector.test.ts | View secret |
| 36356287 | Triggered | Generic High Entropy Secret | 6d21dd0 | packages/calling/src/Voicemail/BroadworksBackendConnector.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
COMPLETES https://jira.cisco.com/browse/CAI-8462
This pull request addresses
Four P0 security vulnerabilities in
packages/calling/srcidentified in CAI-8462:subclaim was used as a userId, allowing attacker-controlled values to propagate.setStatus(INACTIVE), timer clears,lineEmittertransitions, andfailoverImmediatelycould execute concurrently.encryptionKeyUrlvalues without scheme validation, enabling potential KMS redirect to attacker-controlled endpoints.by making the following changes
validateBwToken()— parses JWT structure, validates required claims (sub,iat), checks expiry; invalid/expired tokens route to the existing UNAUTHORIZED (401) path.setStatus(INACTIVE), clear timers,lineEmitter,failoverImmediately) inthis.mutex.runExclusive;reconnectOnFailure/handle404KeepaliveFailureremain outside the lock to avoid nested-runExclusivedeadlock.isValidEncryptionKeyUrl()— validatesencryptionKeyUrlagainst akms://scheme allowlist; untrusted URLs are rejected with a logged error before anywebex.internal.encryptionKMS call.isTrustedMobiusHost()— validates each cluster-supplied host against.infra.webex.comtrusted domain(s); untrusted hosts are skipped with a logged error in both the discovery loop and theuseDefaultfallback.Change Type
The following scenarios were tested
sub; tampered/expired/missing-claim token returns 401.infra.webex.comhost proceeds; untrusted host skipped in discovery loop and fallbackTesting
Acceptance Criteria
subused as userId; invalid/expired tokens return 401encryptionKeyUrlvalidated againstkms://scheme allowlist before KMS call; untrusted URLs rejected.infra.webex.comdomain before bearer-authed request; untrusted hosts skippedContract Discovery Warnings
The GAI Coding Policy And Copyright Annotation Best Practices
I certified that
Jira: https://jira.cisco.com/browse/CAI-8462
🤖 Generated with Claude Code