mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
Previously, the reason argument passed to ServerResponse#writeHead was not being properly validated. One could pass CRLFs which could lead to http response splitting. This commit changes the behavior to throw an error in the event any invalid characters are included in the reason. CVE-2016-5325 PR-URL: https://github.com/nodejs/node-private/pull/47 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Douglas Wilson <doug@somethingdoug.com> |
||
|---|---|---|
| .. | ||
| test-http-client-read-in-error.js | ||
| test-http-pipeline-regr-3508.js | ||
| test-http-response-statuscode.js | ||
| test-http-status-reason-invalid-chars.js | ||