CVE-2023-26047 teler-waf contains detection rule bypass via entities payload

Medium 6.5 Published Updated

Attackers can bypass teler-waf detection rules using encoded payloads to execute arbitrary JavaScript, stealing credentials or hijacking sessions.

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-26047?

CVE-2023-26047 is a medium-severity cross-site scripting vulnerability in kitabisa teler-waf, published on 3 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 v0.2.0 is vulnerable to a bypass attack when a specific case-sensitive hex entities payload with special characters such as CR/LF and horizontal tab 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. 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 patched in version 0.2.0.

Weakness: CWE-80, CWE-79, CWE-692

Which versions are affected by CVE-2023-26047?

3 open source packages ship an affected version, including github.com/kitabisa/teler-waf. It affects 1 product.

PackageAffectedFixed in
github.com/kitabisa/teler-waf GoAll versions0.2.0
github.com/kitabisa/teler-waf GoAll versions0.2.0
github.com/kitabisa/teler-waf GoAll versions0.2.0

Products include Kitabisa Teler-Waf.

How do I fix CVE-2023-26047?

Upgrade github.com/kitabisa/teler-waf to 0.2.0 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-26047 being exploited?

There is no known exploitation of CVE-2023-26047 in the wild and no public exploit code.

Sources

Also known as GHSA-p2pf-g8cq-3gq5, GO-2023-1600.

Is CVE-2023-26047 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free