CVE-2025-4935
SourceCodester Stock Management System changePassword.php sql injection
Description
A vulnerability was found in SourceCodester Stock Management System 1.0 and classified as critical. This issue affects some unknown processing of the file /php_action/changePassword.php. The manipulation of the argument user_id leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
INFO
Published Date :
May 19, 2025, 2:15 p.m.
Last Modified :
May 28, 2025, 12:29 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 4.0 | MEDIUM | [email protected] | 
Solution
- Sanitize all user-provided input.
- Use parameterized queries or prepared statements.
- Validate and sanitize the 'user_id' parameter.
- Review and update the changePassword.php script.
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2025-4935.
                                        
| URL | Resource | 
|---|---|
| https://github.com/hubCVE2025/CVE/issues/2 | Exploit Issue Tracking Third Party Advisory | 
| https://vuldb.com/?ctiid.309497 | Permissions Required VDB Entry | 
| https://vuldb.com/?id.309497 | Third Party Advisory VDB Entry | 
| https://vuldb.com/?submit.579798 | Third Party Advisory VDB Entry | 
| https://www.sourcecodester.com/ | Product | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2025-4935 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2025-4935
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2025-4935 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2025-4935 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            Initial Analysis by [email protected]May. 28, 2025 Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-89 Added CPE Configuration OR *cpe:2.3:a:oretnom23:stock_management_system:1.0:*:*:*:*:*:*:* Added Reference Type VulDB: https://github.com/hubCVE2025/CVE/issues/2 Types: Exploit, Issue Tracking, Third Party Advisory Added Reference Type VulDB: https://vuldb.com/?ctiid.309497 Types: Permissions Required, VDB Entry Added Reference Type VulDB: https://vuldb.com/?id.309497 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://vuldb.com/?submit.579798 Types: Third Party Advisory, VDB Entry Added Reference Type VulDB: https://www.sourcecodester.com/ Types: Product 
- 
                            New CVE Received by [email protected]May. 19, 2025 Action Type Old Value New Value Added Description A vulnerability was found in SourceCodester Stock Management System 1.0 and classified as critical. This issue affects some unknown processing of the file /php_action/changePassword.php. The manipulation of the argument user_id leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CWE CWE-89 Added CWE CWE-74 Added Reference https://github.com/hubCVE2025/CVE/issues/2 Added Reference https://vuldb.com/?ctiid.309497 Added Reference https://vuldb.com/?id.309497 Added Reference https://vuldb.com/?submit.579798 Added Reference https://www.sourcecodester.com/ 
 
                         
                         
                         
                                             
                                            