HTTP::Session for Perl vulnerable to memcached command injection
Affects versions before 0.54; no fixed version or exploitation stated.
Memcached command injection in HTTP::Session before 0.54 for Perl
HTTP::Session before 0.54 for Perl allows memcached command injection in HTTP::Session::Store::CHI. The flaw stems from unfiltered session IDs from client cookies, which include control characters like CR and LF. These characters terminate the initial cache command and allow injection of further commands into the memcached server.
What to do: Upgrade to HTTP::Session 0.54. No workaround given.
| Product | Affected |
|---|---|
| Perl HTTP::Session | <0.54 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
HTTP::Session versions before 0.54 for Perl allow memcached command injection via unfiltered session ids in HTTP::Session::Store::CHI. The session id from the client's cookie reaches the CHI cache unchanged. The sibling HTTP::Session::Store::Memcached rejects ids that contain control characters, but the CHI store has no such check, and CHI does not escape keys for its memcached drivers. With a memcached driver, a CR and LF in the session id end the cache command early, and the server reads the bytes after them as further commands.
Affects versions before 0.54; no fixed version or exploitation stated.
Today 1.6K readers · 2.9K views · 1.9K reads · all time 167K views