Skip to content
Misconfiguration Disclosed report Intermediate

upgrade Aspen on inside.gratipay.com to pick up CR injection fix

The web server reflected a carriage return character from the URL path into an HTTP response header, allowing an attacker to inject arbitrary headers such as Set-Cookie. In Internet Explorer 11 this could be used to set cookies for the site.

valievkarim Follow

Originally disclosed on HackerOne

Bounty$40 High View original
  • Triaged in 14 days
  • Fixed in 9 months
  • Paid in 43 days
  • Disclosed after 10 months
  1. Using IE11, open DevTools and start network capture
  2. visit the following URL:

http://inside.gratipay.com/assets/%0dSet-Cookie:%20qwe=qwe%0dq

  1. find a 'qwe' cookie set in the response

There is a 0x0d character injected, which can be used as a header delimiter in IE. To see this behaviour using Curl, you can use the following command: curl -s -v 'http://inside.gratipay.com/assets/%0dSet-Cookie:%20qwe=qwe%0dq' 2>&1|less

Screenshots of Curl output and DevTools are attached.

Attachments

img-2016-06-05-01-06-29.png
img-2016-06-05-01-06-29.png From the original on HackerOne
img-2016-06-05-01-09-26.png
img-2016-06-05-01-09-26.png

The original report as published on HackerOne, by valievkarim. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could set cookies for the site in Internet Explorer 11; the report does not show impact in other browsers.

What the attacker needed

Victim uses Internet Explorer 11; victim visits a crafted URL

How it was found

  1. Open Internet Explorer 11 and start network capture in DevTools.
  2. Visit a URL containing an encoded carriage return followed by a Set-Cookie header value.
  3. Observe that a cookie named qwe is set in the response.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web server sends a response, it includes headers that tell the browser things like what cookies to store. If a user-supplied part of the URL is copied into a header without cleaning, an attacker can sneak in extra header lines. Here a carriage return character in the URL let the attacker add a Set-Cookie header, which Internet Explorer 11 accepted.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by valievkarim

View all

2 more disclosed reports, best first.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.