Kaynağa Gözat

Add additional security improvements to the dev branch.

Mark Crane 13 yıl önce
ebeveyn
işleme
1efa2c765f
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      v_exec.php

+ 4 - 4
v_exec.php

@@ -36,9 +36,9 @@ else {
 
 //get the html values and set them as variables
 	if (count($_POST)>0) {
-		$shell_cmd = trim($_POST["shell_cmd"]);
-		$php_cmd = trim($_POST["php_cmd"]);
-		$switch_cmd = trim($_POST["switch_cmd"]);
+		$shell_cmd = trim(check_str($_POST["shell_cmd"]));
+		$php_cmd = trim(check_str($_POST["php_cmd"]));
+		$switch_cmd = trim(check_str($_POST["switch_cmd"]));
 	}
 
 //show the header
@@ -201,4 +201,4 @@ else {
 
 //show the footer
 	require_once "includes/footer.php";
-?>
+?>