Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG/MEDIUM: h1: Don't support LF only to mark the end of a chunk size
It is similar to the previous fix but for the chunk size parsing. But this one is more annoying because a poorly coded application in front of haproxy may ignore the last digit before the LF thinking it should be a CR. In this case it may be out of sync with HAProxy and that could be exploited to perform some sort or request smuggling attack. While it seems unlikely, it is safer to forbid LF with CR at the end of a chunk size. This patch must be backported to 2.9 and probably to all stable versions because there is no reason to still support LF without CR in this case.
- Loading branch information