logo

Database

Freshbooks Secret Key

Description

The source code repository contains sensitive information: FreshBooks Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

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

Vulnerable code example

FRESHBOOKS_CLIENT_SECRET=6d3a9f2c7e2b4085d6a3f9c2e7b1408a5d6f3c9e2a7b14d8f6c3a9e2d7b1f405
export FRESHBOOKS_SECRET='b2e8c5f1a9e6307eb2c8f5a1e9d6307b4c2e8f5a1d9b6e307c2a8e5f1b9d6304'
freshbooks:
  client_id: 943f08ec5a6797f579e2682103868216f2d00a64faf0fb36e8257c8acceebfc6
  client_secret: 3f9a6c2e8b2d5074f3a9c6e2b8d15074a3f6c9e2d8b1a5f74c3e9a6f2d8b1507
curl -X POST https://api.freshbooks.com/auth/oauth/token -H 'Content-Type: application/json' -d '{"grant_type": "authorization_code", "client_id": "943f08ec5a6797f579e2682103868216f2d00a64faf0fb36e8257c8acceebfc6", "client_secret": "8c5f2a9e6d2b3074c8f5a2e9d6b1307a4c8e5f2d9a6b1e37f4c8a5e2d9f6b130", "code": "6ccc545aeca51e5cbe9fc37da025281bc9e7662a1b7b1b492e67a3aa94b66021", "redirect_uri": "https://example.com/cb"}'
from freshbooks import Client
...