Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #45 from pagopa/IOPID-1643-redos-signature-input-v…
Browse files Browse the repository at this point in the history
…ulnerability-fix

[#IOPID-1643] Fix ReDOS vulnerability on Lollipop SignatureInput param
  • Loading branch information
BurnedMarshal authored Mar 7, 2024
2 parents b5f83f5 + ceda9c0 commit 08e0f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi/lollipop_first_consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ components:

LollipopSignatureInput:
type: string
pattern: "^(((sig[0-9]+)=[^,]*?)(, ?)?)+$"
pattern: "^(?:sig\\d+=[^,]*)(?:,\\s*(?:sig\\d+=[^,]*))*$"
LollipopSignature:
type: string
pattern: "^((sig[0-9]+)=:[A-Za-z0-9+/=]*:(, ?)?)+$"
Expand Down

0 comments on commit 08e0f2e

Please sign in to comment.