logo

Database

Fernet Secret Key

Description

The source code repository contains sensitive information: Fernet Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

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

Vulnerable code example

FERNET_KEYS = ['Zq3vH8mK2pLw9sTxNcB4dF6gJ1rU5yEaW0iOoP7lQ2c=']
f = Fernet(key=b'Rm6tJ1gZ8wQeKx2vN9bH4cP7sL3dF5yA0uI8oE1rT6s=')
AIRFLOW__CORE__FERNET_KEY=KnzwITeM8CocV_3C5rlNyAG7WLYQ_gFTvQlr2q96lpU=
[core]
fernet_key = 8FYNNN5dPW5Ynw6zcram0vpYT4Fa3M-CxU8xxKs_vrU=
      AIRFLOW__CORE__FERNET_KEY: 'RxIA7yJ62g_KR29HbiQuxe9WA0shKPWFXYYevToQrsk='
fernetKey: "W2x_EfDkunYVphZ9qKrxIQtFNRhncH6Mm9dAhLWY1E4="
f = Fernet(b'pzOda4hSnJTXdVXYxCowDtQdw5WMOVBGmCw3MfIqlIQ=')...