For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Secrets found in webhook URL

Rule Details

Cortex AppSec Rule ID

APPSEC_CICD_148

Category

Credential Hygiene

Severity

HIGH

Impact

Including secrets in a webhook URL comes with risks: • Apps and actors with access to the webhook URL will have access to the secret • Third party systems logging webhook URLs could gain access to the secrets included in the URL • When part of an unencrypted HTTP request, a webhook URL exposes the secret to anyone with access to the traffic such as cache servers and firewalls • Placing secrets in a webhook URL makes it more difficult to rotate them.

An attacker could use these secrets to gain unauthorized access to services that are used to authenticate the webhook against.

To secure your webhook recipient’s service from unauthorized access, remove secrets from webhook URLs, and use alternative methods to authenticate against 3rd party systems.

For example, you can use a GitHub secret token in the webhook mechanism by including it in the request header. This ensures that the secret is not exposed in the URL.

For more information refer to: https://docs.github.com/en/developers/webhooks-and-events/webhooks/securing-your-webhooks.

Last updated

Was this helpful?