CVE-2018-25191
SQL Injection in Facturation System 1.0 Allows Data Extraction
Publication date: 2026-03-06
Last updated on: 2026-03-06
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| simple_invoice | facturation_system | 1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
[{'type': 'paragraph', 'content': "The Facturation System 1.0 contains a SQL injection vulnerability in the 'mod_id' parameter of the editar_producto.php endpoint. This flaw allows authenticated attackers to inject malicious SQL code via POST requests, exploiting insufficient input sanitization."}, {'type': 'paragraph', 'content': "By crafting special SQL payloads in the 'mod_id' parameter, attackers can execute arbitrary SQL queries on the backend database."}, {'type': 'paragraph', 'content': 'This enables them to extract sensitive information such as database usernames, database names, and version details.'}] [1]
How can this vulnerability impact me? :
This SQL injection vulnerability can lead to unauthorized disclosure of sensitive database information.
Attackers can retrieve critical metadata like database user credentials, database names, and version information, which can be leveraged for further attacks.
Such exploitation may compromise the integrity and confidentiality of the underlying database and the application, potentially leading to data breaches.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
[{'type': 'paragraph', 'content': "This SQL injection vulnerability can be detected by sending crafted POST requests to the editar_producto.php endpoint with malicious SQL payloads in the 'mod_id' parameter."}, {'type': 'paragraph', 'content': "A typical detection method involves using tools like curl or specialized web vulnerability scanners to test for SQL injection by injecting UNION SELECT statements or subqueries in the 'mod_id' parameter."}, {'type': 'list_item', 'content': 'Example curl command to test the vulnerability:\ncurl -X POST -d "mod_id=1 UNION SELECT user(), database(), version()-- " http://targetsite/ajax/editar_producto.php'}, {'type': 'list_item', 'content': 'Look for responses that reveal database user, database name, or version information, which indicates successful SQL injection.'}] [1]
What immediate steps should I take to mitigate this vulnerability?
[{'type': 'paragraph', 'content': "Immediate mitigation steps include sanitizing and validating all user inputs, especially the 'mod_id' parameter, to prevent injection of malicious SQL code."}, {'type': 'paragraph', 'content': 'Use prepared statements or parameterized queries in the application code to safely handle database queries.'}, {'type': 'paragraph', 'content': 'Restrict access to the editar_producto.php endpoint to authenticated and authorized users only.'}, {'type': 'paragraph', 'content': "Monitor and block suspicious POST requests that contain SQL keywords or unusual payloads targeting the 'mod_id' parameter."}, {'type': 'paragraph', 'content': 'Apply any available patches or updates from the software vendor or consider upgrading to a version without this vulnerability.'}] [1]