Cross Site Scripting (XSS) - Reflected Cross Site Scripting

 





If login is failed, the application generates an HTML response with user-entered data. But the page generation is performed without data encoding, thereby exposing the application to an XSS vulnerability.


If the server response is based on user-entered data, the parameters have to be encoded to make HTML markup. For this, the Tag-helpers provided by the RazorPages are used to create a prepared in advance input form with encoded user data. So, HTML injections will be unavailable, thereby eliminating the Reflected XSS vulnerability.



Comments

Popular posts from this blog

Scalability and high availability

Microservices and Service-Oriented Architecture

Version control and Continuous Integration/Continuous Deployment (CI/CD)