Skip to content

Commit e41d6d5

Browse files
authored
Updated CWE-532 README.md
Cosmetic changes and typo fix Signed-off-by: BartyBoi1128 <[email protected]>
1 parent 59d06fc commit e41d6d5

File tree

1 file changed

+5
-5
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-532

1 file changed

+5
-5
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-532/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ main()
5454

5555
## Example Solution
5656

57-
The `example01.py` solution uses a custom filter in Python's logging module to automatically mask sensitive data in the logs. While this is a good solution for central handling in large software project it does require that all modules use the same string such as `password=`, variation's such as `pass=` or pass: won't work and continue to print the plain text password.
57+
The `example01.py` solution uses a custom filter in Python's logging module to automatically mask sensitive data in the logs. While this is a good solution for central handling in large software project it does require that all modules use the same string such as `password=`, variations such as `pass=` or pass: won't work and continue to print the plain text password.
5858

5959
*[example01.py](example01.py):*
6060

@@ -149,11 +149,11 @@ For security purposes, sensitive information should never be printed to the cons
149149

150150
* `DEBUG`
151151
* `INFO`
152-
* WARNING (default)
153-
* ERROR
154-
* CRITICAL
152+
* `WARNING` (default)
153+
* `ERROR`
154+
* `CRITICAL`
155155

156-
If we set the level to DEBUG or INFO we will see the info and debug logs being printed to the console.
156+
If we set the level to `DEBUG` or `INFO` we will see the info and debug logs being printed to the console.
157157
The `noncompliant02.py` code has the log level set to DEBUG is causing the customer's address to appear in the console.
158158

159159
*[noncompliant02.py](noncompliant02.py):*

0 commit comments

Comments
 (0)