CVE-2023-26047: Github.com/kitabisa/teler waf Teler-waf Contains Detection Rule Bypass Vulnerability
MODERATECVE-2023-26047 is a MODERATE (CVSS 6.1) teler-waf contains detection rule bypass vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/kitabisa/teler waf libraries in the Go ecosystem. The issue involves teler-waf contains detection rule bypass via entities payload. Remediation is available by upgrading affected packages to version 0.2.0.
CVE-2023-26047 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2023-26047
To remediate this vulnerability, upgrade all affected Github.com/kitabisa/teler waf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/kitabisa/teler-waf to 0.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kitabisa/teler-waf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-26047, inspect your project dependencies for Github.com/kitabisa/teler waf:
inspect dependencies for github.com/kitabisa/teler-waf
Analyze the terminal output to locate any version of Github.com/kitabisa/teler waf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/kitabisa/teler waf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-26047 Affected Github.com/kitabisa/teler waf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kitabisa/teler-waf
|
Go |
< 0.2.0
|
0.2.0
|
References
Frequently Asked Questions
What is CVE-2023-26047?
Which Github.com/kitabisa/teler waf versions are affected?
What version fixes CVE-2023-26047?
Is github.com/kitabisa/teler-waf affected?
What is the CVSS score of CVE-2023-26047?
What CWE is associated with CVE-2023-26047?
How can I check Go dependencies for CVE-2023-26047?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p2pf-g8cq-3gq5",
"modified" : "2024-05-20T21:48:31Z",
"published" : "2023-03-01T20:37:23Z",
"aliases" : [ "CVE-2023-26047" ],
"summary" : "teler-waf contains detection rule bypass via Entities payload",
"details" : "### Description\n\nteler-waf is a Go HTTP middleware that provides teler IDS functionality to protect against web-based attacks. 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.\n\n### Impact\n\nAn 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.\n\n### Patches\n\nVersion [v0.2.0](https://github.com/kitabisa/teler-waf/releases/tag/v0.2.0) includes a patch for this vulnerability.\n\n### Workarounds\n\nWe advised updating their installations to version v0.2.0 and frontwards immediately.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kitabisa/teler-waf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kitabisa/teler-waf/security/advisories/GHSA-p2pf-g8cq-3gq5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26047"
}, {
"type" : "WEB",
"url" : "https://github.com/dwisiswant0/cwa-filter-rules/commit/d818d1645832d1a02cd210c7680e692d2bf4313b"
}, {
"type" : "WEB",
"url" : "https://github.com/kitabisa/teler-waf/commit/6e1b0e19b8adc1bbc3513a986025d4adf88d59f8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kitabisa/teler-waf"
}, {
"type" : "WEB",
"url" : "https://github.com/kitabisa/teler-waf/compare/v0.1.2...v0.2.0"
}, {
"type" : "WEB",
"url" : "https://github.com/kitabisa/teler-waf/releases/tag/v0.2.0"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1600"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-692", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-01T20:37:23Z",
"nvd_published_at" : "2023-03-03T23:15:00Z"
}
}