Ubuntu Advisory USN-9338-1 Flags Cross-Site Scripting Flaw in Haml Templating
According to Ubuntu's USN-9338-1 advisory, Haml has a flaw in how it escapes single quote characters that could enable cross-site scripting. Ubuntu recommends updating the affected packages, but the advisory does not name the affected Haml versions.
WebVulnerabilitiesKey points
- Ubuntu's USN-9338-1 advisory describes an XSS flaw in Haml caused by improper escaping of single quotes.
- Crafted input could allow injection of arbitrary HTML attributes.
- No user interaction is required, according to the advisory.
- The advisory does not name affected Haml versions or state whether exploitation has been observed.
Ubuntu has published security advisory USN-9338-1 covering a vulnerability in Haml that allows cross-site scripting (XSS) attacks. According to the advisory, the problem comes from Haml not correctly escaping single quote characters. An attacker could supply specially crafted input to Haml, which could allow arbitrary HTML attributes to be injected into a page. The advisory states that exploitation does not require user interaction. It affects systems running Haml where it processes user input. The advisory recommends a standard system update and points to specific package versions that contain the fix, but it does not list which Haml versions are vulnerable. It also does not say whether exploitation has been confirmed or suspected, and it gives no workarounds, detection methods, proof-of-concept information, or known attackers. Readers should consult the original USN-9338-1 advisory on Ubuntu's website for the exact package versions.
What to do
- Apply the package updates listed in Ubuntu's USN-9338-1 advisory.
- Check whether your systems run Haml in environments that process user input.
- Consult the original USN-9338-1 advisory to confirm the fixed package versions for your release.
Original report
“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.