जमा करें #824148: SourceCodester Pharmacy Sales and Inventory System 1.0 Information Disclosureजानकारी

शीर्षकSourceCodester Pharmacy Sales and Inventory System 1.0 Information Disclosure
विवरणA vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. It has been rated as critical. Affected by this issue is the function sell_statement of the file application/controllers/ShowForm.php. The manipulation with the input || leads to a broken access control vulnerability (Authentication Bypass). The authentication check in the sell_statement method uses an incorrect logical operator: `if ($this->session->userdata('username') != '' || $this->session->userdata('username') != 'staff')`. Due to the OR operator, this condition always evaluates to TRUE regardless of the user's authentication status. As a result, unauthenticated attackers can directly access the sales statement page and view all sensitive sales records without any login credentials. The same flawed authentication logic is also present in the supplier_payment method (line 165), allowing unauthorized access to supplier payment records. Successful exploitation exposes highly sensitive business and financial information, including sales dates, invoice numbers, medicine names, unit prices, quantities sold, total amounts, discount amounts, and actual revenue received. This can lead to competitive disadvantage, financial fraud, and regulatory compliance violations. The vulnerability can be exploited remotely without any user interaction or authentication. The attack complexity is low and no privileges are required.
स्रोत⚠️ https://github.com/timeflies123/cve/issues/7
उपयोगकर्ता
 timeflies (UID 97515)
सबमिशन09/05/2026 10:07 AM (26 दिन पहले)
संयम31/05/2026 02:32 PM (22 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि367533 [SourceCodester Pharmacy Sales and Inventory System 1.0 ShowForm.php sell_statement अधिकार वृद्धि]
अंक20

Do you want to use VulDB in your project?

Use the official API to access entries easily!