CVE-2018-25172 in Pedidosinfo

Summary

by MITRE • 03/06/2026

Pedidos 1.0 contains an SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries by injecting malicious code through the 'q' parameter. Attackers can send GET requests to the ajax/load_proveedores.php endpoint with crafted SQL payloads to extract sensitive database information including schema names and table structures.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 03/06/2026

The vulnerability identified as CVE-2018-25172 represents a critical SQL injection flaw within the Pedidos 1.0 web application framework that fundamentally compromises database security integrity. This vulnerability exists in the ajax/load_proveedores.php endpoint where user input from the 'q' parameter is directly incorporated into SQL query construction without proper sanitization or parameterization. The absence of input validation mechanisms creates an exploitable condition that allows unauthenticated attackers to manipulate database operations through crafted HTTP GET requests. The vulnerability's classification aligns with CWE-89 which specifically addresses SQL injection weaknesses where untrusted data is embedded into SQL commands, making it a prime target for database enumeration and data exfiltration attacks.

The technical exploitation of this vulnerability occurs through the manipulation of the 'q' parameter in GET requests sent to the vulnerable endpoint. Attackers can construct malicious SQL payloads that, when processed by the application, execute unintended database operations. The vulnerability enables attackers to perform various malicious activities including but not limited to extracting database schema information, retrieving table structures, and accessing sensitive data stored within the database. The unauthenticated nature of this attack vector significantly increases the risk as no prior authorization or credentials are required to exploit the vulnerability, making it particularly dangerous for publicly accessible web applications.

The operational impact of CVE-2018-25172 extends beyond simple data theft to encompass complete database compromise and potential system-wide escalation. Successful exploitation allows attackers to gain comprehensive knowledge of the database architecture including schema names, table structures, and potentially user credentials stored in the database. This information can be leveraged for further attacks including privilege escalation, lateral movement within the network, and additional exploitation of other system components that may share database connections or credentials. The vulnerability essentially provides attackers with a database reconnaissance tool that can be used to map out the entire database infrastructure and identify additional attack surfaces.

Security mitigations for this vulnerability must address the fundamental root cause through proper input validation and parameterized query construction. The primary defense mechanism involves implementing strict input sanitization that filters or escapes all user-supplied data before it is incorporated into SQL queries. Additionally, the application should employ prepared statements or parameterized queries to ensure that user input is treated as data rather than executable code. Organizations should also implement proper access controls and network segmentation to limit exposure of vulnerable endpoints, while maintaining comprehensive logging and monitoring of database access patterns to detect potential exploitation attempts. The remediation process should include thorough code review and penetration testing to identify similar vulnerabilities in other application components, aligning with ATT&CK technique T1071.004 for application layer attacks and T1046 for network service scanning that may precede exploitation of this vulnerability.

Responsible

VulnCheck

Reservation

03/06/2026

Disclosure

03/06/2026

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00123

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!