I have Processmaker 3.1.3 running into an RHEL-7 server. But recently I found that the server is vulnerable by path traversal attack. The entire application is running through the file App.php
into the $App_Dir/workflow/public_html
directory handling the url redirection and other operations. Currently, I'm using this piece of code to prevent the problem at the top of the App.php
located into $App_Dir/workflow/public_html
.
<?php
$url = $_SERVER['REQUEST_URI'];
$key = "../";
if (strpos($url, $key) == true) {
die("Forbiden");
}
?>
But I think this is not a perfect solution. The application might get stuck at any time. Any recommendation /Solution?
TIA