diff --git a/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Controllers/IastController.cs b/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Controllers/IastController.cs
index 2cfae88d3345..84823e4f7471 100644
--- a/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Controllers/IastController.cs
+++ b/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Controllers/IastController.cs
@@ -580,5 +580,11 @@ static string CopyStringAvoidTainting(string original)
{
return new string(original.AsEnumerable().ToArray());
}
+
+ [Route("StackTraceLeak")]
+ public ActionResult StackTraceLeak()
+ {
+ throw new SystemException("Custom exception message");
+ }
}
}
diff --git a/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Views/Home/Index.cshtml b/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Views/Home/Index.cshtml
index bfe8b64fae35..b2d1bf167d1e 100644
--- a/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Views/Home/Index.cshtml
+++ b/tracer/test/test-applications/security/aspnet/Samples.Security.AspNetMvc5/Views/Home/Index.cshtml
@@ -90,6 +90,8 @@
+
+