CVE-2026-3791
Received Received - Intake
SQL Injection in SourceCodester Sales Inventory dashboard.php

Publication date: 2026-03-09

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability has been found in SourceCodester Sales and Inventory System 1.0. Affected by this issue is some unknown functionality of the file dashboard.php of the component Search. The manipulation of the argument searchtxt leads to sql injection. The attack is possible to be carried out remotely. The exploit has been disclosed to the public and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-09
Last Modified
2026-04-29
Generated
2026-05-27
AI Q&A
2026-03-09
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ahsanriaz26gmailcom sales_and_inventory_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

[{'type': 'paragraph', 'content': 'CVE-2026-3791 is a SQL injection vulnerability found in SourceCodester Sales and Inventory System version 1.0, specifically in the dashboard.php file within the Search component.'}, {'type': 'paragraph', 'content': 'The vulnerability arises from improper handling of the "searchtxt" parameter, which allows an attacker to inject malicious SQL code due to insufficient neutralization of special characters in the input.'}, {'type': 'paragraph', 'content': 'This flaw enables attackers to perform SQL injection attacks remotely, potentially without authentication, by manipulating the searchtxt argument.'}, {'type': 'paragraph', 'content': 'Exploitation techniques include Boolean-based blind SQL injection and Time-based blind SQL injection, allowing attackers to enumerate database structures and extract sensitive data.'}] [1, 2, 3]


How can this vulnerability impact me? :

This vulnerability can impact you by allowing attackers to remotely inject SQL commands into your database through the vulnerable search functionality.

Attackers can exploit this flaw to enumerate database structures and extract sensitive information such as user credentials, customer data, and sales records.

The compromise of confidentiality, integrity, and availability of your system is possible, leading to serious security risks.

Because the exploit is publicly available and easy to perform, the risk of attack is elevated.


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 vulnerability can be detected by testing the 'searchtxt' parameter in the dashboard.php file for SQL injection flaws. One effective method is to use sqlmap, an automated SQL injection tool, to test the parameter via HTTP POST requests."}, {'type': 'paragraph', 'content': 'An example sqlmap command to detect the vulnerability is:'}, {'type': 'list_item', 'content': 'sqlmap -u "http://127.0.0.1:8089/dashboard.php" --data "searchtxt=test_query&Search=Search" --batch -v 6 --risk=3 --cookie "PHPSESSID=YOUR_COOKIE_HERE"'}, {'type': 'paragraph', 'content': "Additionally, proof-of-concept payloads for manual testing include Boolean-based blind SQL injection payloads like: searchtxt=-8712' OR 7497=7497#&Search=Search and Time-based blind SQL injection payloads like: searchtxt=test_query' AND (SELECT 6972 FROM (SELECT(SLEEP(5)))lLNj)-- QRct&Search=Search."}, {'type': 'paragraph', 'content': 'Attackers can also identify vulnerable targets using Google dorking with queries such as "inurl:dashboard.php" to find instances of the affected application.'}] [1, 2, 3]


What immediate steps should I take to mitigate this vulnerability?

No known countermeasures or official patches have been documented for this vulnerability.

The suggested immediate mitigation is to replace the affected product with an alternative solution that does not contain this vulnerability.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart