Path Traversal Issue
public bool Example (string getinput)
{
var example = System.Web.Security.AntiXss.AntiXssEncoder.HtmlFormUrlEncode(getinput);
}
Method Example gets dynamic data from the getinput element.
This element’s value then flows through the code and is eventually used in a file path for local disk access in another log file. This may cause a Path Traversal vulnerability.
Here we used AntiXssEncoder to the getinput but still we have the path traversal vulnerability is there any solution for that.
public bool Example (string getinput){var example = System.Web.Security.AntiXss.AntiXssEncoder.HtmlFormUrlEncode(getinput);}Method Example gets dynamic data from the getinput element. This element’s value then flows through the code and is eventually used in a file path for local disk access in another log file. This may cause a Path Traversal vulnerability. Here we used AntiXssEncoder to the getinput but still we have the path traversal vulnerability is there any solution for that. Read More