Skip to content

Commit fe2b86b

Browse files
Html encode nodenames to prevent XSS attacks. Fixes U4-10497 XSS Vulnerability in page name.
1 parent 368fec4 commit fe2b86b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Web.UI/umbraco/dialogs/Publish.aspx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected override void OnInit(EventArgs e)
3030
}
3131

3232
DocumentId = doc.Id;
33-
PageName = doc.Name;
33+
PageName = Server.HtmlEncode(doc.Name);
3434
DocumentPath = doc.Path;
3535

3636
}

src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/notifications.aspx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public notifications()
2727
protected void Page_Load(object sender, EventArgs e)
2828
{
2929
Button1.Text = ui.Text("update");
30-
pane_form.Text = ui.Text("notifications", "editNotifications", node.Text, base.getUser());
30+
pane_form.Text = ui.Text("notifications", "editNotifications", Server.HtmlEncode(node.Text), base.getUser());
3131
}
3232

3333
#region Web Form Designer generated code

0 commit comments

Comments
 (0)