Skip to content

teler-waf subject to Bypass of Common Web Attack Threat Rule with HTML Entities Payload

Moderate severity GitHub Reviewed Published Mar 1, 2023 in teler-sh/teler-waf • Updated May 20, 2024

Package

gomod github.com/kitabisa/teler-waf (Go)

Affected versions

< 0.1.1

Patched versions

0.1.1

Description

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 includes a patch for this vulnerability.

Workarounds

We advised updating their installations to version v0.1.1 and frontwards immediately.

References

@dwisiswant0 dwisiswant0 published to teler-sh/teler-waf Mar 1, 2023
Published to the GitHub Advisory Database Mar 1, 2023
Reviewed Mar 1, 2023
Published by the National Vulnerability Database Mar 2, 2023
Last updated May 20, 2024

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS score

0.117%
(46th percentile)

CVE ID

CVE-2023-26046

GHSA ID

GHSA-9f95-hhg4-pg4f

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.