// [CRUCIBLE-SEED] // category: xss // severity: high // language: csharp // expected: XSS via MVC action returning raw HTML with user input embedded using Microsoft.AspNetCore.Mvc; namespace App.Controllers { public class ProfileController : Controller { [HttpGet("profile")] public ContentResult ShowProfile(string username, string bio) { // Vulnerable: username and bio embedded without encoding string html = $@"

{username}

{bio}

"; return Content(html, "text/html"); } } }