Skip to content

Commit 66e6da3

Browse files
committed
C#: Add MarkupString as an html-injection sink
1 parent 0ff7512 commit 66e6da3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| BlazorTest/Components/MyOutput.razor:5:53:5:57 | access to property Value |
2+
| BlazorTest/Components/Pages/TestPage.razor:11:48:11:55 | access to property UrlParam |
3+
| BlazorTest/Components/Pages/TestPage.razor:20:60:20:69 | access to property QueryParam |
4+
| BlazorTest/Components/Pages/TestPage.razor:29:53:29:63 | access to property InputValue1 |
5+
| BlazorTest/Components/Pages/TestPage.razor:38:53:38:63 | access to property InputValue2 |
6+
| BlazorTest/Components/Pages/TestPage.razor:47:53:47:68 | access to property Value |
7+
| BlazorTest/Components/Pages/TestPage.razor:56:53:56:63 | access to property InputValue3 |
8+
| BlazorTest/Components/Pages/TestPage.razor:65:53:65:63 | access to property InputValue4 |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extensions:
2+
- addsTo:
3+
pack: codeql/csharp-all
4+
extensible: sinkModel
5+
data:
6+
- ["Microsoft.AspNetCore.Components", "MarkupString", False, "MarkupString", "(System.String)", "", "Argument[0]", "html-injection", "manual"]
7+
- ["Microsoft.AspNetCore.Components", "MarkupString", False, "op_Explicit", "(System.String)", "", "Argument[0]", "html-injection", "manual"]

0 commit comments

Comments
 (0)