Skip to content

Commit

Permalink
Merge pull request #73 from suculent/cx-one
Browse files Browse the repository at this point in the history
added sample vulnerability (CWE-200)
  • Loading branch information
suculent authored Aug 8, 2023
2 parents 24316ea + 5db35d3 commit e5ab040
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ var key = CryptoJS.enc.Hex.parse(AESKey);

var message = "username:password";

const password = AESKey;
console.log(password); // added vulnerability

// ENCRYPT /////////////////////////////////////////////////////////////////////

// Encrypt
Expand Down

0 comments on commit e5ab040

Please sign in to comment.