CVE-2023-26046: Github.com/kitabisa/teler waf Teler-waf Subject To Bypass Of Vulnerability

MODERATE
Advisory Identifier: GHSA-9f95-hhg4-pg4f
CVSS 6.1
CWE-80 CWE-79
Published
Advisory Summary

CVE-2023-26046 is a MODERATE (CVSS 6.1) teler-waf subject to bypass of vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Github.com/kitabisa/teler waf libraries in the Go ecosystem. The issue involves teler-waf subject to bypass of common web attack threat rule with html entities payload. Remediation is available by upgrading affected packages to version 0.1.1.

CVE-2023-26046 at a Glance

CVE Identifier CVE-2023-26046
GHSA Identifier GHSA-9f95-hhg4-pg4f
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Github.com/kitabisa/teler waf
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-26046

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.

github.com/kitabisa/teler-waf fixed: 0.1.1
Upgrade github.com/kitabisa/teler-waf to 0.1.1
Verify Direct and Transitive Dependencies

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-26046, 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.1.1), 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-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. 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

### Description teler-waf is a Go HTTP middleware that provides teler IDS functionality to protect against web-based attacks. Versions prior to v0.1.1 are 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. ### Impact 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. ### Patches Version [v0.1.1](https://github.com/kitabisa/teler-waf/releases/tag/v0.1.1) includes a patch for this vulnerability. ### Workarounds We advised updating their installations to version `v0.1.1` and frontwards immediately.

CVE-2023-26046 Affected Github.com/kitabisa/teler waf Versions

1 component(s)
Fixed Versions:
0.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kitabisa/teler-waf
Go
< 0.1.1
0.1.1

References

Frequently Asked Questions

What is CVE-2023-26046?
CVE-2023-26046 is a security vulnerability in Github.com/kitabisa/teler waf involving teler-waf subject to Bypass of Common Web Attack Threat Rule with HTML Entities Payload under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Github.com/kitabisa/teler waf versions are affected?
Affected versions include releases prior to 0.1.1 across affected packages: github.com/kitabisa/teler-waf.
What version fixes CVE-2023-26046?
Upgrading to 0.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kitabisa/teler-waf affected?
Yes, github.com/kitabisa/teler-waf is affected in releases prior to 0.1.1. Upgrade your dependency to 0.1.1 or later.
What is the CVSS score of CVE-2023-26046?
CVE-2023-26046 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-26046?
CVE-2023-26046 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check Go dependencies for CVE-2023-26046?
Run the dependency tree command: 'inspect dependencies for github.com/kitabisa/teler-waf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9f95-hhg4-pg4f",
  "modified" : "2024-05-20T21:48:03Z",
  "published" : "2023-03-01T19:19:43Z",
  "aliases" : [ "CVE-2023-26046" ],
  "summary" : "teler-waf subject to Bypass of Common Web Attack Threat Rule with HTML Entities Payload",
  "details" : "### Description\n\nteler-waf is a Go HTTP middleware that provides teler IDS functionality to protect against web-based attacks. Versions prior to v0.1.1 are 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.\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.1.1](https://github.com/kitabisa/teler-waf/releases/tag/v0.1.1) includes a patch for this vulnerability.\n\n### Workarounds\n\nWe advised updating their installations to version `v0.1.1` 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.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kitabisa/teler-waf/security/advisories/GHSA-9f95-hhg4-pg4f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26046"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitabisa/teler-waf/commit/d1d49cfddfa3ec2adad962870f14b85cd1aaf739"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kitabisa/teler-waf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitabisa/teler-waf/compare/v0.1.0...v0.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kitabisa/teler-waf/releases/tag/v0.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2023-1597"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-80" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-01T19:19:43Z",
    "nvd_published_at" : "2023-03-02T01:15:00Z"
  }
}