I'm reading about HTTP parameter pollution and I'm confused about one thing. If there is an endpoint like this,
https://security.stackexchange.com/editpost/?postuid=19348
and you tried a HPP attack, that looked like
https://security.stackexchange.com/editpost/?postuid=19348&postuid=1
Wouldn't the backend still try to verfiy that it's your user's post you're trying to edit? through the cookies you send along with the request
Why could this work,
https://security.stackexchange.com/editpost/?postuid=19348&postuid=1
and why can't you just edit the URL like this?
https://security.stackexchange.com/editpost/?postuid=1