CRLF Injection: Session Fixation
A typical HTTP response header looks like this:
HTTP/1.1 200 OK
Content-Type: text/html
Set-Cookie: sessionid=abc123If user input value\r\nSet-Cookie: admin=true is embedded into the headers without sanitization:
HTTP/1.1 200 OK
Content-Type: text/html
Set-Cookie: sessionid=value
Set-Cookie: admin=trueNow the attacker has set their own cookie.
Comments
No comments yet.