logo

Database

Smb Password

Description

The source code repository contains sensitive information: SMB Password

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches SMB Password patterns in source code and configuration files

Vulnerable code example

smb://jdoe:Xq7vR2mK9pLw@fileserver.example.com/share
SMB_URL=smb://CORP;svc_backup:Tz4nB8cQ1sVy@10.0.0.5/backups
mount -t cifs //nas.local/media /mnt/media -o username=app,password=Hk3dW9fP2xNa,vers=3.0
//fs01/projects /mnt/projects cifs username=build,password=Rm6tJ1gZ8wQe,uid=1000 0 0
smbclient //fs01/share -U 'CORP\jdoe%Wv5cN2kL8rTy' -c ls
smbclient //fs01/share --user=jdoe%Bk2nX7pQ4vWd
net use Z: \\fs01\share Mz5kT9wB3xQe /user:CORP\jdoe /persistent:no
net use \\fs01\share /user:CORP\jdoe Pq8sL2vN6tRw...