Project

General

Profile

Actions

Bug #24807

closed

CVE-2018-16861 - toast notification sends strings through as HTML

Added by Chris Duryee over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Security
Target version:
-

Description

If you call `Notification.setErrorMessage()` with a string that contains `<` and `>`, the string will get sent through to the browser and the browser will attempt to render it as HTML.

For example, it's possible to get Pulp to raise an error message like "The configuration parameter <foo> is not valid". This will display in the browser as "The configuration parameter is not valid".

It would be better if the notification escaped these strings so the "<>" is not lost.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #25230: compute resource test connection is html incorrectly escapedClosedTomer BriskerActions
Actions

Also available in: Atom PDF