From e6c364c4f2b58b4dbd5cbc95f7df5bef3cf8d5b9 Mon Sep 17 00:00:00 2001 From: kstich Date: Tue, 29 Aug 2023 10:46:58 -0700 Subject: [PATCH] Fix ReDOS malformed request test --- .../model/restJson1/validation/malformed-pattern.smithy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smithy-aws-protocol-tests/model/restJson1/validation/malformed-pattern.smithy b/smithy-aws-protocol-tests/model/restJson1/validation/malformed-pattern.smithy index ab6ae95d88d..b6a0882cee4 100644 --- a/smithy-aws-protocol-tests/model/restJson1/validation/malformed-pattern.smithy +++ b/smithy-aws-protocol-tests/model/restJson1/validation/malformed-pattern.smithy @@ -78,8 +78,8 @@ apply MalformedPattern @httpMalformedRequestTests([ mediaType: "application/json", assertion: { contents: """ - { "message" : "1 validation error detected. Value at '/string' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-m]+$$", - "fieldList" : [{"message": "Value at '/string' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-m]+$$", "path": "/string"}]}""" + { "message" : "1 validation error detected. Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$", + "fieldList" : [{"message": "Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$", "path": "/evilString"}]}""" } } }