Cross-site scripting via globally disabled autoescaping
Published Jan 11, 2024 · Updated Nov 14, 2024
Cross-site scripting in GoFiber Template before 3.1.9 allows remote attackers to execute scripts in browsers through rendered user input. The Django engine's Load method globally calls pongo2.SetAutoescape(false), causing template variables containing untrusted HTML or JavaScript to be emitted without escaping. Exposure requires a Fiber application to render attacker-controlled data with the Django engine; affected pages deliver the script to visiting users.
Summary
What happened
Cross-site scripting in GoFiber Template before 3.1.9 allows remote attackers to execute scripts in browsers through rendered user input. The Django engine's Load method globally calls pongo2.SetAutoescape(false), causing template variables containing untrusted HTML or JavaScript to be emitted without escaping. Exposure requires a Fiber application to render attacker-controlled data with the Django engine; affected pages deliver the script to visiting users.
The record
- CVE
- CVE-2024-22199
- Published
- Jan 11, 2024
- Updated
- Nov 14, 2024
- Vendor
- GoFiber
- Product
- Template
- Classifications
- CWE-116, CWE-20, CWE-79, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 11, 2024CVE publishedPublication date reported by the CVE source.
- Nov 14, 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=< 3.1.9
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
No public exploit references are available in this record.
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