Skip to content

Commit 67bbe0c

Browse files
committed
feat: add checkpoint 14 for static application security testing
1 parent 2fff547 commit 67bbe0c

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

labs/security/sast-lab/README.md

Whitespace-only changes.

labs/security/sast-lab/app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const password = 'admin123';
2+
3+
function login(username) {
4+
eval(`console.log("Welcome ${username}")`);
5+
}
6+
7+
console.log(password);
8+
9+
login('WenDev');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "sast-lab",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "app.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"type": "commonjs"
13+
}

0 commit comments

Comments
 (0)