logo

Database

Db2 Connection String

Description

The source code repository contains sensitive information: DB2 Connection String

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches DB2 Connection String patterns in source code and configuration files

Vulnerable code example

"uri": "db2://bluadmin:Xq7vR2mK9pLw@abc.databases.appdomain.cloud:30376/BLUDB"
engine = create_engine("ibm_db_sa://db2inst1:Tz4nB8cQ1sVy@db2.example.com:50000/SAMPLE")
engine = create_engine("db2+ibm_db://app:Hk3dW9fP2xNa@10.0.0.5:50000/sample")
DB2_URL=ibm_db_sa://svc:Rm6tJ1gZ8wQe@/SAMPLE
db2://root:Wv5cN2kL8rTy@db2.local:5434/hellothere