Skip to content

Commit a68f248

Browse files
- function calls
1 parent f1b8d26 commit a68f248

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

CWE-20/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
const endsWith = (x, y) => {
22
return x.lastIndexOf(y) === x.length - y.length
33
}
4-
5-
endsWith('x', 'xx')

CWE-312/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ const main = (key, value) => {
44
item[key] = value
55
sessionStorage.setItem('vulnerable', JSON.stringify(item))
66
}
7-
8-
main('password', 'password')

0 commit comments

Comments
 (0)