You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Currently, the *Session* Abstract is displayed using `@Html.Raw()`. This makes it vulnerable to Cross-Site Scripting (XSS) and Injection Attacks, since an abstract could contain JavaScript. We'll update `Session.cshtml.cs` to HTML encode the Abstract to protect against these attacks.
399
-
400
-
1. Add an `HtmlEncoder` field to the `SessionModel` using the following code:
401
-
```csharp
402
-
privatereadonlyHtmlEncoder_htmlEncoder;
403
-
```
404
-
1. Update the `SessionModel` constructor to inject an `HtmlEncoder`:
0 commit comments