CVE-2026-4624
SQL Injection in SourceCodester Online Library Management System
Publication date: 2026-03-24
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 |
|---|---|---|
| sourcecodester | online_library_management_system | 1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| 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. |
| 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?
CVE-2026-4624 is a critical SQL injection vulnerability found in version 1.0 of the Online Library Management System, specifically in the /home.php file. The issue arises because the searchField parameter is used directly in SQL queries without proper input validation or sanitization.
This flaw allows attackers to inject malicious SQL code remotely without any authentication, enabling unauthorized access to the database, data leakage, data manipulation, and potentially full control over the system.
The vulnerability is a time-based blind SQL injection affecting MySQL versions 5.0.12 and above, demonstrated by payloads that cause delays in database responses to confirm the injection point.
How can this vulnerability impact me? :
Exploitation of this vulnerability can lead to unauthorized access to sensitive data stored in the database, including the ability to view, modify, or delete information.
Attackers may gain full system control, which can result in service disruption, data breaches, and compromise of business continuity.
Since the attack can be performed remotely without authentication, it poses a severe security risk to any organization using the affected system.
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 testing the vulnerable parameter 'searchField' in the /home.php file for SQL injection flaws."}, {'type': 'paragraph', 'content': 'One method is to use time-based blind SQL injection payloads that cause a delay in the database response, such as injecting a payload with the SLEEP() function.'}, {'type': 'paragraph', 'content': "An example payload to test is: searchList=bookId&searchField=123' AND (SELECT 1721 FROM (SELECT(SLEEP(5)))yePF) AND 'oFYP'='oFYP"}, {'type': 'paragraph', 'content': 'If the response is delayed by the specified time (e.g., 5 seconds), it confirms the presence of the SQL injection vulnerability.'}, {'type': 'paragraph', 'content': 'Automated tools like sqlmap can also be used to detect this vulnerability by targeting the vulnerable URL endpoint.'}] [1]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include:
- Use prepared statements with parameter binding to separate SQL code from user input, preventing injection.
- Implement strict input validation and filtering to ensure inputs conform to expected formats.
- Minimize database user permissions by avoiding high-privilege accounts (such as root or admin) for routine database operations.
- Conduct regular security audits to detect and remediate vulnerabilities promptly.