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
{{ message }}
Repository navigation
Cr-Lf injection could be happend via From, User-Agent ini settings #17976
As #81518, and #81680 (Still not fixed), from, user_agent ini value can lead CrLf injection and may lead HTTP header injection in fopen's http wrapper.
Listening on 0.0.0.0 1337
Connection received on 127.0.0.1 54468
GET / HTTP/1.1
From: invalid_from
Test-1: first_line
Host: localhost:1337
Connection: close
User-Agent: invalid_ua
Test-2: another_line
But I expected this output instead:
Either sanitized or blocked at ini value level
GET / HTTP/1.1
From: invalid_fromTest-1: first_line
Host: localhost:1337
Connection: close
User-Agent: invalid_uaTest-2: another_line
changed the title [-]Cr-Lf injection could be happen via From, User-Agent ini settings[/-][+]Cr-Lf injection could be happend via From, User-Agent ini settings[/+]on Mar 5, 2025
Activity
[-]Cr-Lf injection could be happen via From, User-Agent ini settings[/-][+]Cr-Lf injection could be happend via From, User-Agent ini settings[/+]Fix phpGH-17976: CRLF injection via from and user_agent in HTTP wrapper
Fix GH-17976: CRLF injection via from and user_agent in HTTP wrapper (#…
ext/standard: check the from address for control characters before PASS
ext/soap: truncate a user_agent containing newline characters
ext/soap: truncate a user_agent containing newline characters (#22771)
ext/standard: check the from address for control characters before PASS