Indian Government's Contact Tracing App Has Serious Security Vulnerabilities
The Aarogya Setu app had an exported WebViewActivity that loaded any URI without host validation, allowing access to internal files. Also, an API endpoint accepted arbitrary location and radius parameters, letting anyone query infection statistics anywhere in India.
medium.com
Published on medium.com
In order to fight Covid19, the Indian government released a mobile contact tracing application called Aarogya Setu. This application is available on the PlayStore and 90 million Indians already installed it.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the WebViewActivity lacked host validation and the API endpoint did not enforce location or radius restrictions.
Impact
An attacker could read internal app files with one click and query infection statistics for any location in India, potentially identifying sick individuals.
What the attacker needed
App installed on victim's phone; attacker can send intents or API requests
The fix
The WebViewActivity was fixed by removing intent filters, but the API issue was only partially addressed by changing the default radius.
How it was found
- Open the WebViewActivity with a URI pointing to an internal file.
- Observe that the internal file is displayed.
- Send a request to the API endpoint with modified location and radius parameters.
- Receive statistics for the chosen area.
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 write-up has not been written yet. The Original tab links to the source.
This app had two problems. First, a part of the app that shows web pages could be tricked into opening files stored on the phone, like a private notebook. Second, a feature that shows how many people nearby are sick did not check where the request came from, so anyone could ask about any place in the country.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.