USN-9338-1: Haml vulnerability
It was discovered that Haml did not properly escape the single quote character. If Haml were made to process specially crafted input, an attacker could possibly use this issue to inject arbitrary HTML attributes and perform cross-site scripting attacks.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-hamlto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/ruby-hamlto a version that resolves this vulnerability.Fixed in 4.0.7-1ubuntu0.16.04.1~esm1
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
The attacker needs Haml to process specially crafted input containing single quotes. Successful exploitation could allow injection of arbitrary HTML attributes and cross-site scripting.
Who is exposed to the cross-site scripting risk?
Applications using the affected Ubuntu ruby-haml package may be exposed if they pass attacker-controlled or otherwise specially crafted input through Haml processing.