Code-Projects Simple Stock System SQL Injection Vulnerability in Signup.php

Vulnerability

A SQL injection vulnerability exists in Code-Projects Simple Stock System version 1.0, specifically within the signup.php file. The issue arises because the application improperly processes the 'username' parameter, allowing attackers to inject malicious SQL code. This exploitation can be performed remotely, without any authentication.

Impact

Exploitation of this vulnerability allows attackers to manipulate SQL queries, potentially leading to unauthorized data access, data modification, and in some cases, full control over the application or underlying system.

Reproduction

To reproduce this vulnerability, send a POST request to the 'market/signup.php' endpoint. Include the 'username' parameter with crafted input designed to exploit SQL query processing. The absence of input validation allows the injection of SQL commands that could be executed by the database.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure that user input meets expected formats, thereby blocking malicious data. Finally, database user permissions should be minimized, ensuring that the account used for database connections has only the necessary privileges.

Added: Dec 19, 2025, 6:41 PM
Updated: Dec 19, 2025, 7:23 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.0
remediation
0.0
relevance
1.6
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.