logo

Database

Midtrans Sandbox Secret Key

Description

The source code repository contains sensitive information: Midtrans Sandbox Secret Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    Matches Midtrans Sandbox Secret Key patterns in source code and configuration files

Vulnerable code example

MIDTRANS_SERVER_KEY=SB-Mid-server-aB3dEfGhIjKlMnOpQrStUvWx
midtrans_sandbox_server_key: "SB-Mid-server-Xy9ZwVuTsRqPoNmLkJiHgFeDcBa"
'server_key' => env('MIDTRANS_SERVER_KEY', 'SB-Mid-server-Qw7Zx2Vb9Nm4Kp6Rt1LsJhGfDs')
MIDTRANS_SERVER_KEY=SB-Mid-server-jgAqcvfUJKa_pAtSs1kwtj0F