You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The request_uri API syntax: res, err = httpc:request_uri(uri, params) allows the 1st param uri to contain CRLF (\r\n), which can be used to inject another request with http pipelining.
For example, the following code will result in 3 requests to be made.
run nc as dummy http server nc -k -l 127.0.0.1 8088
The request_uri API
syntax: res, err = httpc:request_uri(uri, params)
allows the 1st paramuri
to containCRLF
(\r\n
), which can be used to inject another request with http pipelining.For example, the following code will result in 3 requests to be made.
nc -k -l 127.0.0.1 8088
Result in
nc
output:A possible fix is:
After the above fix, output in
nc
will be:The text was updated successfully, but these errors were encountered: