Skip to content
Info disclosure Write-up Beginner

User credential are sent in clear text in Whatsapp web— FIXED | Facebook Bug Bounty

The WhatsApp translation website did not force HTTPS in the Epic browser, so user credentials could be sent over an unencrypted HTTP connection. An attacker who could intercept that connection could read the credentials and take over the account.

Thuvarakan Nakarajah Follow

Published on medium.com

{{media:0}}

Thuvarakan Nakarajah, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

WhatsApp runs a translation site at https://translate.whatsapp.com, where users sign in and work on translations. The sign-in URLs shown in the report include a next parameter.

HTTPS is the secure version of HTTP, the protocol over which data travels between the browser and the website. It encrypts all communication between the browser and the site. Traffic sent over plain HTTP is in plain text and can be read by anyone who manages to break into the connection between the browser and the website. Confidential information such as user credentials and credit card details should never be sent over HTTP for that reason.

Image for post
Image for post From the original on medium.com

The report is about the sign-in page of the translation site being reachable over plain HTTP in one browser, so that credentials typed into it travel unencrypted.

Setup

The testing needed no account, no tooling and no special configuration. The researcher opened the translation site over HTTP in two browsers and observed whether the browser was redirected to HTTPS:

  1. Chrome Browser
  2. Epic Browser

The only precondition is a browser that does not force the upgrade on its own, which in this case was Epic Browser.

Finding it

The researcher checked whether the site enforces HTTPS, that is, whether a request to the HTTP version of the site is redirected to the HTTPS version. Force HTTPS is the behaviour that makes this safe. In Chrome the redirect happened; in Epic Browser it did not, so the sign-in page stayed on HTTP and any credentials submitted there would be transmitted over an unencrypted channel.

Exploitation

Step 1: Check the redirect in Chrome

Accessing the site over HTTP:

HTTP
http://translate.whatsapp.com

This is the HTTP, not secure, address of the site. In Chrome it automatically redirects to:

HTTP
https://translate.whatsapp.com

which is the HTTPS, secured, address. In this browser the sign-in page is therefore only ever served over the encrypted channel.

Step 2: Repeat in Epic Browser

Accessing the same HTTP address in Epic Browser:

HTTP
http://translate.whatsapp.com

does not redirect to the HTTPS secured site. The user stays on the plain HTTP version, and if they sign in there, the credentials are transmitted over an unencrypted channel which can be read by anyone who manages to break into the connection between the browser and the website.

Step 3: Reach the sign-in page over HTTP

The sign-in page itself is reachable over HTTP, for example through these URLs:

HTTP
http://translate.whatsapp.com/sign-in?next
HTTP
http://translate.whatsapp.com/sign-in?next=%2Flogin%2Ftwitter

The second URL includes the value %2Flogin%2Ftwitter. Because the page is served over HTTP, the credentials entered into the sign-in form are sent in clear text. Third party applications may then capture the user credentials by intercepting the unencrypted HTTP connection. This is serious because possession of the user credentials gives the attacker full access to the user's account.

Facebook accepted the issue as a vulnerability and awarded a bounty. A proof of concept recording is linked from the report.

Root cause

The report does not describe why the redirect happened in Chrome but not in Epic Browser. In Chrome the upgrade happens, so the weakness is invisible; in Epic Browser it does not, and the HTTP version of the sign-in page is served and accepts credentials. The report does not describe the server configuration, so the exact reason the redirect is browser-dependent is not stated;

Impact

Any user who reaches the sign-in page over HTTP, which in the tested case means a user of Epic Browser, has their credentials transmitted in clear text. An attacker who manages to break into the connection between the browser and the website can read them, and third party applications may capture them by intercepting the unencrypted connection. With valid credentials the attacker gets full access to the user's account. The impact depends on the attacker being able to intercept the traffic, and on the user's browser not upgrading the request.

Fix

The report title states the issue was fixed. The report describes the required behaviour as Force HTTPS: if a user accesses the site over HTTP, the request should be redirected to HTTPS so that credentials are always transferred over an encrypted channel.

Variants to test

  1. Request the HTTP version of any login, registration or password reset page and check for a redirect to HTTPS. A positive result is the page served over HTTP with a form that accepts credentials.
  2. Repeat the request with different user agents and in browsers that do not auto-upgrade, such as Epic Browser in this report. A positive result is the same page served over HTTP where another browser showed a redirect.
  3. Try deep links with parameters such as next over HTTP, as in http://translate.whatsapp.com/sign-in?next=%2Flogin%2Ftwitter. A positive result is the parameterised sign-in page rendering over HTTP.
  4. A positive result is a session cookie issued without it over plain HTTP.
  5. A positive result for the tester is their absence, which leaves the first plain HTTP request unprotected.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

What happened, in plain words

WhatsApp has a website for translations at https://translate.whatsapp.com. The site has a sign-in page. The researcher found that in Epic Browser the HTTP address did not redirect to HTTPS. When someone types their username and password into that page, the information travels across the internet without encryption, so anyone who can intercept the connection can read it. The researcher reported this to Facebook (which owns WhatsApp), and Facebook accepted it as a security vulnerability and paid a bounty. The issue is now fixed.

Thuvarakan Nakarajah
Thuvarakan Nakarajah From the original on medium.com

Introduction: HTTP and HTTPS

When you visit a website, your browser and the website's server talk to each other using a set of rules called a protocol. The most common protocol is HTTP (HyperText Transfer Protocol). It is like sending a postcard: anyone who handles it along the way can read what is written on it.

HTTPS (HyperText Transfer Protocol Secure) is the secure version of HTTP. It encrypts all the communication between your browser and the website, so it is like sending a sealed letter: even if someone intercepts it, they cannot read the contents.

All communication sent over HTTP connections is in plain text and can be read by any hacker who manages to break into the connection between the browser and the website.

Image for post
Image for post From the original on medium.com

Because of this, confidential information such as user credentials (usernames and passwords) and credit card details should never be sent over an HTTP connection.

Scope: which website was tested

The researcher focused on one website:

Text
https://translate.whatsapp.com

This is WhatsApp's translation platform. Users can sign in and contribute translations. The sign-in URLs shown in the report include a next parameter.

Description: what the problem is

The website https://translate.whatsapp.com sends user credentials. This information should always be transferred via an encrypted channel (HTTPS) to avoid being intercepted by malicious users. If a user accesses the website through HTTP, the site should automatically redirect them to HTTPS. This behaviour is called Force HTTPS.

The researcher tested the site in two browsers.

1. Chrome Browser

When you type http://translate.whatsapp.com (HTTP, not secure) into Chrome, the browser automatically redirects you to https://translate.whatsapp.com (HTTPS, secured). So in Chrome, the sign-in page is always served over the encrypted channel.

2. Epic Browser

When you type the same HTTP address into Epic Browser, it does not redirect to the HTTPS secured site. The user stays on the plain HTTP version. If they sign in there, their credentials are transmitted over an unencrypted channel, which can be read by anyone who manages to break into the connection between the browser and the website.

Here are example URLs that reach the sign-in page over HTTP:

HTTP
http://translate.whatsapp.com/sign-in?next
HTTP
http://translate.whatsapp.com/sign-in?next=%2Flogin%2Ftwitter

In the second URL, the next parameter has the value %2Flogin%2Ftwitter. Because the page is served over HTTP, any credentials entered into the sign-in form are sent in clear text.

Third-party applications may be able to capture the user credentials by intercepting the unencrypted HTTP connection. This is serious because possession of the user credentials gives the attacker full access to the user's account.

Facebook accepted the issue as a vulnerability and awarded a bounty. A proof-of-concept recording is linked from the report.

Root cause: why it happened

The report does not describe why the redirect happened in Chrome but not in Epic Browser. In Chrome, the upgrade happens automatically, so the weakness is invisible. In Epic Browser, it does not happen, and the HTTP version of the sign-in page is served and accepts credentials. The report does not describe the server configuration, so the exact reason the redirect is browser-dependent is not stated.

Impact: what an attacker could do

Any user who reaches the sign-in page over HTTP, which in the tested case means a user of Epic Browser, has their credentials transmitted in clear text. An attacker who manages to break into the connection between the browser and the website can read them, and third-party applications may capture them by intercepting the unencrypted connection. With valid credentials, the attacker gets full access to the user's account. The impact depends on the attacker being able to intercept the traffic and on the user's browser not upgrading the request.

Fix: what was done

The report title states the issue was fixed. The report describes the required behaviour as Force HTTPS: if a user accesses the site over HTTP, the request should be redirected to HTTPS so that credentials are always transferred over an encrypted channel.

Variants to test: other things to check

  1. Request the HTTP version of any login, registration or password reset page and check for a redirect to HTTPS. A positive result is the page served over HTTP with a form that accepts credentials.
  2. Repeat the request with different user agents and in browsers that do not auto-upgrade, such as Epic Browser in this report. A positive result is the same page served over HTTP where another browser showed a redirect.
  3. Try deep links with parameters such as next over HTTP, as in http://translate.whatsapp.com/sign-in?next=%2Flogin%2Ftwitter. A positive result is the parameterised sign-in page rendering over HTTP.
  4. A positive result is a session cookie issued without it over plain HTTP.
  5. A positive result for the tester is their absence, which leaves the first plain HTTP request unprotected.

Glossary

  • HTTP: HyperText Transfer Protocol, the set of rules used to transfer data between a browser and a website; it is not encrypted.
  • HTTPS: HyperText Transfer Protocol Secure, the encrypted version of HTTP; it protects data in transit.
  • Encryption: The process of encoding information so that only authorised parties can read it.
  • Plain text: Data that is not encrypted and can be read by anyone who intercepts it.
  • Credentials: Information used to prove identity, such as a username and password.
  • Force HTTPS: A configuration that automatically redirects HTTP requests to HTTPS.
  • Redirect: A response from a server that tells the browser to go to a different URL.
  • URL: Uniform Resource Locator, the address of a resource on the internet.
  • Parameter: A part of a URL that passes data to the server, usually after a ? and in key=value pairs.
  • URL-encoded: A way of representing special characters in a URL using % followed by two hexadecimal digits; for example, %2F represents /.
  • Browser: A software application used to access and view websites (e.g. Chrome, Epic Browser).
  • User agent: A string that a browser sends to a server to identify itself and its version.
  • Cookie: A small piece of data stored by the browser and sent with requests to the same site, often used to maintain sessions.
  • Session cookie: A cookie that identifies a user's logged-in session.
  • Secure attribute: A flag on a cookie that tells the browser to send it only over HTTPS.
  • HSTS: HTTP Strict Transport Security, a header that tells the browser to always use HTTPS for a site.
  • Header: Additional information sent with an HTTP request or response.
  • Vulnerability: A weakness in a system that can be exploited to compromise security.
  • Bounty: A reward paid by an organisation for reporting a security vulnerability.
  • Proof of concept (PoC): A demonstration that a vulnerability can be exploited.
  • Third-party application: Software not part of the browser or website that can interact with network traffic or the browser.
  • Intercept: To capture data as it travels across a network.
  • Root cause: The underlying reason why a vulnerability exists.
  • Impact: The potential damage or consequences of a vulnerability.
  • Fix: A change made to remove or mitigate a vulnerability.
  • 200 response: An HTTP status code indicating that the request succeeded.
  • Deep link: A URL that points to a specific page or resource within a website, often with parameters.
  • API: Application Programming Interface, a set of rules that allows different software components to communicate; not directly used in this report but mentioned for context.

More from Meta

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.