Files
EasySoft-ZenTaoPMS/module/zahost
Lufei 9e6711bbb2 * Fix security vulnerability in ping function.
The ping function previously accepted arbitrary user input and passed it to the exec function without any sanitization or validation, creating a command injection vulnerability. This commit adds input validation using filter_var to ensure that the address parameter is a valid IP address or hostname, and uses predefined command options to avoid passing user input directly to exec. Additionally, this commit simplifies the status return logic using a ternary operator.

Fix GH-112
2023-04-14 09:16:10 +08:00
..
2023-02-15 18:07:15 +08:00
2023-02-15 18:07:15 +08:00
2023-02-28 07:32:22 +00:00
2023-02-28 07:32:22 +00:00
2023-02-09 05:54:15 +00:00