AWS cli: Strengthened input validation patterns with anchors
Summary
Updated regex patterns to include start (^) and end ($) anchors for multiple fields.
Security assessment
Adding anchors ensures full string validation, preventing partial matches that could allow malicious input.
Evidence
> * pattern: `^[a-zA-Z0-9:/-]+$`
Diff
diff --git a/cli/latest/reference/gamelift/terminate-game-session.md b/cli/latest/reference/gamelift/terminate-game-session.md index 268bfe338..b50c721e1 100644 --- a//cli/latest/reference/gamelift/terminate-game-session.md +++ b//cli/latest/reference/gamelift/terminate-game-session.md @@ -15 +15 @@ - * [AWS CLI 2.36.17 Command Reference](../../index.html) » + * [AWS CLI 2.36.18 Command Reference](../../index.html) » @@ -123 +123 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/gameli -> * pattern: `[a-zA-Z0-9:/-]+` +> * pattern: `^[a-zA-Z0-9:/-]+$` @@ -300 +300 @@ GameSession -> (structure) ->> * pattern: `^[a-z]*fleet-[a-zA-Z0-9\-]+` +>> * pattern: `^[a-z]*fleet-[a-zA-Z0-9\-]+$` @@ -436 +436 @@ GameSession -> (structure) ->> * pattern: `^[0-9A-Fa-f\:\.]+` +>> * pattern: `^[0-9A-Fa-f\:\.]+$` @@ -514 +514 @@ GameSession -> (structure) ->> * pattern: `^[A-Za-z0-9\-]+` +>> * pattern: `^[A-Za-z0-9\-]+$` @@ -526 +526 @@ GameSession -> (structure) ->> * pattern: `^[a-zA-Z0-9\-]+(\/[a-zA-Z0-9\-]+)?` +>> * pattern: `^[a-zA-Z0-9\-]+(\/[a-zA-Z0-9\-]+)?$` @@ -558 +558 @@ GameSession -> (structure) - * [AWS CLI 2.36.17 Command Reference](../../index.html) » + * [AWS CLI 2.36.18 Command Reference](../../index.html) »