-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05d780c
commit c8637f0
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// example.js | ||
|
||
// Hardcoded API key (leaked secret) | ||
const apiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"; // Stripe test API key | ||
|
||
// Hardcoded password (leaked secret) | ||
const dbPassword = "p@ssw0rd123"; // Plaintext password | ||
|
||
// Hardcoded secret key (leaked secret) | ||
const secretKey = "s3cr3tK3yToTestTheScan"; // Example secret key | ||
|
||
// AWS Access Key (leaked secret) | ||
const awsAccessKeyId = "AKIAIOSFODNN7EXAMPLE"; // Example AWS access key | ||
const awsSecretAccessKey = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"; // Example AWS secret access key | ||
|
||
// Database connection string (leaked secret) | ||
const connectionString = "mongodb://username:p@ssword123@localhost:27017/mydatabase"; // Example MongoDB connection string | ||
|
||
console.log("This file contains some sensitive information that should not be leaked."); |