X / xAI · Report #52042
HTTP Response Splitting (CRLF injection) in report_story
Validstatus
59upvotes
21 Apr 2015disclosed
Summary
How it was found
Hi,
I would like to report a HTTP Response Splitting vulnerability in https://twitter.com/i/safety/report_story that allows attackers to inject arbitrary headers and contents in the response.
PoC:
Details:
The page will set cookie for the parameter reported_tweet_id. However, it doesn't validate strictly if it is a number. Although there is a protection against CRLF injection by detecting the presence of any NewLine character (0x0a), it can be bypassed with characters encoded in UTF-8 as the the page will try to convert them back to the original Unicode form and extract the last byte. For example, %E5%98%8A => U+560A => 0A.