3.10 URL and Request Validation
Encode URL components according to the protocol and validate the decoded representation used by the application. Avoid inconsistent or repeated decoding across gateway and service layers. Apply rules appropriate to each path segment, query parameter, or input field rather than a universal blacklist of punctuation.
URL encoding does not prevent request modification and does not replace authorization, input validation, or injection prevention. Requests remain untrusted until the applicable server-side checks succeed.
Parent topic: Validation