CVE-2026-4568
SQL Injection in SourceCodester Sales Inventory /update_supplier.php
Publication date: 2026-03-23
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ahsanriaz26gmailcom | sales_and_inventory_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. |
| 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?
CVE-2026-4568 is a SQL Injection vulnerability found in version 1.0 of the SourceCodester Sales and Inventory System, specifically in the update_supplier.php file. The issue arises because the application does not properly sanitize the sid parameter in HTTP GET requests.
Authenticated attackers can exploit this flaw by injecting arbitrary SQL commands into the backend MySQL database through the sid parameter. The injection supports UNION-based queries with six columns, allowing attackers to retrieve and display sensitive database information.
Additionally, the vulnerability allows blind SQL injection techniques such as Boolean-based and time-based methods, enabling attackers to infer database information even without direct data retrieval.
How can this vulnerability impact me? :
This vulnerability can have serious impacts including unauthorized data exfiltration and database enumeration.
- Attackers can retrieve and display sensitive database contents directly using UNION-based SQL injection.
- Attackers can enumerate database schema details such as tables and columns, which can facilitate further attacks.
- The vulnerability can be exploited remotely by authenticated users, increasing the risk of 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 vulnerability can be detected by testing the `sid` parameter in HTTP GET requests to the `update_supplier.php` file for SQL injection flaws.'}, {'type': 'paragraph', 'content': 'Automated tools like sqlmap can be used to detect and exploit this vulnerability.'}, {'type': 'list_item', 'content': 'Use sqlmap with a command targeting the vulnerable parameter, for example: sqlmap -u "http://target/update_supplier.php?sid=1" --dbms=mysql --technique=U,B,T'}, {'type': 'list_item', 'content': 'Perform manual testing with crafted payloads such as UNION-based injections, Boolean-based blind injections using CASE statements, or time-based blind injections using MySQL SLEEP() function.'}] [1]
What immediate steps should I take to mitigate this vulnerability?
I don't know