Hasura GraphQL Console is a web console used to manage and configure Hasura GraphQL Engine instances. It is employed by developers to simplify GraphQL API development by offering an intuitive interface for API interaction and schema management. This tool is popular among organizations that adopt GraphQL for efficient API communication due to its real-time capabilities and strong integration potential with existing applications.
The vulnerability is detected by identifying exposed Hasura GraphQL Console instances. The scanner inspects whether an unauthenticated access request to the `/console` path returns the Hasura Console, which indicates that the Hasura instance is exposed without proper access controls. Exposing this console without requiring an admin secret allows unauthorized users to interact with the API configuration, leading to potential security risks.
Technically, the vulnerability involves crafting a GET request to the `/console` endpoint and checking the response for specific characteristics of the Hasura assets. This includes verifying the status code and the presence of specific content in the HTTP body that signifies the console's exposure. If the attributes match, it confirms unauthorized access to the console.
Exposing the Hasura GraphQL Console can lead to unauthorized access to API configurations and data management within Hasura GraphQL Engine. Malicious actors might exploit this vulnerability to modify API schemas, execute arbitrary operations, or gather intelligence on how the API is structured, potentially leading to further exploits.
REFERENCES
Remediation:
- Implement proper authentication mechanisms, such as requiring an admin secret, to secure access to the Hasura GraphQL Console.
- Ensure that unnecessary, exposed console instances are disabled or protected by additional security measures.
- Regularly audit Hasura instance configurations to prevent accidental exposure of sensitive interfaces.
- Restrict console access based on network boundaries, allowing only trusted IP addresses to reach the console endpoint.
- Continuously update Hasura Engine and Console to the latest versions to incorporate security patches and improvements.
Get AI-powered remediation steps tailored to your asset.
Try AI Solutions →