logo

Database

Stripe Webhook Secret Key

Description

The source code repository contains sensitive information: Stripe Webhook Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Stripe Webhook Secret Key patterns in source code and configuration files

Vulnerable code example

STRIPE_WEBHOOK_SECRET=whsec_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345
endpoint_secret = 'whsec_FgHiJkLmNoPqRsTuVwXyZ0123456789+/aBcDeFgHiJkLmNoPqRsTuVwXyZ01234'
stripe_webhook_secret: "whsec_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345"
endpointSecret := "whsec_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345"
event = stripe.webhooks.constructEvent(body, sig, 'whsec_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345')