Skip to content
Info disclosure Disclosed report Beginner

Hijacking user session by forcing the use of invalid HTTPs Certificate on images.gratipay.com

The images subdomain acted as a reverse proxy to the main site, but its HTTPS certificate was invalid when serving user profile pages. A user visiting such a page would see a browser certificate warning, and the reporter claims session data could be intercepted by a man-in-the-middle.

ashesh Follow

Originally disclosed on HackerOne

  • Fixed in 10 days
  • Paid in 10 days
  • Disclosed after 10 days

I found that the domain images.gratipay.com is just a reverse proxy for gratipay.com and HTTPS works throughtout the site flawlessly except in one case, that it when we try to open user's profile:

POC: https://images.gratipay.com/~asdlfz/

Https Warning Page: http://i.imgur.com/XHsXJEvr.png?1

Risks

Any user browsing the page is under direct man-in-middle attack, as Https is being not implemented properly, The session data can be easily decrepted via any end point.

For new user's it might result like first impression of the site is an invalid https certificate and plus the warning Chrome gives is way more horrifying:

Attackers might be trying to steal your information from images.gratipay.com (for example, passwords, messages, or credit cards).

The user might never dare to open even gratipay.com ever.

Fix Add a valid Certificate across images.gratipay.com or remove the domain at all.

The original report as published on HackerOne, by ashesh. 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

Root cause

Likely the reverse proxy for the images subdomain was not configured with a valid certificate covering that hostname.

Impact

Visitors could be exposed to a man-in-the-middle attack and session data could be intercepted, though the report only shows the certificate warning rather than a demonstrated interception.

What the attacker needed

Victim visits the images subdomain

How it was found

  1. Open a user profile through the images subdomain instead of the main domain.
  2. Observe the browser's HTTPS certificate warning page.

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 website uses HTTPS, the browser checks that the site presents a valid certificate proving it is genuine. Here one subdomain served the same pages but with a certificate the browser did not trust, so visitors got a scary warning and could be tricked into continuing over an unsafe connection.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by ashesh

View all

19 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.