How to implement Client-Side Validation in Asp.net Core?

Asp.net-core By Sagar Jaybhay

Client-Side Validation – By Sagar Jaybhay A client-side validation means validation perform on client machine or in browser of client. First, server-side validation is performed or validate using Validation attributes like Required, String Length, etc. But when we perform server-side validation there is a round trip to a server over the network. In such situation if our server is busy with another heavy processing task or either busy to serve another request so it will send result to user but it required some time and if your application needs to…

Read More

What Is an Open Redirection Vulnerability & How to Prevent it?

Asp.net-core By Sagar Jaybhay

Open Redirection An Open Redirection is when a web application or server uses a user-submitted link to redirect the user to a given website or page. How I identify is my application vulnerable or not? If your application redirects to URL which is directly given by user that’s specified via the request such as query string or form data. The redirection is performed without checking if the URL is a local URL. Below is the code for that In this code we pass this URL directly to the Redirect we…

Read More