Browser script execution via unescaped next parameter
Published Feb 28, 2024 · Updated Aug 8, 2024
Cross-site scripting in Flask-AppBuilder 4.1.4 through 4.2.0 allows remote attackers to execute JavaScript via an OAuth login URL. The login_oauth.html template applies Jinja's safe filter to the next query parameter before embedding it in JavaScript, suppressing HTML escaping. Exploitation requires OAuth authentication to be enabled and a user to follow the crafted URL; successful code runs in that user's browser.
Summary
What happened
Cross-site scripting in Flask-AppBuilder 4.1.4 through 4.2.0 allows remote attackers to execute JavaScript via an OAuth login URL. The login_oauth.html template applies Jinja's safe filter to the next query parameter before embedding it in JavaScript, suppressing HTML escaping. Exploitation requires OAuth authentication to be enabled and a user to follow the crafted URL; successful code runs in that user's browser.
The record
- CVE
- CVE-2024-27083
- Published
- Feb 28, 2024
- Updated
- Aug 8, 2024
- Vendor
- dpgaspar
- Product
- Flask-AppBuilder
- Classifications
- CWE-79, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 28, 2024CVE publishedPublication date reported by the CVE source.
- Aug 8, 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=>= 4.1.4, < 4.2.1
- Affected versionversion=4.1.4 <4.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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