Skip to content

Commit

Permalink
Update insecure-uuid-version.yaml (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p3r authored Nov 20, 2024
1 parent d27718c commit a5fbe2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lang/security/insecure-uuid-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rules:
- id: insecure-uuid-version
patterns:
- pattern: uuid.uuid1(...)
message: |
message: >-
Using UUID version 1 for UUID generation can lead to predictable UUIDs based on system information (e.g., MAC address, timestamp). This may lead to security risks such as the sandwich attack. Consider using `uuid.uuid4()` instead for better randomness and security.
metadata:
references:
Expand Down Expand Up @@ -30,4 +30,4 @@ rules:
fix-regex:
regex: uuid1
replacement: uuid4


0 comments on commit a5fbe2e

Please sign in to comment.