logo

Database

Vapid Private Key

Description

The source code repository contains sensitive information: VAPID Private Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches VAPID Private Key patterns in source code and configuration files

Vulnerable code example

VAPID_PUBLIC_KEY=BHvN8rLJEGiZouRRfc52kGMu9xEf9tOuOD49HLfqdHpS7HLRrecN9JWpjqye8DFtwaQmLhzAfCie6Vvcx49CkSg
VAPID_PRIVATE_KEY=m7uhkhyTTfeJyvkuid_TRzimqqsiaXXpbmy7H8zp2YY
export WEBPUSH_VAPID_PRIVATE_KEY="ZchkymSmgGMmwDHsdHXKd6ykpUnkS_eNw6y1-lDkFb4="
webpush.setVapidDetails(
  'mailto:admin@example.com',
  'BNNt804qBwfPqZQHYHyJjCyl2SzQVGRwyUxky1BgiLJzwetJ8wZ43duNXzqY__CtKVeg7qaJ_gm1DRzdIyzyb10',
  'eU6bMESIhobTxKCCMkJkZm1ZNv_qv1BMWnMeCJSxlQg'
);...