Access Grab_Road BigData Database via Open Presto coordinator
A Presto coordinator for an analytics database was reachable from the internet because of a firewall misconfiguration. The exposed instance held booking-related data, though the text says it did not contain passenger or driver personal information.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 19 hours
- Paid in 6 days
- Disclosed after 3 months
Summary by the program
A publicly accessible analytics database instance was identified, due to a firewall misconfiguration.
The instance contained booking related information but did not contained any passenger or driver personal information. This vulnerability was discovered using Shodan search engine by Vinoth Kumar. Grab security team quickly resolved the issue and awarded the researcher based on the impact.
Once again we would like to thanks @vinothkumar. It was a pleasure to work with and we look forward to see more of his reports in the future.
What the report shows
Grab ran a publicly accessible analytics database instance. The program's summary attributes the exposure to a firewall misconfiguration. The instance held booking related information, but according to the program it did not contain any passenger or driver personal information.
The researcher, Vinoth Kumar, found the instance using the Shodan search engine. The report does not describe the queries he ran, the ports or services he saw, or the exact hostname of the instance. The summary describes it as a publicly accessible analytics database instance; the report title names it as an open Presto coordinator.
The Grab security team resolved the issue quickly. The report does not give the date of discovery, the date of the fix, or the technical details of the change that was made. The report was disclosed on 30 November 2017, carries a critical severity, and the researcher was awarded a bounty of 5,000 USD, which the program says was based on the impact.
The program's summary thanks the researcher and says it looks forward to further reports from him.
Root cause
The report points to a firewall misconfiguration as the cause. The report names a firewall misconfiguration as the cause but does not describe the rule or configuration involved.
Impact
The program states that the instance contained booking related information and that it did not contain passenger or driver personal information. The program states that the instance contained booking related information and no passenger or driver personal information. The report does not enumerate the fields, the number of records, or whether the data could be modified as well as read.
How this kind of bug works
Many data services are designed to be reached only from inside a private network: analytics engines, search clusters, message brokers, caches and administrative interfaces. Their own authentication is often weak or absent, because the network boundary is expected to do the work. When that boundary fails, the service is exposed with whatever access control it has, which is frequently none.
The failure is usually one of a few kinds. A default rule allows all source addresses. A rule is scoped to a port range that does not match the service. A new node is deployed outside the group that carries the restrictive rule. A temporary debugging rule is never removed. The result is the same: a service that answers requests from anyone who can route to it.
Defences are layered. Network policy should default to deny and allow only known sources. The service itself should require authentication and, where possible, encryption. Exposed management and data ports should be monitored, and external attack surface scanning should flag services that become reachable.
How to test for it
This class of bug is found from the outside, without credentials, by looking for services that should not be public.
- Enumerate the organisation's internet facing address space and hostnames from certificate transparency, DNS records, cloud ranges and search engines that index exposed services.
- Identify services on ports that are normally internal: analytics coordinators, databases, caches, search and message systems, and administrative consoles.
- For each candidate, check whether it responds to an unauthenticated request. A positive result is a banner, a version string, a status page or a query interface that answers without credentials.
- Confirm the service is genuinely the organisation's and genuinely reachable, then stop. Do not query data beyond what is needed to prove exposure, and do not modify anything.
- Record the evidence: the address, the port, the response that proves access, and a timestamp.
Common false positives include a load balancer or proxy that returns a generic error page, a honeypot, a service that is public by design such as a documentation site, and a host that belongs to a different organisation on shared infrastructure. A response that merely shows a port is open is not enough; you need a response that demonstrates the service is usable.
How it is fixed
The standard fixes are:
- Correct the network rule so the service accepts traffic only from the intended sources, and default to deny elsewhere.
- Enable authentication on the service itself, so a network mistake does not equal full access.
- Encrypt traffic to the service where the product supports it.
- Audit other services in the same environment for the same mistake, since misconfigurations tend to repeat.
- Add monitoring that alerts when an internal service becomes reachable from the internet.
Hunting notes
Exposed data services cluster around new deployments, staging and analytics environments, and teams that provision infrastructure quickly. Search engines that index internet facing services are a productive starting point, and so is comparing an organisation's known cloud ranges against the services those ranges answer on.
Signals worth following are hostnames that suggest internal tooling, version banners for analytics or database products, and services that answer on unusual ports. When you find one, keep the proof minimal: a single unauthenticated response that shows the service is live and belongs to the target is usually enough. Explain in the report what data class the service appears to hold and whether personal data is likely present, because that distinction drives severity. State clearly what you did not access, and stop testing once exposure is confirmed.
What happened, in plain words
Grab is a company that runs a ride hailing and delivery app. Like most large companies, it keeps data in databases: organised stores of information that software reads and writes. Some of those databases are meant to be used only by staff and internal systems, never by the public internet.
In this case, one of Grab's analytics databases was reachable from the open internet. An analytics database is a system used to study business data, for example to count trips or spot trends. The report title names the product: a Presto coordinator. Presto is a query engine, a piece of software that answers questions asked in a database language, and a coordinator is the part that receives those questions and hands them out to the machines that do the work.
The program's summary says the cause was a firewall misconfiguration. A firewall is a filter that sits between a network and the outside world and decides which traffic is allowed in. A misconfiguration means the filter was set up wrongly, so traffic that should have been blocked got through.
The researcher, Vinoth Kumar, found the instance using the Shodan search engine. Shodan is a search engine, but instead of indexing web pages it indexes devices and services connected to the internet. You type a search and it shows you machines that match, which makes it a quick way to find systems that were never meant to be visible.
The instance held booking related information. According to the program, it did not contain any passenger or driver personal information. The program states that the instance contained booking related information and no passenger or driver personal information.
The Grab security team resolved the issue quickly. The report does not give the date of discovery, the date of the fix, or the technical details of the change that was made. It was disclosed on 30 November 2017, carries a critical severity, and the researcher was awarded a bounty of 5,000 USD, which the program says was based on the impact. A bounty is a reward a company pays someone who reports a security problem responsibly.
Why the firewall was the weak point
The report points to a firewall misconfiguration as the cause. The report names a firewall misconfiguration as the cause but does not describe the rule or configuration involved. The report does not show the rule, the cloud security group, or the network configuration involved, so the exact mistake is not documented.
The important idea is that many internal services rely on the network boundary for protection. Their own login is often weak or absent, because the assumption is that only trusted machines can reach them. When the boundary fails, the service is exposed with whatever access control it has, which is frequently none.
In general, how this kind of bug works
Many data services are designed to be reached only from inside a private network: analytics engines, search clusters, message brokers, caches and administrative interfaces. A private network is like an office corridor that only staff can walk down. The firewall is the door at the end of it.
The failure is usually one of a few kinds:
- A default rule allows all source addresses, so anyone can connect.
- A rule is scoped to a port range that does not match the service. A port is a numbered channel on a machine, and each service listens on one.
- A new node is deployed outside the group that carries the restrictive rule.
- A temporary debugging rule is never removed.
The result is the same: a service that answers requests from anyone who can route to it. A request is simply a message one computer sends to another asking it to do something, such as return a page or run a query.
Defences are layered. Network policy should default to deny and allow only known sources. The service itself should require authentication, meaning proof of identity such as a username and password, and where possible encryption, so traffic cannot be read in transit. Exposed management and data ports should be monitored, and external attack surface scanning should flag services that become reachable. Attack surface simply means everything of yours that an outsider can see and try to touch.
In general, how to test for it
This class of bug is found from the outside, without credentials, by looking for services that should not be public.
- Enumerate the organisation's internet facing address space and hostnames from certificate transparency, DNS records, cloud ranges and search engines that index exposed services. Certificate transparency is a public log of security certificates issued for websites, and DNS is the system that turns names into addresses.
- Identify services on ports that are normally internal: analytics coordinators, databases, caches, search and message systems, and administrative consoles.
- For each candidate, check whether it responds to an unauthenticated request. A positive result is a banner, a version string, a status page or a query interface that answers without credentials. A banner is the short greeting some services send when you connect.
- Confirm the service is genuinely the organisation's and genuinely reachable, then stop. Do not query data beyond what is needed to prove exposure, and do not modify anything.
- Record the evidence: the address, the port, the response that proves access, and a timestamp.
Common false positives include a load balancer or proxy that returns a generic error page, a honeypot (a decoy system set up to attract intruders), a service that is public by design such as a documentation site, and a host that belongs to a different organisation on shared infrastructure. A response that merely shows a port is open is not enough; you need a response that demonstrates the service is usable.
In general, how it is fixed
The standard fixes are:
- Correct the network rule so the service accepts traffic only from the intended sources, and default to deny elsewhere.
- Enable authentication on the service itself, so a network mistake does not equal full access.
- Encrypt traffic to the service where the product supports it.
- Audit other services in the same environment for the same mistake, since misconfigurations tend to repeat.
- Add monitoring that alerts when an internal service becomes reachable from the internet.
In general, where to look
Exposed data services cluster around new deployments, staging and analytics environments, and teams that provision infrastructure quickly. Staging is a test copy of a system used before release. Search engines that index internet facing services are a productive starting point, and so is comparing an organisation's known cloud ranges against the services those ranges answer on.
Signals worth following are hostnames that suggest internal tooling, version banners for analytics or database products, and services that answer on unusual ports. When you find one, keep the proof minimal: a single unauthenticated response that shows the service is live and belongs to the target is usually enough. Explain in the report what data class the service appears to hold and whether personal data is likely present, because that distinction drives severity. State clearly what you did not access, and stop testing once exposure is confirmed.
Glossary
- Analytics database: a data store used to study business information, such as counts and trends.
- Attack surface: everything an outsider can see and try to reach on your systems.
- Authentication: proof of identity, such as a username and password, before a system lets you in.
- Banner: the short greeting some services send when a connection is made, often revealing the product and version.
- Bounty: a reward paid for a responsibly reported security problem.
- Certificate transparency: a public log of security certificates issued for websites.
- Coordinator: in Presto, the part that receives queries and distributes the work.
- Credentials: the details used to prove identity, such as a username and password.
- Critical: the highest severity rating, meaning the issue could cause serious harm.
- DNS: the system that turns domain names into network addresses.
- Encryption: scrambling traffic so that others cannot read it in transit.
- Firewall: a filter that decides which network traffic is allowed in or out.
- Honeypot: a decoy system set up to attract and observe intruders.
- Hostname: the name of a machine on a network.
- Instance: a single running copy of a service or server.
- Load balancer: a system that spreads incoming traffic across several servers.
- Misconfiguration: a setting that is wrong, leaving a system less protected than intended.
- Port: a numbered channel on a machine that a service listens on.
- Presto: a query engine that answers questions written in a database language.
- Private network: a network reachable only from inside an organisation.
- Proxy: an intermediary that forwards requests to another system.
- Request: a message one computer sends to another asking it to do something.
- Severity: a rating of how serious a security issue is.
- Shodan: a search engine that indexes devices and services connected to the internet.
- Staging: a test copy of a system used before release.
- Version string: text that names the product and version a service is running.