Microsoft Official Course: MVC 4 Web Application
Microsoft Official Course: MVC 4 Web Application
Course
Module12
Cross-Site Scripting
Other Attack Techniques
Disabling Attack Protection
• Secure Sockets Layer
Cross-Site Scripting
@using Microsoft.Security.Application
• Importing and using the AntiXSS library
<div
class="messages">@Encoder.JavaScriptEncode(ViewBag.Msg)<div>
Other Attack Techniques
SSL:
• Encrypts content by using the public key
infrastructure (PKI) keys
• Protects the content that is transmitted
between the server and client
• Prevents unauthorized access of content
during transmission
• Involves using the RequireHttps attribute
to redirect users to the SSL link
Lesson 2: State Management
• Review Question(s)
• Real-world Issues and Scenarios