CVE-2023-26046 teler-waf subject to bypass of common web attack threat rule with HTML entities payload
Attackers can bypass WAF rules using HTML entities to execute arbitrary JavaScript, stealing credentials or hijacking sessions in applications using teler-waf.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-26046?
CVE-2023-26046 is a medium-severity cross-site scripting vulnerability in kitabisa teler-waf, published on 2 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
teler-waf is a Go HTTP middleware that provides teler IDS functionality to protect against web-based attacks. In teler-waf prior to version 0.1.1 is vulnerable to bypassing common web attack rules when a specific HTML entities payload is used. This vulnerability allows an attacker to execute arbitrary JavaScript code on the victim's browser and compromise the security of the web application. The vulnerability exists due to teler-waf failure to properly sanitize and filter HTML entities in user input. An attacker can exploit this vulnerability to bypass common web attack threat rules in teler-waf and launch cross-site scripting (XSS) attacks. The attacker can execute arbitrary JavaScript code on the victim's browser and steal sensitive information, such as login credentials and session tokens, or take control of the victim's browser and perform malicious actions. This issue has been fixed in version 0.1.1.
Which versions are affected by CVE-2023-26046?
3 open source packages ship an affected version, including github.com/kitabisa/teler-waf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/kitabisa/teler-waf Go | All versions | 0.1.1 |
github.com/kitabisa/teler-waf Go | All versions | 0.1.1 |
github.com/kitabisa/teler-waf Go | All versions | 0.1.1 |
Products include Kitabisa Teler-Waf.
How do I fix CVE-2023-26046?
Upgrade github.com/kitabisa/teler-waf to 0.1.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-26046 being exploited?
There is no known exploitation of CVE-2023-26046 in the wild and no public exploit code.
Other vulnerabilities in kitabisa teler-waf
Sources
Also known as GHSA-9f95-hhg4-pg4f, GO-2023-1597.