logo

Database

Mixpanel Secret Key

Description

The source code repository contains sensitive information: Mixpanel Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Mixpanel Secret Key patterns in source code and configuration files

Vulnerable code example

MIXPANEL_SERVICE_ACCOUNT_SECRET=Qm7xTz2LpV9cRk4sWn8YbF3hJd6GaE1u
MIXPANEL_SERVICE_ACCOUNT_USERNAME=etl.a3f9c1.mp-service-account
MIXPANEL_SERVICE_ACCOUNT_PASSWORD=Hk3vNq8RzT1wXc5bLm9pYs2dFg7jUe4a
mixpanel:
  service_account_secret: "Zr5Kd8Wq2Nm7Xv3Lc9Tb1Hs6Fj4Py0Ga"
curl https://mixpanel.com/api/app/me --user "export.c81d2e.mp-service-account:Bw4Xn9Ks2Qd7Rm1Vt6Lz3Hc8Jp5Fy0Ue"
mputils = MixpanelUtils(service_account_username='ops.7e21ab.mp-service-account', service_account_password='Lx2Gt7Vb4Nw9Kq1Zd6Rs3Mh8Pc5Yj0Fa', project_id=1234567)
MIXPANEL_API_SECRET = '9f3a6c1e8b2d7f405a6e1c9b3d8f2a7c'