Forum Discussion

revanth2015's avatar
revanth2015
Copper Contributor
Jun 14, 2024

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.

No RepliesBe the first to reply