Tosei Online Store Management System Command Injection Vulnerability Allowing Remote Code Execution

Vulnerability

A remote code execution vulnerability has been identified in Tosei Online Store Management System version 1.01. The issue arises in the '/cgi-bin/monitor.php' file, specifically within the HTTP POST request handler. The vulnerability is caused by improper input validation of the 'DevId' parameter, which allows for OS command injection. Exploitation can be achieved by sending a crafted POST request that manipulates the 'DevId' argument, leading to the execution of arbitrary commands on the server.

Impact

Exploitation of this vulnerability allows for full system compromise, with executed commands running under the web server user 'contec'. This could lead to unauthorized access to sensitive files, such as '/etc/passwd' or application data, and could be used to escalate privileges, especially given the presence of unpatched vulnerabilities in the server's outdated software. Additionally, the compromised system could be used to attack other internal network assets.

Reproduction

To reproduce this vulnerability, send a POST request to '/cgi-bin/monitor.php' with the 'DevId' parameter set to a payload that includes a semicolon followed by a command, such as 'id'. The injected command will be executed by the server's operating system, and the response will include the output of the command, confirming the successful exploitation of the vulnerability.

Remediation

It is recommended to implement proper input validation for the 'DevId' parameter, ensuring it only accepts alphanumeric characters. If shell command execution is necessary, use PHP's 'escapeshellarg()' function to sanitize the input. Regular security audits should also be conducted to identify and address potential vulnerabilities.

Added: Feb 22, 2026, 11:18 AM
Updated: Feb 22, 2026, 11:18 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
10.0
exploitability
9.7
remediation
0.0
relevance
3.1
threat
6.4
urgency
2.9
incentive
8.3

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