oak icon indicating copy to clipboard operation
oak copied to clipboard

Is it request.body and request.url secure to user/hacker malformed input?

Open devalexqt opened this issue 3 years ago • 1 comments

Hi! I wondering if request body and url (path and query as result) are secured and trusted values? Or it can include "bad" not secure characters? And as result hacker can compromise server. Or instead we need sanitizer on server for untrusted inputs?

devalexqt avatar Jan 13 '21 10:01 devalexqt

It appears not... #265 shows how it can be a problem with a bad request URL. Sanitising it isn't the problem, it is properly handing the errors. As far as body, that is left up to the implementor, but I will double check that there isn't body processing that could raise an error in a place which will halt the server listening.

kitsonk avatar Jan 23 '21 03:01 kitsonk