logo

Database

Recaptcha Secret Key

Description

The source code repository contains sensitive information: reCAPTCHA Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

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

Vulnerable code example

RECAPTCHA_SECRET_KEY=6LeLgm-OAAAAAUyR576TFe-4dDESxtDvz1wLxd0N
NOCAPTCHA_SECRET=6Lcnxt_EAAAAArbB9zZfmJ_Ss_UpNL0EZGirQynE
RECAPTCHA_PRIVATE_KEY = '6LdBzF0gAAAAAoSgpKAk9Sxqafhl4mCN2L0Nsk1P'
define('RECAPTCHA_SECRET', '6LeDxnpoAAAAAuM_kMVJSSuBo1BQdHe5cZUpHD-2');
$response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LemvKlNAAAAAsg0oDNbp7zU7WBowWyfULhDbDa3&response=" . $token);
recaptcha:
  secret: "6LcWJGyCAAAAAaDJiz5_JCVUlurv_5GMEraTV3YD"
'recaptcha' => [...