Express Parameter Pollution
Parameter pollution is dangerous against Express based applications as most developers ignore the fact that, if you pass multiple parameters with the same name in the URL, Express will make an array out of them. This would let attacker make an error in your application (If you used it as a string, for example, myParameter.replace("Alice", "Bob") This would cause an error);
This middleware will automatically stop the attacker or intercept the request and send it to your handler function, so you do whatever you want with the request.
Usage
Express Parameter Pollution is really easy to add to your existing project
const parameterPollution = ; app;
Customization
Express Parameter Pollution offers you few customizations, like toggling logging and adding your own function for handling parameter pollution requests.
const parameterPollution = ; app:
Test
Express Parameter Pollution offers you few customizations, like toggling logging and adding your own function for handling parameter pollution requests.
const express = ;const parameterPollution = ; const app = ; app; app; app;