Skip to content

Commit

Permalink
Html encode nodenames to prevent XSS attacks. Fixes U4-10497 XSS Vuln…
Browse files Browse the repository at this point in the history
…erability in page name.
  • Loading branch information
nul800sebastiaan committed Oct 6, 2017
1 parent 368fec4 commit fe2b86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Umbraco.Web.UI/umbraco/dialogs/Publish.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void OnInit(EventArgs e)
}

DocumentId = doc.Id;
PageName = doc.Name;
PageName = Server.HtmlEncode(doc.Name);
DocumentPath = doc.Path;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public notifications()
protected void Page_Load(object sender, EventArgs e)
{
Button1.Text = ui.Text("update");
pane_form.Text = ui.Text("notifications", "editNotifications", node.Text, base.getUser());
pane_form.Text = ui.Text("notifications", "editNotifications", Server.HtmlEncode(node.Text), base.getUser());
}

#region Web Form Designer generated code
Expand Down

0 comments on commit fe2b86b

Please sign in to comment.