logo

Database

Textmagic Api Key

Description

The source code repository contains sensitive information: TextMagic API Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches TextMagic API Key patterns in source code and configuration files

Vulnerable code example

TEXTMAGIC_USERNAME=charlesconway
TEXTMAGIC_API_KEY=D6WzNtXJle7Qph4D5Y47PP6ANlUj41
export TEXTMAGIC_KEY="IJLNhsH8HZnPiCATX0yyyFjmCXPO37"
curl https://rest.textmagic.com/api/v2/ping -H 'X-TM-Username: charlesconway' -H 'X-TM-Key: VRtfZ6kbPbEHOkuBsXxRUrb1Io9Pv5'
import TextMagic
configuration = TextMagic.Configuration(
    username='charlesconway',
    password='Hcd1kADLqGZMmyAn4tvhJKqOC0PzNm'...