Skip to content

Commit bb3a320

Browse files
author
Sakshis
committed
modified code of python-webrepl-empty-password-python
1 parent df27814 commit bb3a320

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

rules/python/security/python-webrepl-empty-password-python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ utils:
4343
all:
4444
- has:
4545
kind: string_start
46+
not:
47+
precedes:
48+
stopBy: end
49+
kind: string_content
4650
- has:
4751
kind: string_end
4852
inside:

tests/__snapshots__/python-tormysql-hardcoded-secret-python-snapshot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ snapshots:
4444
style: secondary
4545
start: 0
4646
end: 18
47+
- source: '"'
48+
style: secondary
49+
start: 21
50+
end: 22
51+
- source: 123secure
52+
style: secondary
53+
start: 22
54+
end: 31
55+
- source: '"'
56+
style: secondary
57+
start: 31
58+
end: 32
4759
- source: '"123secure"'
4860
style: secondary
4961
start: 21

0 commit comments

Comments
 (0)