Some of my sites have been flagged by a security scanner as being vulnerable to client-side HTTP parameter pollution. The security department says that this must be fixed. How can I protect against this in WordPress? Any help is greatly appreciated!
The name of an arbitrarily supplied URL parameter is copied into the response within the query string of a URL.
The payload wzx&sfy=1 was submitted in the name of an arbitrarily supplied URL parameter. This input was echoed as wzx&sfy=1 within the “action” attribute of a “form” tag.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary query string parameters into URLs in the application’s response.
GET [removed]?wzx%26sfy%3d1=1 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
HTTP/1.1 200 OK
Date: Thu, 09 Jul 2020 00:44:05 GMT
Link: <[removed]?p=35>; rel=shortlink
Strict-Transport-Security: max-age=31557600; preload
Content-Type: text/html; charset=UTF-8