Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a critical SQL injection vulnerability affecting the two-factor authentication process. Unauthenticated attackers can exploit this flaw to execute arbitrary SQL commands, potentially leading to unauthorized access, data manipulation, or service disruption. The primary concern is to verify if this specific authentication functionality is in use within your environment.
- Unauthenticated attackers can inject malicious SQL queries.
- Matters for protecting user login and data integrity.
- Confirm if this two-factor authentication is used.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this vulnerability by sending a specially crafted request to the `/user-login` endpoint. This request targets the `two_steps_auth_code` parameter within the `twoStepsAuthVerification` function, which handles two-factor authentication. Because this function can be accessed without logging in, an unauthenticated attacker can inject malicious SQL code. This could lead to severe consequences, including unauthorized access to sensitive data, creation of new administrator accounts, or disruption of services.
- No authentication required.
- Triggered by manipulating a parameter.
- Allows arbitrary SQL queries.
Live Threat
Current exploitation, exposure, and threat context
This SQL injection vulnerability in the two-factor authentication code could allow unauthenticated attackers to execute arbitrary SQL queries. When supported by the advisory, this could lead to database information disclosure, the creation of unauthorized privileged users, modification or deletion of critical data, and denial-of-service conditions.
- Database integrity and availability.
- Unauthenticated SQL query execution.
- Unauthorized user creation or data corruption.
Operational Fix
Recommended remediation, mitigation, and detection steps
This SQL injection vulnerability in the two-factor authentication code parameter impacts backend databases, potentially leading to unauthorized data access, user privilege escalation, or denial-of-service. Owners of the application housing this login endpoint, likely a platform or application team, should first identify all instances of the affected technology, confirm their internet exposure and business criticality, and then coordinate with security and vendor management teams to plan remediation.
- Identify system owners and confirm exposure.
- Verify internet reachability and business impact.
- Plan vendor coordination and remediation.