/

CVE-2024-58402

Severity:

HIGH RISK

(8.2)

SQL Injection (CWE-89) in Azon Dominator /fetch_products.php

CVE-2024-58402

Received

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized database information disclosure

Severity:

HIGH RISK

(8.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Azon Dominator releases through 2024-06-03 have an SQL injection vulnerability in the /fetch_products.php endpoint. An unauthenticated attacker may manipulate database queries through the cid parameter and use blind techniques to extract sensitive information.

Affected context

The issue affects Azon Dominator releases through 2024-06-03 and occurs in /fetch_products.php, where the cid parameter is used in database queries. The endpoint is exposed to risk when it accepts POST requests without safely separating user-supplied values from SQL query structure.

Exploit preconditions

  • Attack surface: The /fetch_products.php HTTP endpoint
  • Required access: No authentication is required, according to the vulnerability description
  • Trigger point: A POST request that supplies the cid parameter
  • Why exploitation is possible: The parameter can influence database query behavior, allowing an attacker to infer information through boolean-based or time-based responses

Why this happens

The underlying issue is that user-controlled input is handled in a way that can alter SQL query structure. This is SQL injection, mapped to CWE-89: Improper Neutralization of Special Elements used in an SQL Command. When query construction does not reliably distinguish data from SQL syntax, an attacker may affect how the database interprets a query.

Potential impact

  • Sensitive database information could be inferred or disclosed
  • Database queries could return unintended results
  • Exposure of stored data could affect user privacy or business operations
  • Further database impact may be possible depending on query permissions and deployment configuration

General mitigation guidance

Common defensive patterns for SQL injection include:

  • Use parameterized queries or prepared statements so input remains data rather than SQL syntax
  • Validate inputs against expected types, formats, and allowed values as a secondary control
  • Apply least-privilege permissions to database accounts used by the application
  • Avoid exposing unnecessary database errors or response differences that reveal query behavior
  • Reduce trust in client-supplied values and enforce access controls independently of query filtering

How teams detect issues like this

Detection approaches may include:

  • Static analysis rules that flag SQL built through string concatenation or interpolation with request parameters
  • Code review of database calls that consume values from cid or other HTTP inputs
  • Monitoring for unusual response timing, repeated requests, or anomalous access to /fetch_products.php
  • Policy checks that require parameterized database access and least-privilege database roles

Automated code review tools may help identify risky query-construction patterns.

Sources

SourceLink
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/azon-dominator-sqli.yaml
packetstorm.newspacketstorm.news/files/id/179283/
codester.comcodester.com/items/12775/azon-dominator-affiliate-marketing-script
exploit-db.comexploit-db.com/exploits/52059
vulncheck.comvulncheck.com/advisories/azon-dominator-sql-injection-via-fetch-products-php-cid-parameter

Frequently asked

questions

Yes. The described attack surface is an HTTP endpoint, and the vulnerability description says unauthenticated attackers can submit requests to it.

No authentication is required according to the description. The endpoint must be reachable, and the attacker needs to be able to send a POST request containing the cid parameter.

Use parameterized queries or prepared statements so user-supplied values cannot change the structure of SQL commands.

Apply consistent parameterized database access, validate inputs against expected constraints, limit database account privileges, and review or scan code paths that build queries from request data.

Find out what's already
exploitable in your codebase.