API-Security-Checklist icon indicating copy to clipboard operation
API-Security-Checklist copied to clipboard

Why no word about range, type and length checks?

Open baybal opened this issue 7 years ago • 1 comments

You should mention range, type and length checks. Peculiarities of JSON/XML parsing should also be mentioned as parser very often work outside of the "safe" realm on most script interpreters, without much failsafe logic. Node notably had an alarming amount of bugs when working with multi-byte encodings.

Websocket handling is another point where most API writers completely disregard such basics. Some try to implement a per byte socket handling, that will eagerly split multibyte chars into impossible bits that can later be used in different "escape" scenarios or be used to attach 3rd party libs.

baybal avatar Jul 09 '17 09:07 baybal

Anyone want to create a PR for this?

Maikuolan avatar Jul 21 '22 12:07 Maikuolan