Skip to content

Commit caeecb7

Browse files
authored
Merge pull request from GHSA-mqjc-6jp2-39mq
limit NKFD normalization to 10k chars
2 parents 16effca + 7b86bb4 commit caeecb7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Added Digicert source plugin. Enable it with DIGICERT_SOURCE_ENABLED
1212
Added AWS ACM source plugin. This plugin retreives all certificates for an account and a region.
1313
Added AWS ACM destination plugin. This plugin uploads a certificate to AWS ACM.
1414
Allow updating options field via authority update API.
15+
Fixed a DoS security issue affecting Windows env via the name parameter of the certificate post endpoint.
1516

1617

1718
1.6.0 - `2023-10-23`

lemur/common/defaults.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def text_to_slug(value, joiner="-"):
1515
Normalize a string to a "slug" value, stripping character accents and removing non-alphanum characters.
1616
A series of non-alphanumeric characters is replaced with the joiner character.
1717
"""
18+
if len(value) > 10_000:
19+
raise ValueError("Input value is too long.")
1820

1921
# Strip all character accents: decompose Unicode characters and then drop combining chars.
2022
value = "".join(

0 commit comments

Comments
 (0)