Cross-site scripting via incomplete attribute escaping
Published Jan 13, 2022 · Updated Sep 16, 2024
Cross-site scripting in Crow before 0.3+4 allows remote attackers to inject executable HTML attributes through unquoted template values. Crow's Mustache escape function omits backtick and equals characters, so an unquoted substitution can introduce an event-handler attribute. Exploitation requires an application to render attacker-controlled data in an unquoted attribute; injected script runs in a visitor's browser, and stored input persists across visits.
Summary
What happened
Cross-site scripting in Crow before 0.3+4 allows remote attackers to inject executable HTML attributes through unquoted template values. Crow's Mustache escape function omits backtick and equals characters, so an unquoted substitution can introduce an event-handler attribute. Exploitation requires an application to render attacker-controlled data in an unquoted attribute; injected script runs in a visitor's browser, and stored input persists across visits.
The record
- CVE
- CVE-2021-23824
- Published
- Jan 13, 2022
- Updated
- Sep 16, 2024
- Vendor
- CrowCpp
- Product
- Crow
- Classifications
- CWE-79, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 13, 2022CVE publishedPublication date reported by the CVE source.
- Sep 16, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <0.3+4
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Crow unquoted Mustache attribute injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo