JDCodebase
24 minutes
User input reaches an Express route through three different doors: req.params for the named pieces of the path, req.query for whatever followed the question mark, and req.body for what was posted. Which door a value comes through decides where it is visible, how big it can be and how it should be validated. Reading from the wrong one is why a value that "is definitely being sent" shows up as undefined, and treating any of the three as trustworthy is where injection bugs begin.