Re:URL query parameters and how laxness creates de facto req...
by drewcsillag on Tuesday September 08, 2020 @08:48AM
(#24407843)
Accepting random stuff like this is in the spirit of the protocols of the internet.
Postel’s Law:
> Be conservative in what you do, be liberal in what you accept from others (often reworded as "Be conservative in what you send, be liberal in what you accept").
Re:URL query parameters and how laxness creates de facto req...
by Tagbert on Monday September 07, 2020 @11:18PM
(#24404924)
The article doesn’t seem to identify a problem caused by these unexpected parameters. I would think any system that accepts input like this would need to validate the input and reject or ignore invalid input. Where is the problem?
I have been known to add a parameter like &x=1 to a page that fails to load properly the first time. It can invalidate an incorrect cache and let the page reload.
Postel’s Law: > Be conservative in what you do, be liberal in what you accept from others (often reworded as "Be conservative in what you send, be liberal in what you accept").
Also known as the robustness principle https://en.m.wikipedia.org/wiki/Robustness_principle
I have been known to add a parameter like &x=1 to a page that fails to load properly the first time. It can invalidate an incorrect cache and let the page reload.
Make things as strict as possible