1

I have a web application running on asp.net webforms on framework 4.0. A third party company performed a security assessment and identified couple of vulnerabilities, one of which says.

  • S.No.3: Input returned in response (reflected)
  • Risk: Medium
  • Description: Reflection of input arises when data is copied from a request and echoed into the application's immediate response.

As POC they have shared below image in which input value is highlighted in yellowenter image description here I searched the internet but i am not able to understand about what to do with this. How can i resolve this vulnerability. What is the solution for this.

kartoos khan
  • 409
  • 6
  • 22

1 Answers1

0

You should use ModelState.Clear(); on serverside so that your input will not get reflected in the response. For additional info about ModelState.Clear() Refer